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 /Objects/abstract.c | |
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 'Objects/abstract.c')
-rw-r--r-- | Objects/abstract.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/Objects/abstract.c b/Objects/abstract.c index fa2611a..d5a5d3c 100644 --- a/Objects/abstract.c +++ b/Objects/abstract.c @@ -2311,15 +2311,7 @@ objargs_mktuple(va_list va) va_list countva; PyObject *result, *tmp; -#ifdef VA_LIST_IS_ARRAY - memcpy(countva, va, sizeof(va_list)); -#else -#ifdef __va_copy - __va_copy(countva, va); -#else - countva = va; -#endif -#endif + Py_VA_COPY(countva, va); while (((PyObject *)va_arg(countva, PyObject *)) != NULL) ++n; |