mirror of
https://github.com/postgres/postgres.git
synced 2025-07-02 09:02:37 +03:00
Remove un-needed braces around single statements.
This commit is contained in:
@ -9,7 +9,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Header: /cvsroot/pgsql/src/backend/lib/dllist.c,v 1.9 1998/02/26 04:31:37 momjian Exp $
|
||||
* $Header: /cvsroot/pgsql/src/backend/lib/dllist.c,v 1.10 1998/06/15 19:28:23 momjian Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@ -173,9 +173,7 @@ DLRemHead(Dllist *l)
|
||||
|
||||
result = l->dll_head;
|
||||
if (l->dll_head->dle_next)
|
||||
{
|
||||
l->dll_head->dle_next->dle_prev = 0;
|
||||
}
|
||||
|
||||
l->dll_head = l->dll_head->dle_next;
|
||||
|
||||
@ -199,9 +197,7 @@ DLRemTail(Dllist *l)
|
||||
|
||||
result = l->dll_tail;
|
||||
if (l->dll_tail->dle_prev)
|
||||
{
|
||||
l->dll_tail->dle_prev->dle_next = 0;
|
||||
}
|
||||
l->dll_tail = l->dll_tail->dle_prev;
|
||||
|
||||
result->dle_prev = 0;
|
||||
|
@ -7,7 +7,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Header: /cvsroot/pgsql/src/backend/lib/Attic/fstack.c,v 1.7 1998/04/06 17:27:11 momjian Exp $
|
||||
* $Header: /cvsroot/pgsql/src/backend/lib/Attic/fstack.c,v 1.8 1998/06/15 19:28:24 momjian Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@ -62,9 +62,7 @@ FixedStackPop(FixedStack stack)
|
||||
AssertArg(FixedStackIsValid(stack));
|
||||
|
||||
if (!PointerIsValid(stack->top))
|
||||
{
|
||||
return (NULL);
|
||||
}
|
||||
|
||||
pointer = FixedStackGetItemBase(stack, stack->top);
|
||||
stack->top = stack->top->next;
|
||||
@ -110,9 +108,7 @@ FixedStackContains(FixedStack stack, Pointer pointer)
|
||||
for (next = stack->top; FixedItemIsValid(next); next = next->next)
|
||||
{
|
||||
if (next == item)
|
||||
{
|
||||
return (true);
|
||||
}
|
||||
}
|
||||
return (false);
|
||||
}
|
||||
@ -125,9 +121,7 @@ FixedStackGetTop(FixedStack stack)
|
||||
AssertArg(FixedStackIsValid(stack));
|
||||
|
||||
if (!PointerIsValid(stack->top))
|
||||
{
|
||||
return (NULL);
|
||||
}
|
||||
|
||||
return (FixedStackGetItemBase(stack, stack->top));
|
||||
}
|
||||
@ -144,9 +138,7 @@ FixedStackGetNext(FixedStack stack, Pointer pointer)
|
||||
item = FixedStackGetItem(stack, pointer)->next;
|
||||
|
||||
if (!PointerIsValid(item))
|
||||
{
|
||||
return (NULL);
|
||||
}
|
||||
|
||||
return (FixedStackGetItemBase(stack, item));
|
||||
}
|
||||
|
@ -9,7 +9,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Header: /cvsroot/pgsql/src/backend/lib/stringinfo.c,v 1.9 1998/01/07 21:03:04 momjian Exp $
|
||||
* $Header: /cvsroot/pgsql/src/backend/lib/stringinfo.c,v 1.10 1998/06/15 19:28:24 momjian Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@ -35,9 +35,7 @@ makeStringInfo()
|
||||
|
||||
res = (StringInfo) palloc(sizeof(StringInfoData));
|
||||
if (res == NULL)
|
||||
{
|
||||
elog(ERROR, "makeStringInfo: Out of memory!");
|
||||
}
|
||||
|
||||
size = 100;
|
||||
res->data = palloc(size);
|
||||
@ -95,9 +93,7 @@ appendStringInfo(StringInfo str, char *buffer)
|
||||
*/
|
||||
newlen = 2 * str->len;
|
||||
while (buflen + str->len >= newlen - 1)
|
||||
{
|
||||
newlen = 2 * newlen;
|
||||
}
|
||||
|
||||
/*
|
||||
* allocate enough space.
|
||||
|
Reference in New Issue
Block a user