diff Include/pyerrors.h @ 26601:cc05c2c8660e legacy-trunk

Constify filenames and scripts. Fixes #651362.
author Martin v. Löwis <martin@v.loewis.de>
date Wed, 11 Dec 2002 14:04:59 +0000
parents b9c912e2c3c0
children 85e52ec85629
line wrap: on
line diff
--- a/Include/pyerrors.h	Wed Dec 11 13:54:20 2002 +0000
+++ b/Include/pyerrors.h	Wed Dec 11 14:04:59 2002 +0000
@@ -130,16 +130,17 @@
 
 /* Issue a warning or exception */
 PyAPI_FUNC(int) PyErr_Warn(PyObject *, char *);
-PyAPI_FUNC(int) PyErr_WarnExplicit(PyObject *, char *,
-					 char *, int, char *, PyObject *);
+PyAPI_FUNC(int) PyErr_WarnExplicit(PyObject *, const char *,
+				   const char *, int, 
+				   const char *, PyObject *);
 
 /* In sigcheck.c or signalmodule.c */
 PyAPI_FUNC(int) PyErr_CheckSignals(void);
 PyAPI_FUNC(void) PyErr_SetInterrupt(void);
 
 /* Support for adding program text to SyntaxErrors */
-PyAPI_FUNC(void) PyErr_SyntaxLocation(char *, int);
-PyAPI_FUNC(PyObject *) PyErr_ProgramText(char *, int);
+PyAPI_FUNC(void) PyErr_SyntaxLocation(const char *, int);
+PyAPI_FUNC(PyObject *) PyErr_ProgramText(const char *, int);
 
 #ifdef Py_USING_UNICODE
 /* The following functions are used to create and modify unicode