diff options
author | DJ Delorie <dj@redhat.com> | 2001-08-27 20:05:03 +0000 |
---|---|---|
committer | DJ Delorie <dj@redhat.com> | 2001-08-27 20:05:03 +0000 |
commit | 8a423cb3d62534f6663b66ae42045fd984d36d63 (patch) | |
tree | b55408216c31718273ce78d51a71ad5e06431b52 /include | |
parent | 7283eb8605a152788f7748a5ae9f21eafc23c62e (diff) | |
download | fsf-binutils-gdb-8a423cb3d62534f6663b66ae42045fd984d36d63.zip fsf-binutils-gdb-8a423cb3d62534f6663b66ae42045fd984d36d63.tar.gz fsf-binutils-gdb-8a423cb3d62534f6663b66ae42045fd984d36d63.tar.bz2 |
merge from gcc
Diffstat (limited to 'include')
-rw-r--r-- | include/ChangeLog | 4 | ||||
-rw-r--r-- | include/ansidecl.h | 8 |
2 files changed, 8 insertions, 4 deletions
diff --git a/include/ChangeLog b/include/ChangeLog index 5c76a7b..640b058 100644 --- a/include/ChangeLog +++ b/include/ChangeLog @@ -1,3 +1,7 @@ +2001-08-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> + + * ansidecl.h (VA_OPEN, VA_CLOSE): Allow multiple uses. + 2001-08-25 Nick Clifton <nickc@cambridge.redhat.com> * bfdlink.h (struct bfd_link_info): Change 'spare_dynamic_tags' to 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 */ |