A few more macro cleanups

This commit is contained in:
Bruce Momjian 2000-04-12 20:33:37 +00:00
parent 2a08204e1f
commit 97580f6993
1 changed files with 5 additions and 2 deletions

View File

@ -33,10 +33,13 @@ char *ps_status_buffer = NULL
} while (0)
#define PS_CLEAR_STATUS() \
do { if (ps_status_buffer) memset(ps_status_buffer, 0, strlen(ps_status_buffer)); }
do { \
if (ps_status_buffer) \
memset(ps_status_buffer, 0, strlen(ps_status_buffer)); \
} while (0)
#define PS_SET_STATUS(status) \
{ \
do { \
if (ps_status_buffer) \
{ \
PS_CLEAR_STATUS(); \