Guido van Rossum | a330996 | 1993-07-28 09:05:47 +0000 | [diff] [blame] | 1 | #ifndef Py_PGENHEADERS_H |
| 2 | #define Py_PGENHEADERS_H |
| 3 | #ifdef __cplusplus |
| 4 | extern "C" { |
| 5 | #endif |
| 6 | |
Guido van Rossum | f70e43a | 1991-02-19 12:39:46 +0000 | [diff] [blame] | 7 | |
Guido van Rossum | ff18df0 | 1994-08-29 10:55:19 +0000 | [diff] [blame] | 8 | /* Include files and extern declarations used by most of the parser. */ |
Guido van Rossum | 3f5da24 | 1990-12-20 15:06:42 +0000 | [diff] [blame] | 9 | |
Guido van Rossum | b6775db | 1994-08-01 11:34:53 +0000 | [diff] [blame] | 10 | #include "config.h" |
Guido van Rossum | b6775db | 1994-08-01 11:34:53 +0000 | [diff] [blame] | 11 | |
Guido van Rossum | b221ac4 | 1996-05-22 17:28:54 +0000 | [diff] [blame] | 12 | /* config.h may or may not define DL_IMPORT */ |
| 13 | #ifndef DL_IMPORT /* declarations for DLL import/export */ |
| 14 | #define DL_IMPORT(RTYPE) RTYPE |
| 15 | #endif |
| 16 | |
Guido van Rossum | 3f5da24 | 1990-12-20 15:06:42 +0000 | [diff] [blame] | 17 | #include <stdio.h> |
Guido van Rossum | b156d72 | 1990-12-20 23:13:00 +0000 | [diff] [blame] | 18 | #include <string.h> |
Guido van Rossum | 3f5da24 | 1990-12-20 15:06:42 +0000 | [diff] [blame] | 19 | |
Guido van Rossum | b6775db | 1994-08-01 11:34:53 +0000 | [diff] [blame] | 20 | #ifdef HAVE_STDLIB_H |
Guido van Rossum | b156d72 | 1990-12-20 23:13:00 +0000 | [diff] [blame] | 21 | #include <stdlib.h> |
| 22 | #endif |
Guido van Rossum | b156d72 | 1990-12-20 23:13:00 +0000 | [diff] [blame] | 23 | |
Peter Schneider-Kamp | 25f6894 | 2000-07-31 22:19:30 +0000 | [diff] [blame] | 24 | #include "pymem.h" |
Guido van Rossum | 3f5da24 | 1990-12-20 15:06:42 +0000 | [diff] [blame] | 25 | |
Guido van Rossum | b221ac4 | 1996-05-22 17:28:54 +0000 | [diff] [blame] | 26 | #include "pydebug.h" |
Guido van Rossum | a330996 | 1993-07-28 09:05:47 +0000 | [diff] [blame] | 27 | |
Guido van Rossum | 43466ec | 1998-12-04 18:48:25 +0000 | [diff] [blame] | 28 | DL_IMPORT(void) PySys_WriteStdout(const char *format, ...); |
| 29 | DL_IMPORT(void) PySys_WriteStderr(const char *format, ...); |
Guido van Rossum | 1d2e9d1 | 1998-09-17 14:00:22 +0000 | [diff] [blame] | 30 | |
Guido van Rossum | 5048de2 | 1996-05-24 20:43:31 +0000 | [diff] [blame] | 31 | #define addarc _Py_addarc |
| 32 | #define addbit _Py_addbit |
| 33 | #define adddfa _Py_adddfa |
| 34 | #define addfirstsets _Py_addfirstsets |
| 35 | #define addlabel _Py_addlabel |
| 36 | #define addstate _Py_addstate |
| 37 | #define delbitset _Py_delbitset |
| 38 | #define dumptree _Py_dumptree |
| 39 | #define findlabel _Py_findlabel |
| 40 | #define mergebitset _Py_mergebitset |
| 41 | #define meta_grammar _Py_meta_grammar |
| 42 | #define newbitset _Py_newbitset |
| 43 | #define newgrammar _Py_newgrammar |
| 44 | #define pgen _Py_pgen |
| 45 | #define printgrammar _Py_printgrammar |
| 46 | #define printnonterminals _Py_printnonterminals |
| 47 | #define printtree _Py_printtree |
| 48 | #define samebitset _Py_samebitset |
| 49 | #define showtree _Py_showtree |
| 50 | #define tok_dump _Py_tok_dump |
| 51 | #define translatelabels _Py_translatelabels |
| 52 | |
Guido van Rossum | a330996 | 1993-07-28 09:05:47 +0000 | [diff] [blame] | 53 | #ifdef __cplusplus |
| 54 | } |
| 55 | #endif |
| 56 | #endif /* !Py_PGENHEADERS_H */ |