[Python-checkins] python/dist/src/Include stringobject.h,2.37,2.38

nascheme@users.sourceforge.net nascheme@users.sourceforge.net
Sun, 15 Sep 2002 07:09:48 -0700


Update of /cvsroot/python/python/dist/src/Include
In directory usw-pr-cvs1:/tmp/cvs-serv22464

Modified Files:
	stringobject.h 
Log Message:
Use Py_GCC_ATTRIBUTE instead of __attribute__.  Compilers other than GCC
might use __attribute__ in other ways (e.g. CodeWarrior).


Index: stringobject.h
===================================================================
RCS file: /cvsroot/python/python/dist/src/Include/stringobject.h,v
retrieving revision 2.37
retrieving revision 2.38
diff -C2 -d -r2.37 -r2.38
*** stringobject.h	19 Aug 2002 21:43:18 -0000	2.37
--- stringobject.h	15 Sep 2002 14:09:46 -0000	2.38
***************
*** 53,59 ****
  PyAPI_FUNC(PyObject *) PyString_FromString(const char *);
  PyAPI_FUNC(PyObject *) PyString_FromFormatV(const char*, va_list)
! 				__attribute__((format(printf, 1, 0)));
  PyAPI_FUNC(PyObject *) PyString_FromFormat(const char*, ...)
! 				__attribute__((format(printf, 1, 2)));
  PyAPI_FUNC(int) PyString_Size(PyObject *);
  PyAPI_FUNC(char *) PyString_AsString(PyObject *);
--- 53,59 ----
  PyAPI_FUNC(PyObject *) PyString_FromString(const char *);
  PyAPI_FUNC(PyObject *) PyString_FromFormatV(const char*, va_list)
! 				Py_GCC_ATTRIBUTE((format(printf, 1, 0)));
  PyAPI_FUNC(PyObject *) PyString_FromFormat(const char*, ...)
! 				Py_GCC_ATTRIBUTE((format(printf, 1, 2)));
  PyAPI_FUNC(int) PyString_Size(PyObject *);
  PyAPI_FUNC(char *) PyString_AsString(PyObject *);