[Python-checkins] python/dist/src/Include pyerrors.h,2.54,2.54.2.1

jhylton@users.sourceforge.net jhylton@users.sourceforge.net
2002年7月07日 10:44:11 -0700


Update of /cvsroot/python/python/dist/src/Include
In directory usw-pr-cvs1:/tmp/cvs-serv31629/Include
Modified Files:
 Tag: ast-branch
	pyerrors.h 
Log Message:
Add some constification.
Perhaps this is a distraction from the real AST changes.
Index: pyerrors.h
===================================================================
RCS file: /cvsroot/python/python/dist/src/Include/pyerrors.h,v
retrieving revision 2.54
retrieving revision 2.54.2.1
diff -C2 -d -r2.54 -r2.54.2.1
*** pyerrors.h	29 May 2002 15:54:54 -0000	2.54
--- pyerrors.h	7 Jul 2002 17:44:09 -0000	2.54.2.1
***************
*** 100,105 ****
 /* Issue a warning or exception */
 extern DL_IMPORT(int) PyErr_Warn(PyObject *, char *);
! extern DL_IMPORT(int) PyErr_WarnExplicit(PyObject *, char *,
! 					 char *, int, char *, PyObject *);
 
 /* In sigcheck.c or signalmodule.c */
--- 100,105 ----
 /* Issue a warning or exception */
 extern DL_IMPORT(int) PyErr_Warn(PyObject *, char *);
! extern DL_IMPORT(int) PyErr_WarnExplicit(PyObject *, char *, const char *, 
! 					 int, char *, PyObject *);
 
 /* In sigcheck.c or signalmodule.c */
***************
*** 108,113 ****
 
 /* Support for adding program text to SyntaxErrors */
! extern DL_IMPORT(void) PyErr_SyntaxLocation(char *, int);
! extern DL_IMPORT(PyObject *) PyErr_ProgramText(char *, int);
 
 /* These APIs aren't really part of the error implementation, but
--- 108,113 ----
 
 /* Support for adding program text to SyntaxErrors */
! extern DL_IMPORT(void) PyErr_SyntaxLocation(const char *, int);
! extern DL_IMPORT(PyObject *) PyErr_ProgramText(const char *, int);
 
 /* These APIs aren't really part of the error implementation, but

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