summaryrefslogtreecommitdiffstats
path: root/Include/parsetok.h
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2000-07-08 23:37:28 (GMT)
committerFred Drake <fdrake@acm.org>2000-07-08 23:37:28 (GMT)
commit5eb6d4e3bf094c33ae66432eeae3668e220dd28d (patch)
tree2a69e01bee2bbf196f8432b639cc8985431ec7e4 /Include/parsetok.h
parentff7df9d7b8b6ad7e73fe54cdf02b9ab6386ff355 (diff)
downloadcpython-5eb6d4e3bf094c33ae66432eeae3668e220dd28d.zip
cpython-5eb6d4e3bf094c33ae66432eeae3668e220dd28d.tar.gz
cpython-5eb6d4e3bf094c33ae66432eeae3668e220dd28d.tar.bz2
ANSI-fication and Py_PROTO extermination.
Diffstat (limited to 'Include/parsetok.h')
-rw-r--r--Include/parsetok.h29
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
}