diff options
author | Ori Bernstein <ori@eigenstate.org> | 2020-03-22 17:31:39 -0700 |
---|---|---|
committer | Ori Bernstein <ori@eigenstate.org> | 2020-03-22 17:31:39 -0700 |
commit | a654b94db8a3574b7a774edfd77b8612c0b642cd (patch) | |
tree | c55640ab3d06fe8020c1dcd0ebbf0081c879e7d5 /mips | |
parent | 7364a96b289c24637db802fca6c57d8024ca2359 (diff) | |
download | plan9front-a654b94db8a3574b7a774edfd77b8612c0b642cd.tar.xz |
add va_copy macro, conforming to c99 7.15.1.2
Diffstat (limited to 'mips')
-rw-r--r-- | mips/include/ape/stdarg.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/mips/include/ape/stdarg.h b/mips/include/ape/stdarg.h index b7e2282e6..9a1f08c7e 100644 --- a/mips/include/ape/stdarg.h +++ b/mips/include/ape/stdarg.h @@ -7,5 +7,6 @@ typedef char *va_list; #define va_end(list) #define va_arg(list, mode) (sizeof(mode)==1 ? ((mode *) (list += 4))[-4] : \ sizeof(mode)==2 ? ((mode *) (list += 4))[-2] : ((mode *) (list += sizeof(mode)))[-1]) +#define va_copy(dst, src) ((dst) = (src)) #endif /* __STDARG */ |