[Python-checkins] CVS: python/dist/src/Include stringobject.h,2.31,2.32

Neil Schemenauer nascheme@users.sourceforge.net
2001年10月22日 19:21:06 -0700


Update of /cvsroot/python/python/dist/src/Include
In directory usw-pr-cvs1:/tmp/cvs-serv27092/Include
Modified Files:
	stringobject.h 
Log Message:
Add function attributes that allow GCC to check the arguments of printf-like
functions.
Index: stringobject.h
===================================================================
RCS file: /cvsroot/python/python/dist/src/Include/stringobject.h,v
retrieving revision 2.31
retrieving revision 2.32
diff -C2 -d -r2.31 -r2.32
*** stringobject.h	2001年09月11日 01:41:58	2.31
--- stringobject.h	2001年10月23日 02:21:03	2.32
***************
*** 57,62 ****
 extern DL_IMPORT(PyObject *) PyString_FromStringAndSize(const char *, int);
 extern DL_IMPORT(PyObject *) PyString_FromString(const char *);
! extern DL_IMPORT(PyObject *) PyString_FromFormatV(const char*, va_list);
! extern DL_IMPORT(PyObject *) PyString_FromFormat(const char*, ...);
 extern DL_IMPORT(int) PyString_Size(PyObject *);
 extern DL_IMPORT(char *) PyString_AsString(PyObject *);
--- 57,64 ----
 extern DL_IMPORT(PyObject *) PyString_FromStringAndSize(const char *, int);
 extern DL_IMPORT(PyObject *) PyString_FromString(const char *);
! extern DL_IMPORT(PyObject *) PyString_FromFormatV(const char*, va_list)
! 				__attribute__((format(printf, 1, 0)));
! extern DL_IMPORT(PyObject *) PyString_FromFormat(const char*, ...)
! 				__attribute__((format(printf, 1, 2)));
 extern DL_IMPORT(int) PyString_Size(PyObject *);
 extern DL_IMPORT(char *) PyString_AsString(PyObject *);

AltStyle によって変換されたページ (->オリジナル) /