mirror of
https://github.com/python/cpython.git
synced 2025-08-01 07:33:08 +00:00
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.
This commit is contained in:
parent
3a879e8a27
commit
f0f45142d5
13 changed files with 74 additions and 124 deletions
|
@ -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 */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue