mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
Use Py_GCC_ATTRIBUTE instead of __attribute__. Compilers other than GCC
might use __attribute__ in other ways (e.g. CodeWarrior).
This commit is contained in:
parent
7f7c3d0a9c
commit
96aa0acef0
5 changed files with 12 additions and 10 deletions
|
@ -52,9 +52,9 @@ PyAPI_DATA(PyTypeObject) PyString_Type;
|
|||
PyAPI_FUNC(PyObject *) PyString_FromStringAndSize(const char *, int);
|
||||
PyAPI_FUNC(PyObject *) PyString_FromString(const char *);
|
||||
PyAPI_FUNC(PyObject *) PyString_FromFormatV(const char*, va_list)
|
||||
__attribute__((format(printf, 1, 0)));
|
||||
Py_GCC_ATTRIBUTE((format(printf, 1, 0)));
|
||||
PyAPI_FUNC(PyObject *) PyString_FromFormat(const char*, ...)
|
||||
__attribute__((format(printf, 1, 2)));
|
||||
Py_GCC_ATTRIBUTE((format(printf, 1, 2)));
|
||||
PyAPI_FUNC(int) PyString_Size(PyObject *);
|
||||
PyAPI_FUNC(char *) PyString_AsString(PyObject *);
|
||||
PyAPI_FUNC(PyObject *) PyString_Repr(PyObject *, int);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue