diff options
Diffstat (limited to 'Include/parsetok.h')
-rw-r--r-- | Include/parsetok.h | 29 |
1 files changed, 15 insertions, 14 deletions
diff --git a/Include/parsetok.h b/Include/parsetok.h index 151990d..5244e3f 100644 --- a/Include/parsetok.h +++ b/Include/parsetok.h @@ -1,9 +1,3 @@ -#ifndef Py_PARSETOK_H -#define Py_PARSETOK_H -#ifdef __cplusplus -extern "C" { -#endif - /*********************************************************** Copyright (c) 2000, BeOpen.com. Copyright (c) 1995-2000, Corporation for National Research Initiatives. @@ -16,17 +10,24 @@ redistribution of this file, and for a DISCLAIMER OF ALL WARRANTIES. /* Parser-tokenizer link interface */ +#ifndef Py_PARSETOK_H +#define Py_PARSETOK_H +#ifdef __cplusplus +extern "C" { +#endif + typedef struct { - int error; - char *filename; - int lineno; - int offset; - char *text; + int error; + char *filename; + int lineno; + int offset; + char *text; } perrdetail; -extern DL_IMPORT(node *) PyParser_ParseString Py_PROTO((char *, grammar *, int, perrdetail *)); -extern DL_IMPORT(node *) PyParser_ParseFile Py_PROTO((FILE *, char *, grammar *, int, - char *, char *, perrdetail *)); +extern DL_IMPORT(node *) PyParser_ParseString(char *, grammar *, int, + perrdetail *); +extern DL_IMPORT(node *) PyParser_ParseFile (FILE *, char *, grammar *, int, + char *, char *, perrdetail *); #ifdef __cplusplus } |