1
0
mirror of https://github.com/postgres/postgres.git synced 2025-10-25 13:17:41 +03:00

Add typdefs to pgindent run.

This commit is contained in:
Bruce Momjian
1997-09-08 20:59:27 +00:00
parent 4f523a6f92
commit 075cede748
86 changed files with 520 additions and 467 deletions

View File

@@ -6,7 +6,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: acl.h,v 1.9 1997/09/08 02:39:24 momjian Exp $
* $Id: acl.h,v 1.10 1997/09/08 20:59:15 momjian Exp $
*
* NOTES
* For backward-compatability purposes we have to allow there
@@ -74,7 +74,7 @@ typedef struct AclItem
AclId ai_id;
AclIdType ai_idtype;
AclMode ai_mode;
} AclItem;
} AclItem;
/* Note: if the size of AclItem changes,
change the aclitem typlen in pg_type.h */
@@ -137,7 +137,7 @@ extern char *aclcheck_error_strings[];
*/
extern Acl *aclownerdefault(AclId ownerid);
extern Acl *acldefault(void);
extern Acl *aclinsert3(Acl * old_acl, AclItem * mod_aip, unsigned modechg);
extern Acl *aclinsert3(Acl *old_acl, AclItem *mod_aip, unsigned modechg);
extern char *aclmakepriv(char *old_privlist, char new_priv);
extern char *aclmakeuser(char *user_type, char *user);
@@ -150,15 +150,15 @@ makeAclStmt(char *privs, List * rel_list, char *grantee,
*/
extern Acl *makeacl(int n);
extern AclItem *aclitemin(char *s);
extern char *aclitemout(AclItem * aip);
extern Acl *aclinsert(Acl * old_acl, AclItem * mod_aip);
extern Acl *aclremove(Acl * old_acl, AclItem * mod_aip);
extern int32 aclcontains(Acl * acl, AclItem * aip);
extern char *aclitemout(AclItem *aip);
extern Acl *aclinsert(Acl *old_acl, AclItem *mod_aip);
extern Acl *aclremove(Acl *old_acl, AclItem *mod_aip);
extern int32 aclcontains(Acl *acl, AclItem *aip);
/*
* prototypes for functions in aclchk.c
*/
extern void ChangeAcl(char *relname, AclItem * mod_aip, unsigned modechg);
extern void ChangeAcl(char *relname, AclItem *mod_aip, unsigned modechg);
extern AclId get_grosysid(char *groname);
extern char *get_groname(AclId grosysid);

View File

@@ -10,7 +10,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: array.h,v 1.6 1997/09/08 02:39:26 momjian Exp $
* $Id: array.h,v 1.7 1997/09/08 20:59:18 momjian Exp $
*
* NOTES
* XXX the data array should be LONGALIGN'd -- notice that the array
@@ -29,7 +29,7 @@ typedef struct
int size; /* total array size (in bytes) */
int ndim; /* # of dimensions */
int flags; /* implementation flags */
} ArrayType;
} ArrayType;
/*
* bitmask of ArrayType flags field:
@@ -115,22 +115,22 @@ typedef struct
* prototypes for functions defined in arrayfuncs.c
*/
extern char *array_in(char *string, Oid element_type);
extern char *array_out(ArrayType * v, Oid element_type);
extern char *array_dims(ArrayType * v, bool * isNull);
extern char *array_out(ArrayType *v, Oid element_type);
extern char *array_dims(ArrayType *v, bool * isNull);
extern Datum
array_ref(ArrayType * array, int n, int indx[], int reftype,
array_ref(ArrayType *array, int n, int indx[], int reftype,
int elmlen, int arraylen, bool * isNull);
extern Datum
array_clip(ArrayType * array, int n, int upperIndx[],
array_clip(ArrayType *array, int n, int upperIndx[],
int lowerIndx[], int reftype, int len, bool * isNull);
extern char *
array_set(ArrayType * array, int n, int indx[], char *dataPtr,
array_set(ArrayType *array, int n, int indx[], char *dataPtr,
int reftype, int elmlen, int arraylen, bool * isNull);
extern char *
array_assgn(ArrayType * array, int n, int upperIndx[],
int lowerIndx[], ArrayType * newArr, int reftype,
array_assgn(ArrayType *array, int n, int upperIndx[],
int lowerIndx[], ArrayType *newArr, int reftype,
int len, bool * isNull);
extern int array_eq(ArrayType * array1, ArrayType * array2);
extern int array_eq(ArrayType *array1, ArrayType *array2);
extern int
_LOtransfer(char **destfd, int size, int nitems, char **srcfd,
int isSrcLO, int isDestLO);
@@ -161,10 +161,10 @@ _ChunkArray(int fd, FILE * afd, int ndim, int dim[], int baseSize,
int *nbytes, char *chunkfile);
extern int
_ReadChunkArray(int st[], int endp[], int bsize, int fp,
char *destfp, ArrayType * array, int isDestLO, bool * isNull);
char *destfp, ArrayType *array, int isDestLO, bool * isNull);
extern struct varlena *
_ReadChunkArray1El(int st[], int bsize, int fp,
ArrayType * array, bool * isNull);
ArrayType *array, bool * isNull);
#endif /* ARRAY_H */

View File

@@ -6,7 +6,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: builtins.h,v 1.23 1997/09/08 02:39:32 momjian Exp $
* $Id: builtins.h,v 1.24 1997/09/08 20:59:19 momjian Exp $
*
* NOTES
* This should normally only be included by fmgr.h.
@@ -199,10 +199,10 @@ extern int32 btnamecmp(NameData * a, NameData * b);
extern int32 bttextcmp(struct varlena * a, struct varlena * b);
/* support routines for the rtree access method, by opclass */
extern BOX *rt_box_union(BOX * a, BOX * b);
extern BOX *rt_box_inter(BOX * a, BOX * b);
extern void rt_box_size(BOX * a, float *size);
extern void rt_bigbox_size(BOX * a, float *size);
extern BOX *rt_box_union(BOX *a, BOX *b);
extern BOX *rt_box_inter(BOX *a, BOX *b);
extern void rt_box_size(BOX *a, float *size);
extern void rt_bigbox_size(BOX *a, float *size);
extern void rt_poly_size(POLYGON * a, float *size);
extern POLYGON *rt_poly_union(POLYGON * a, POLYGON * b);
extern POLYGON *rt_poly_inter(POLYGON * a, POLYGON * b);
@@ -338,7 +338,7 @@ extern bool float84gt(float64 arg1, float32 arg2);
extern bool float84ge(float64 arg1, float32 arg2);
/* geo_ops.c, geo_selfuncs.c */
extern double *box_area(BOX * box);
extern double *box_area(BOX *box);
/* misc.c */
extern bool nullvalue(Datum value, bool * isNull);

View File

@@ -5,7 +5,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: geo_decls.h,v 1.10 1997/09/08 02:39:46 momjian Exp $
* $Id: geo_decls.h,v 1.11 1997/09/08 20:59:21 momjian Exp $
*
* NOTE
* These routines do *not* use the float types from adt/.
@@ -120,7 +120,7 @@ typedef struct
{
Point high,
low; /* corner POINTs */
} BOX;
} BOX;
/*---------------------------------------------------------------------
* POLYGON - Specified by an array of doubles defining the points,
@@ -187,65 +187,65 @@ extern Point *lseg_interpt(LSEG * l1, LSEG * l2);
extern double *dist_pl(Point * pt, LINE * line);
extern double *dist_ps(Point * pt, LSEG * lseg);
extern double *dist_ppath(Point * pt, PATH * path);
extern double *dist_pb(Point * pt, BOX * box);
extern double *dist_pb(Point * pt, BOX *box);
extern double *dist_sl(LSEG * lseg, LINE * line);
extern double *dist_sb(LSEG * lseg, BOX * box);
extern double *dist_lb(LINE * line, BOX * box);
extern double *dist_sb(LSEG * lseg, BOX *box);
extern double *dist_lb(LINE * line, BOX *box);
extern Point *close_pl(Point * pt, LINE * line);
extern Point *close_ps(Point * pt, LSEG * lseg);
extern Point *close_pb(Point * pt, BOX * box);
extern Point *close_pb(Point * pt, BOX *box);
extern Point *close_sl(LSEG * lseg, LINE * line);
extern Point *close_sb(LSEG * lseg, BOX * box);
extern Point *close_lb(LINE * line, BOX * box);
extern Point *close_sb(LSEG * lseg, BOX *box);
extern Point *close_lb(LINE * line, BOX *box);
extern bool on_pl(Point * pt, LINE * line);
extern bool on_ps(Point * pt, LSEG * lseg);
extern bool on_pb(Point * pt, BOX * box);
extern bool on_pb(Point * pt, BOX *box);
extern bool on_ppath(Point * pt, PATH * path);
extern bool on_sl(LSEG * lseg, LINE * line);
extern bool on_sb(LSEG * lseg, BOX * box);
extern bool on_sb(LSEG * lseg, BOX *box);
extern bool inter_sl(LSEG * lseg, LINE * line);
extern bool inter_sb(LSEG * lseg, BOX * box);
extern bool inter_lb(LINE * line, BOX * box);
extern bool inter_sb(LSEG * lseg, BOX *box);
extern bool inter_lb(LINE * line, BOX *box);
/* private routines */
extern LSEG *lseg_construct(Point * pt1, Point * pt2);
/* public box routines */
extern BOX *box_in(char *str);
extern char *box_out(BOX * box);
extern bool box_same(BOX * box1, BOX * box2);
extern bool box_overlap(BOX * box1, BOX * box2);
extern bool box_overleft(BOX * box1, BOX * box2);
extern bool box_left(BOX * box1, BOX * box2);
extern bool box_right(BOX * box1, BOX * box2);
extern bool box_overright(BOX * box1, BOX * box2);
extern bool box_contained(BOX * box1, BOX * box2);
extern bool box_contain(BOX * box1, BOX * box2);
extern bool box_below(BOX * box1, BOX * box2);
extern bool box_above(BOX * box1, BOX * box2);
extern bool box_lt(BOX * box1, BOX * box2);
extern bool box_gt(BOX * box1, BOX * box2);
extern bool box_eq(BOX * box1, BOX * box2);
extern bool box_le(BOX * box1, BOX * box2);
extern bool box_ge(BOX * box1, BOX * box2);
extern Point *box_center(BOX * box);
extern double *box_area(BOX * box);
extern double *box_width(BOX * box);
extern double *box_height(BOX * box);
extern double *box_distance(BOX * box1, BOX * box2);
extern Point *box_center(BOX * box);
extern BOX *box_intersect(BOX * box1, BOX * box2);
extern LSEG *box_diagonal(BOX * box);
extern char *box_out(BOX *box);
extern bool box_same(BOX *box1, BOX *box2);
extern bool box_overlap(BOX *box1, BOX *box2);
extern bool box_overleft(BOX *box1, BOX *box2);
extern bool box_left(BOX *box1, BOX *box2);
extern bool box_right(BOX *box1, BOX *box2);
extern bool box_overright(BOX *box1, BOX *box2);
extern bool box_contained(BOX *box1, BOX *box2);
extern bool box_contain(BOX *box1, BOX *box2);
extern bool box_below(BOX *box1, BOX *box2);
extern bool box_above(BOX *box1, BOX *box2);
extern bool box_lt(BOX *box1, BOX *box2);
extern bool box_gt(BOX *box1, BOX *box2);
extern bool box_eq(BOX *box1, BOX *box2);
extern bool box_le(BOX *box1, BOX *box2);
extern bool box_ge(BOX *box1, BOX *box2);
extern Point *box_center(BOX *box);
extern double *box_area(BOX *box);
extern double *box_width(BOX *box);
extern double *box_height(BOX *box);
extern double *box_distance(BOX *box1, BOX *box2);
extern Point *box_center(BOX *box);
extern BOX *box_intersect(BOX *box1, BOX *box2);
extern LSEG *box_diagonal(BOX *box);
/* private routines */
extern double box_dt(BOX * box1, BOX * box2);
extern double box_dt(BOX *box1, BOX *box2);
extern BOX *box(Point * p1, Point * p2);
extern BOX *box_add(BOX * box, Point * p);
extern BOX *box_sub(BOX * box, Point * p);
extern BOX *box_mul(BOX * box, Point * p);
extern BOX *box_div(BOX * box, Point * p);
extern BOX *box_add(BOX *box, Point * p);
extern BOX *box_sub(BOX *box, Point * p);
extern BOX *box_mul(BOX *box, Point * p);
extern BOX *box_div(BOX *box, Point * p);
/* private line routines */
extern double *line_distance(LINE * l1, LINE * l2);
@@ -301,7 +301,7 @@ extern int4 poly_npoints(POLYGON * poly);
extern Point *poly_center(POLYGON * poly);
extern BOX *poly_box(POLYGON * poly);
extern PATH *poly_path(POLYGON * poly);
extern POLYGON *box_poly(BOX * box);
extern POLYGON *box_poly(BOX *box);
extern POLYGON *upgradepoly(POLYGON * poly);
extern POLYGON *revertpoly(POLYGON * poly);
@@ -341,7 +341,7 @@ extern double *dist_pc(Point * point, CIRCLE * circle);
extern double *dist_cpoly(CIRCLE * circle, POLYGON * poly);
extern Point *circle_center(CIRCLE * circle);
extern CIRCLE *circle(Point * center, float8 * radius);
extern CIRCLE *box_circle(BOX * box);
extern CIRCLE *box_circle(BOX *box);
extern BOX *circle_box(CIRCLE * circle);
extern CIRCLE *poly_circle(POLYGON * poly);
extern POLYGON *circle_poly(int npts, CIRCLE * circle);

View File

@@ -15,7 +15,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: memutils.h,v 1.10 1997/09/08 02:39:50 momjian Exp $
* $Id: memutils.h,v 1.11 1997/09/08 20:59:22 momjian Exp $
*
* NOTES
* some of the information in this file will be moved to
@@ -193,7 +193,7 @@ typedef enum AllocMode
StaticAllocMode, /* always "statically" allocate */
TunableAllocMode, /* allocations are "tuned" */
BoundedAllocMode /* allocations bounded to fixed usage */
} AllocMode;
} AllocMode;
#define DefaultAllocMode DynamicAllocMode
@@ -205,7 +205,7 @@ typedef struct AllocSetData
{
OrderedSetData setData;
/* Note: this will change in the future to support other modes */
} AllocSetData;
} AllocSetData;
typedef AllocSetData *AllocSet;
@@ -228,7 +228,7 @@ extern void AllocSetReset(AllocSet set);
extern bool AllocSetContains(AllocSet set, AllocPointer pointer);
extern AllocPointer AllocSetAlloc(AllocSet set, Size size);
extern void AllocSetFree(AllocSet set, AllocPointer pointer);
extern AllocPointer
extern AllocPointer
AllocSetRealloc(AllocSet set, AllocPointer pointer,
Size size);