diff options
author | Bruce Momjian | 1997-09-08 02:41:22 +0000 |
---|---|---|
committer | Bruce Momjian | 1997-09-08 02:41:22 +0000 |
commit | 319dbfa7364721d3343af03a7ce063c2a2c9d385 (patch) | |
tree | a2146fe02c49ce1e497b7c287dfcaa367a703ae4 /src/include/lib | |
parent | a90f12fd9d6886da4f0734288496361a304d3882 (diff) |
Another PGINDENT run that changes variable indenting and case label indenting. Also static variable indenting.
Diffstat (limited to 'src/include/lib')
-rw-r--r-- | src/include/lib/dllist.h | 44 | ||||
-rw-r--r-- | src/include/lib/fstack.h | 20 | ||||
-rw-r--r-- | src/include/lib/hasht.h | 6 | ||||
-rw-r--r-- | src/include/lib/stringinfo.h | 12 |
4 files changed, 41 insertions, 41 deletions
diff --git a/src/include/lib/dllist.h b/src/include/lib/dllist.h index 15a18d88c6f..af0c580cc93 100644 --- a/src/include/lib/dllist.h +++ b/src/include/lib/dllist.h @@ -26,7 +26,7 @@ * * Copyright (c) 1994, Regents of the University of California * - * $Id: dllist.h,v 1.5 1997/09/07 04:58:07 momjian Exp $ + * $Id: dllist.h,v 1.6 1997/09/08 02:36:47 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -40,32 +40,32 @@ struct Dlelem; typedef struct Dlelem { - struct Dlelem *dle_next; /* next element */ - struct Dlelem *dle_prev; /* previous element */ - void *dle_val; /* value of the element */ - struct Dllist *dle_list; /* what list this element is in */ -} Dlelem; + struct Dlelem *dle_next; /* next element */ + struct Dlelem *dle_prev; /* previous element */ + void *dle_val; /* value of the element */ + struct Dllist *dle_list; /* what list this element is in */ +} Dlelem; typedef struct Dllist { - Dlelem *dll_head; - Dlelem *dll_tail; -} Dllist; + Dlelem *dll_head; + Dlelem *dll_tail; +} Dllist; -extern Dllist *DLNewList(void);/* initialize a new list */ -extern void DLFreeList(Dllist *); /* free up a list and all the +extern Dllist *DLNewList(void); /* initialize a new list */ +extern void DLFreeList(Dllist *); /* free up a list and all the * nodes in it */ -extern Dlelem *DLNewElem(void *val); -extern void DLFreeElem(Dlelem *); -extern Dlelem *DLGetHead(Dllist *); -extern Dlelem *DLGetTail(Dllist *); -extern Dlelem *DLRemTail(Dllist * l); -extern Dlelem *DLGetPred(Dlelem *); /* get predecessor */ -extern Dlelem *DLGetSucc(Dlelem *); /* get successor */ -extern void DLRemove(Dlelem *); /* removes node from list */ -extern void DLAddHead(Dllist * list, Dlelem * node); -extern void DLAddTail(Dllist * list, Dlelem * node); -extern Dlelem *DLRemHead(Dllist * list); /* remove and return the +extern Dlelem *DLNewElem(void *val); +extern void DLFreeElem(Dlelem *); +extern Dlelem *DLGetHead(Dllist *); +extern Dlelem *DLGetTail(Dllist *); +extern Dlelem *DLRemTail(Dllist * l); +extern Dlelem *DLGetPred(Dlelem *); /* get predecessor */ +extern Dlelem *DLGetSucc(Dlelem *); /* get successor */ +extern void DLRemove(Dlelem *); /* removes node from list */ +extern void DLAddHead(Dllist * list, Dlelem * node); +extern void DLAddTail(Dllist * list, Dlelem * node); +extern Dlelem *DLRemHead(Dllist * list); /* remove and return the * head */ #define DLE_VAL(x) (x->dle_val) diff --git a/src/include/lib/fstack.h b/src/include/lib/fstack.h index 99f10b9006c..f5236c67bba 100644 --- a/src/include/lib/fstack.h +++ b/src/include/lib/fstack.h @@ -6,7 +6,7 @@ * * Copyright (c) 1994, Regents of the University of California * - * $Id: fstack.h,v 1.3 1997/09/07 04:58:09 momjian Exp $ + * $Id: fstack.h,v 1.4 1997/09/08 02:36:51 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -39,7 +39,7 @@ typedef FixedItemData *FixedItem; struct FixedItemData { - FixedItem next; /* next item or NULL */ + FixedItem next; /* next item or NULL */ }; /* @@ -48,10 +48,10 @@ struct FixedItemData */ typedef struct FixedStackData { - FixedItem top; /* Top item on the stack or NULL */ - Offset offset; /* Offset from struct base to item */ + FixedItem top; /* Top item on the stack or NULL */ + Offset offset; /* Offset from struct base to item */ /* this could be signed short int! */ -} FixedStackData; +} FixedStackData; typedef FixedStackData *FixedStack; @@ -62,7 +62,7 @@ typedef FixedStackData *FixedStack; * Exceptions: * BadArg if stack is invalid pointer. */ -extern void FixedStackInit(FixedStack stack, Offset offset); +extern void FixedStackInit(FixedStack stack, Offset offset); /* * FixedStackPop -- @@ -71,7 +71,7 @@ extern void FixedStackInit(FixedStack stack, Offset offset); * Exceptions: * BadArg if stack is invalid. */ -Pointer FixedStackPop(FixedStack stack); +Pointer FixedStackPop(FixedStack stack); /* * FixedStackPush -- @@ -81,7 +81,7 @@ Pointer FixedStackPop(FixedStack stack); * BadArg if stack is invalid. * BadArg if pointer is invalid. */ -extern void FixedStackPush(FixedStack stack, Pointer pointer); +extern void FixedStackPush(FixedStack stack, Pointer pointer); /* * FixedStackGetTop -- @@ -94,7 +94,7 @@ extern void FixedStackPush(FixedStack stack, Pointer pointer); * Exceptions: * BadArg if stack is invalid. */ -extern Pointer FixedStackGetTop(FixedStack stack); +extern Pointer FixedStackGetTop(FixedStack stack); /* * FixedStackGetNext -- @@ -109,6 +109,6 @@ extern Pointer FixedStackGetTop(FixedStack stack); * BadArg if pointer is invalid. * BadArg if stack does not contain pointer. */ -extern Pointer FixedStackGetNext(FixedStack stack, Pointer pointer); +extern Pointer FixedStackGetNext(FixedStack stack, Pointer pointer); #endif /* FSTACK_H */ diff --git a/src/include/lib/hasht.h b/src/include/lib/hasht.h index 1d28c2ca28f..4c036f8e25c 100644 --- a/src/include/lib/hasht.h +++ b/src/include/lib/hasht.h @@ -7,7 +7,7 @@ * * Copyright (c) 1994, Regents of the University of California * - * $Id: hasht.h,v 1.3 1997/09/07 04:58:11 momjian Exp $ + * $Id: hasht.h,v 1.4 1997/09/08 02:36:54 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -16,8 +16,8 @@ #include <utils/hsearch.h> -typedef void (*HashtFunc) (); +typedef void (*HashtFunc) (); -extern void HashTableWalk(HTAB * hashtable, HashtFunc function, int arg); +extern void HashTableWalk(HTAB * hashtable, HashtFunc function, int arg); #endif /* HASHT_H */ diff --git a/src/include/lib/stringinfo.h b/src/include/lib/stringinfo.h index f127d8cdd01..b2b71ef27d0 100644 --- a/src/include/lib/stringinfo.h +++ b/src/include/lib/stringinfo.h @@ -6,7 +6,7 @@ * * Copyright (c) 1994, Regents of the University of California * - * $Id: stringinfo.h,v 1.3 1997/09/07 04:58:14 momjian Exp $ + * $Id: stringinfo.h,v 1.4 1997/09/08 02:36:55 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -25,10 +25,10 @@ */ typedef struct StringInfoData { - char *data; - int maxlen; - int len; -} StringInfoData; + char *data; + int maxlen; + int len; +} StringInfoData; typedef StringInfoData *StringInfo; @@ -42,6 +42,6 @@ extern StringInfo makeStringInfo(void); * appendStringInfo * similar to 'strcat' but reallocates more space if necessary... */ -extern void appendStringInfo(StringInfo str, char *buffer); +extern void appendStringInfo(StringInfo str, char *buffer); #endif /* STRINGINFO_H */ |