diff options
author | Kaveh R. Ghazi <ghazi@caip.rutgers.edu> | 2001-08-27 19:10:39 +0000 |
---|---|---|
committer | Kaveh Ghazi <ghazi@gcc.gnu.org> | 2001-08-27 19:10:39 +0000 |
commit | e2dff3f2f6bbc434bf9ae0ad1701594fb24d85cf (patch) | |
tree | d23e7ce6ba6bad4bc0e3bcf6fa3f63d9e2844c33 /include/ansidecl.h | |
parent | 67a44b16b1678e2f3bda0db7127e99dace8399fb (diff) | |
download | gcc-e2dff3f2f6bbc434bf9ae0ad1701594fb24d85cf.zip gcc-e2dff3f2f6bbc434bf9ae0ad1701594fb24d85cf.tar.gz gcc-e2dff3f2f6bbc434bf9ae0ad1701594fb24d85cf.tar.bz2 |
ansidecl.h (VA_OPEN, VA_CLOSE): Allow multiple uses.
include:
* ansidecl.h (VA_OPEN, VA_CLOSE): Allow multiple uses.
libiberty:
* concat.c (concat): Use VPARAMS, VA_OPEN, VA_FIXEDARG & VA_CLOSE.
From-SVN: r45204
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 b7c4c40..4c63fa6 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 */ |