diff options
author | Alexander Belopolsky <alexander.belopolsky@gmail.com> | 2010-08-11 17:31:17 +0000 |
---|---|---|
committer | Alexander Belopolsky <alexander.belopolsky@gmail.com> | 2010-08-11 17:31:17 +0000 |
commit | 35ce36d96009a24d4f588bf27c1c07e2af4fc822 (patch) | |
tree | e6b666ca15651fe9a0012ae57dba051ed34f083d /Python/modsupport.c | |
parent | f7953b6ee91a1b7d2e597c03031dc3ab550186f2 (diff) | |
download | cpython-35ce36d96009a24d4f588bf27c1c07e2af4fc822.tar.gz |
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 'Python/modsupport.c')
-rw-r--r-- | Python/modsupport.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/Python/modsupport.c b/Python/modsupport.c index 5f5d842eea..85b0d66358 100644 --- a/Python/modsupport.c +++ b/Python/modsupport.c @@ -456,15 +456,7 @@ va_build_value(const char *format, va_list va, int flags) int n = countformat(f, '\0'); va_list lva; -#ifdef VA_LIST_IS_ARRAY - memcpy(lva, va, sizeof(va_list)); -#else -#ifdef __va_copy - __va_copy(lva, va); -#else - lva = va; -#endif -#endif + Py_VA_COPY(lva, va); if (n < 0) return NULL; |