diff options
author | DJ Delorie <dj@delorie.com> | 2001-08-27 20:05:03 +0000 |
---|---|---|
committer | DJ Delorie <dj@delorie.com> | 2001-08-27 20:05:03 +0000 |
commit | 039a0a12de76b9aa7c1a99de786798b62374a047 (patch) | |
tree | 85f46261078ff94e7198983a11ad5cae170f4d5b /include/ansidecl.h | |
parent | 24ae4910e19f284cb621418cf06d70f2833190de (diff) | |
download | gdb-039a0a12de76b9aa7c1a99de786798b62374a047.tar.gz |
merge from gcc
Diffstat (limited to 'include/ansidecl.h')
-rw-r--r-- | include/ansidecl.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/ansidecl.h b/include/ansidecl.h index b7c4c40abff..4c63fa66e49 100644 --- a/include/ansidecl.h +++ b/include/ansidecl.h @@ -152,8 +152,8 @@ So instead we use the macro below and test it against specific values. */ /* "struct Qdmy" swallows the semicolon after VA_OPEN/VA_FIXEDARG's use without inhibiting further decls and without declaring an actual variable. */ -#define VA_OPEN(AP, VAR) va_list AP; va_start(AP, VAR); { struct Qdmy -#define VA_CLOSE(AP) } va_end(AP) +#define VA_OPEN(AP, VAR) { va_list AP; va_start(AP, VAR); { struct Qdmy +#define VA_CLOSE(AP) } va_end(AP); } #define VA_FIXEDARG(AP, T, N) struct Qdmy #undef const @@ -199,8 +199,8 @@ So instead we use the macro below and test it against specific values. */ #define VPARAMS(args) (va_alist) va_dcl #define VA_START(va_list, var) va_start(va_list) -#define VA_OPEN(AP, VAR) va_list AP; va_start(AP); { struct Qdmy -#define VA_CLOSE(AP) } va_end(AP) +#define VA_OPEN(AP, VAR) { va_list AP; va_start(AP); { struct Qdmy +#define VA_CLOSE(AP) } va_end(AP); } #define VA_FIXEDARG(AP, TYPE, NAME) TYPE NAME = va_arg(AP, TYPE) /* some systems define these in header files for non-ansi mode */ |