diff options
author | Alexander Belopolsky <alexander.belopolsky@gmail.com> | 2010-08-11 17:31:17 (GMT) |
---|---|---|
committer | Alexander Belopolsky <alexander.belopolsky@gmail.com> | 2010-08-11 17:31:17 (GMT) |
commit | f0f45142d52436d26ce8ed888c73496949caae90 (patch) | |
tree | 53a4f3c197b87cb8afa33b87de48b06d5859513d /Include | |
parent | 3a879e8a277e61195f5379862ef47f3ca9c69f4b (diff) | |
download | cpython-f0f45142d52436d26ce8ed888c73496949caae90.zip cpython-f0f45142d52436d26ce8ed888c73496949caae90.tar.gz cpython-f0f45142d52436d26ce8ed888c73496949caae90.tar.bz2 |
Issue #2443: Added a new macro, Py_VA_COPY, which is equivalent to C99
va_copy, but available on all python platforms. Untabified a few
unrelated files.
Diffstat (limited to 'Include')
-rw-r--r-- | Include/pyport.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Include/pyport.h b/Include/pyport.h index 9561285..3932dc6 100644 --- a/Include/pyport.h +++ b/Include/pyport.h @@ -822,4 +822,14 @@ extern pid_t forkpty(int *, char *, struct termios *, struct winsize *); #define Py_ULL(x) Py_LL(x##U) #endif +#ifdef VA_LIST_IS_ARRAY +#define Py_VA_COPY(x, y) Py_MEMCPY((x), (y), sizeof(va_list)) +#else +#ifdef __va_copy +#define Py_VA_COPY __va_copy +#else +#define Py_VA_COPY(x, y) (x) = (y) +#endif +#endif + #endif /* Py_PYPORT_H */ |