From 95292d6caa3af3196c5b9f5f95dae209815c09e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20v=2E=20L=C3=B6wis?= Date: Wed, 11 Dec 2002 14:04:59 +0000 Subject: Constify filenames and scripts. Fixes #651362. --- Include/parsetok.h | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'Include/parsetok.h') diff --git a/Include/parsetok.h b/Include/parsetok.h index 9bcc1f75fa..58ef76ab69 100644 --- a/Include/parsetok.h +++ b/Include/parsetok.h @@ -9,7 +9,7 @@ extern "C" { typedef struct { int error; - char *filename; + const char *filename; int lineno; int offset; char *text; @@ -21,19 +21,19 @@ typedef struct { #define PyPARSE_YIELD_IS_KEYWORD 0x0001 #endif -PyAPI_FUNC(node *) PyParser_ParseString(char *, grammar *, int, +PyAPI_FUNC(node *) PyParser_ParseString(const char *, grammar *, int, perrdetail *); -PyAPI_FUNC(node *) PyParser_ParseFile (FILE *, char *, grammar *, int, +PyAPI_FUNC(node *) PyParser_ParseFile (FILE *, const char *, grammar *, int, char *, char *, perrdetail *); -PyAPI_FUNC(node *) PyParser_ParseStringFlags(char *, grammar *, int, +PyAPI_FUNC(node *) PyParser_ParseStringFlags(const char *, grammar *, int, perrdetail *, int); -PyAPI_FUNC(node *) PyParser_ParseFileFlags(FILE *, char *, grammar *, +PyAPI_FUNC(node *) PyParser_ParseFileFlags(FILE *, const char *, grammar *, int, char *, char *, perrdetail *, int); -PyAPI_FUNC(node *) PyParser_ParseStringFlagsFilename(char *, - char *, +PyAPI_FUNC(node *) PyParser_ParseStringFlagsFilename(const char *, + const char *, grammar *, int, perrdetail *, int); #ifdef __cplusplus -- cgit v1.2.1