From 6b17abf6c0ddaed423a76e665124a80afbc39fe7 Mon Sep 17 00:00:00 2001 From: Thomas Heller Date: Tue, 9 Jul 2002 09:23:27 +0000 Subject: Fix SF Bug 564931: compile() traceback must include filename. --- Include/parsetok.h | 4 ++++ Include/pythonrun.h | 4 ++++ 2 files changed, 8 insertions(+) (limited to 'Include') diff --git a/Include/parsetok.h b/Include/parsetok.h index bfe9f8f494..ad337bd2a8 100644 --- a/Include/parsetok.h +++ b/Include/parsetok.h @@ -32,6 +32,10 @@ extern DL_IMPORT(node *) PyParser_ParseFileFlags(FILE *, char *, grammar *, int, char *, char *, perrdetail *, int); +extern DL_IMPORT(node *) PyParser_ParseStringFlagsFilename(char *, + char *, + grammar *, int, + perrdetail *, int); #ifdef __cplusplus } #endif diff --git a/Include/pythonrun.h b/Include/pythonrun.h index 3a79288ac0..33cf15c6cc 100644 --- a/Include/pythonrun.h +++ b/Include/pythonrun.h @@ -45,6 +45,10 @@ DL_IMPORT(int) PyRun_InteractiveLoopFlags(FILE *, char *, PyCompilerFlags *); DL_IMPORT(struct _node *) PyParser_SimpleParseString(char *, int); DL_IMPORT(struct _node *) PyParser_SimpleParseFile(FILE *, char *, int); DL_IMPORT(struct _node *) PyParser_SimpleParseStringFlags(char *, int, int); +DL_IMPORT(struct _node *) PyParser_SimpleParseStringFlagsFilename(char *, + char *, + int, + int); DL_IMPORT(struct _node *) PyParser_SimpleParseFileFlags(FILE *, char *, int, int); -- cgit v1.2.1