diff options
author | Bruce Momjian <bruce@momjian.us> | 1997-09-08 21:56:23 +0000 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 1997-09-08 21:56:23 +0000 |
commit | 59f6a57e59fe8353f9edaa3703516ea67e06672b (patch) | |
tree | 1b083fb66cf0be3890480a1ed5fb077dd7293790 /src/backend/lib | |
parent | 075cede74858a9a04e97097b1ccd555121516c20 (diff) | |
download | postgresql-59f6a57e59fe8353f9edaa3703516ea67e06672b.tar.gz postgresql-59f6a57e59fe8353f9edaa3703516ea67e06672b.zip |
Used modified version of indent that understands over 100 typedefs.
Diffstat (limited to 'src/backend/lib')
-rw-r--r-- | src/backend/lib/dllist.c | 28 | ||||
-rw-r--r-- | src/backend/lib/hasht.c | 4 | ||||
-rw-r--r-- | src/backend/lib/lispsort.c | 4 |
3 files changed, 18 insertions, 18 deletions
diff --git a/src/backend/lib/dllist.c b/src/backend/lib/dllist.c index 8790a844409..85d1d7c5cd3 100644 --- a/src/backend/lib/dllist.c +++ b/src/backend/lib/dllist.c @@ -9,7 +9,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/lib/dllist.c,v 1.7 1997/09/08 02:22:56 momjian Exp $ + * $Header: /cvsroot/pgsql/src/backend/lib/dllist.c,v 1.8 1997/09/08 21:43:27 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -32,7 +32,7 @@ DLNewList(void) /* free up a list and all the nodes in it */ void -DLFreeList(Dllist * l) +DLFreeList(Dllist *l) { Dlelem *curr; @@ -56,13 +56,13 @@ DLNewElem(void *val) } void -DLFreeElem(Dlelem * e) +DLFreeElem(Dlelem *e) { free(e); } Dlelem * -DLGetHead(Dllist * l) +DLGetHead(Dllist *l) { return (l ? l->dll_head : 0); } @@ -70,7 +70,7 @@ DLGetHead(Dllist * l) /* get the value stored in the first element */ #ifdef NOT_USED void * -DLGetHeadVal(Dllist * l) +DLGetHeadVal(Dllist *l) { Dlelem *e = DLGetHead(l); @@ -80,7 +80,7 @@ DLGetHeadVal(Dllist * l) #endif Dlelem * -DLGetTail(Dllist * l) +DLGetTail(Dllist *l) { return (l ? l->dll_tail : 0); } @@ -88,7 +88,7 @@ DLGetTail(Dllist * l) /* get the value stored in the first element */ #ifdef NOT_USED void * -DLGetTailVal(Dllist * l) +DLGetTailVal(Dllist *l) { Dlelem *e = DLGetTail(l); @@ -98,19 +98,19 @@ DLGetTailVal(Dllist * l) #endif Dlelem * -DLGetPred(Dlelem * e) /* get predecessor */ +DLGetPred(Dlelem *e) /* get predecessor */ { return (e ? e->dle_prev : 0); } Dlelem * -DLGetSucc(Dlelem * e) /* get successor */ +DLGetSucc(Dlelem *e) /* get successor */ { return (e ? e->dle_next : 0); } void -DLRemove(Dlelem * e) +DLRemove(Dlelem *e) { Dllist *l; @@ -129,7 +129,7 @@ DLRemove(Dlelem * e) } void -DLAddHead(Dllist * l, Dlelem * e) +DLAddHead(Dllist *l, Dlelem *e) { e->dle_list = l; @@ -146,7 +146,7 @@ DLAddHead(Dllist * l, Dlelem * e) } void -DLAddTail(Dllist * l, Dlelem * e) +DLAddTail(Dllist *l, Dlelem *e) { e->dle_list = l; @@ -163,7 +163,7 @@ DLAddTail(Dllist * l, Dlelem * e) } Dlelem * -DLRemHead(Dllist * l) +DLRemHead(Dllist *l) { /* remove and return the head */ Dlelem *result; @@ -189,7 +189,7 @@ DLRemHead(Dllist * l) } Dlelem * -DLRemTail(Dllist * l) +DLRemTail(Dllist *l) { /* remove and return the tail */ Dlelem *result; diff --git a/src/backend/lib/hasht.c b/src/backend/lib/hasht.c index 3ad58e4e0eb..0dd84b4b535 100644 --- a/src/backend/lib/hasht.c +++ b/src/backend/lib/hasht.c @@ -8,7 +8,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/lib/Attic/hasht.c,v 1.6 1997/09/08 02:22:59 momjian Exp $ + * $Header: /cvsroot/pgsql/src/backend/lib/Attic/hasht.c,v 1.7 1997/09/08 21:43:29 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -26,7 +26,7 @@ * ----------------------------------- */ void -HashTableWalk(HTAB * hashtable, HashtFunc function, int arg) +HashTableWalk(HTAB *hashtable, HashtFunc function, int arg) { long *hashent; long *data; diff --git a/src/backend/lib/lispsort.c b/src/backend/lib/lispsort.c index 41c0e934e78..6ddae8fb7bb 100644 --- a/src/backend/lib/lispsort.c +++ b/src/backend/lib/lispsort.c @@ -6,7 +6,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/lib/Attic/lispsort.c,v 1.6 1997/09/08 02:23:02 momjian Exp $ + * $Header: /cvsroot/pgsql/src/backend/lib/Attic/lispsort.c,v 1.7 1997/09/08 21:43:31 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -30,7 +30,7 @@ ** the nodes sorted. The old list is *not* freed or modified (?) */ List * -lisp_qsort(List * the_list, /* the list to be sorted */ +lisp_qsort(List *the_list, /* the list to be sorted */ int (*compare) ()) /* function to compare two nodes */ { int i; |