1
0
mirror of https://github.com/postgres/postgres.git synced 2025-11-16 15:02:33 +03:00

Another PGINDENT run that changes variable indenting and case label indenting. Also static variable indenting.

This commit is contained in:
Bruce Momjian
1997-09-08 02:41:22 +00:00
parent a90f12fd9d
commit 319dbfa736
632 changed files with 28301 additions and 28220 deletions

View File

@@ -11,7 +11,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: tgRecipe.h,v 1.2 1997/09/07 04:49:50 momjian Exp $
* $Id: tgRecipe.h,v 1.3 1997/09/08 02:30:12 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@@ -25,10 +25,11 @@
#include "libpq-fe.h"
typedef struct
{
double x,
y;
} Point; /* this should match whatever is in
double x,
y;
} Point; /* this should match whatever is in
*
* geo-decls.h */
#endif /* TIOGA_FRONTEND */
@@ -38,7 +39,7 @@ typedef enum
TG_INGRED,
TG_EYE,
TG_RECIPE
} TgElemType;
} TgElemType;
typedef enum
{
@@ -46,7 +47,7 @@ typedef enum
TG_C,
TG_RECIPE_GRAPH,
TG_COMPILED
} TgSrcLangType;
} TgSrcLangType;
typedef enum
{
@@ -56,12 +57,12 @@ typedef enum
TG_TEE_NODE /* tee nodes are not stored in the db we
* create them when we read the recipe
* back */
} TgNodeType;
} TgNodeType;
/* -- type definition for setting up in memory Tioga recipe structure -- */
/* -- see 'recipe-schema.sql' for their corresponding database types -- */
typedef char *TgString;
typedef char *TgString;
typedef struct _tgelement *TgElementPtr;
typedef struct _tgnode *TgNodePtr;
@@ -74,61 +75,61 @@ typedef struct _tgrecipe *TgRecipePtr;
/* C structure representation of a Tioga Element */
typedef struct _tgelement
{
char *elemName; /* name of function this element represent */
TgElemType elemType; /* type of this element */
Arr_TgString *inPorts; /* names of inputs */
Arr_TgString *inTypes; /* name of input types */
Arr_TgString *outPorts; /* type of output */
Arr_TgString *outTypes; /* name of output types */
char *doc; /* description of this element */
Arr_TgString *keywords; /* keywords used to search for this
char *elemName; /* name of function this element represent */
TgElemType elemType; /* type of this element */
Arr_TgString *inPorts; /* names of inputs */
Arr_TgString *inTypes; /* name of input types */
Arr_TgString *outPorts; /* type of output */
Arr_TgString *outTypes; /* name of output types */
char *doc; /* description of this element */
Arr_TgString *keywords; /* keywords used to search for this
* element */
char *icon; /* iconic representation */
char *src; /* source code for this element */
TgSrcLangType srcLang; /* source language */
char *owner; /* owner recipe name */
} TgElement;
char *icon; /* iconic representation */
char *src; /* source code for this element */
TgSrcLangType srcLang; /* source language */
char *owner; /* owner recipe name */
} TgElement;
/* C structure representation of a Tioga Node */
typedef struct _tgnode
{
char *nodeName; /* name of this node */
TgNodeType nodeType; /* type of this node */
Point loc; /* screen location of the node. */
TgElement *nodeElem; /* the underlying element of this node */
Arr_TgNodePtr *inNodes; /* variable array of in node pointers a
char *nodeName; /* name of this node */
TgNodeType nodeType; /* type of this node */
Point loc; /* screen location of the node. */
TgElement *nodeElem; /* the underlying element of this node */
Arr_TgNodePtr *inNodes; /* variable array of in node pointers a
* NULL TgNodePtr indicates a run-time
* parameter */
Arr_TgNodePtr *outNodes; /* variable array of out node pointers. */
} TgNode;
Arr_TgNodePtr *outNodes; /* variable array of out node pointers. */
} TgNode;
/* C structure representation of a Tioga Recipe */
typedef struct _tgrecipe
{
TgElement elmValue; /* "inherits" TgElement attributes. */
Arr_TgNodePtr *allNodes; /* array of all nodes for this recipe. */
Arr_TgNodePtr *rootNodes; /* array of root nodes for this recipe. --
TgElement elmValue; /* "inherits" TgElement attributes. */
Arr_TgNodePtr *allNodes; /* array of all nodes for this recipe. */
Arr_TgNodePtr *rootNodes; /* array of root nodes for this recipe. --
* root nodes are nodes with no parents */
Arr_TgNodePtr *eyes; /* array of pointers for the browser nodes
Arr_TgNodePtr *eyes; /* array of pointers for the browser nodes
* recipe, execution of recipe starts by
* traversing the recipe C structure from
* the eye nodes pointed by these
* pointers. */
Arr_TgNodePtr *tees; /* array of pointers of all the tee nodes */
Arr_TgNodePtr *tees; /* array of pointers of all the tee nodes */
Arr_TgElementPtr *elements; /* array of all the elements in this
* recipe, elements may be shared by
* multiple nodes */
} TgRecipe;
} TgRecipe;
/* functions defined in tgRecipe.c */
extern TgRecipe *retrieveRecipe(char *name);
extern TgElement *findElemInRecipe(TgRecipe * r, char *elemName);
extern TgNode *findNodeInRecipe(TgRecipe * r, char *nodeName);
extern TgNode *findNodeInRecipe(TgRecipe * r, char *nodeName);
/* ---- copyXXX functions ---- */
extern void copyTgElementPtr(TgElementPtr *, TgElementPtr *);
extern void copyTgNodePtr(TgNodePtr *, TgNodePtr *);
extern void copyTgRecipePtr(TgRecipePtr *, TgRecipePtr *);
extern void copyTgString(TgString *, TgString *);
extern void copyTgElementPtr(TgElementPtr *, TgElementPtr *);
extern void copyTgNodePtr(TgNodePtr *, TgNodePtr *);
extern void copyTgRecipePtr(TgRecipePtr *, TgRecipePtr *);
extern void copyTgString(TgString *, TgString *);