mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
replace usage of Py_VA_COPY with the (C99) standard va_copy
This commit is contained in:
parent
ec2319c46d
commit
0c21214f3e
8 changed files with 11 additions and 71 deletions
|
@ -723,15 +723,7 @@ 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) 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
|
||||
#define Py_VA_COPY va_copy
|
||||
|
||||
/*
|
||||
* Convenient macros to deal with endianness of the platform. WORDS_BIGENDIAN is
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue