]> granicus.if.org Git - postgresql/commit
Add more missing 'do { ... } while (0)' in missing macros. Without it,
authorBruce Momjian <bruce@momjian.us>
Thu, 25 Oct 2001 00:55:48 +0000 (00:55 +0000)
committerBruce Momjian <bruce@momjian.us>
Thu, 25 Oct 2001 00:55:48 +0000 (00:55 +0000)
commitb4a57b06486df001e9b4e4350c493e2c15e76380
treec439b48db1ed46f7c88775d95a3d90428cbd9fee
parent309a04f5b8e77f82b6ce703ff15fcb89368b067c
Add more missing 'do { ... } while (0)' in missing macros.  Without it,
these macros fail in if/else cases:

#define X \
{ \
... \
}

{

if (...)
X;
else
...
}

with proper setup:

#define X \
do { \
... \
} while (0)

it works fine.
contrib/pg_resetxlog/pg_resetxlog.c
contrib/pgcrypto/crypt-blowfish.c
contrib/pgcrypto/rijndael.c