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 | |
Martin v. Löwis | 4f1cd8b | 2001-07-26 13:41:06 +0000 | [diff] [blame] | 10 | #include "pyconfig.h" |
Guido van Rossum | b6775db | 1994-08-01 11:34:53 +0000 | [diff] [blame] | 11 | |
Tim Peters | 76f373d | 2001-07-26 21:34:59 +0000 | [diff] [blame] | 12 | /* pyconfig.h may or may not define DL_IMPORT */ |
Guido van Rossum | b221ac4 | 1996-05-22 17:28:54 +0000 | [diff] [blame] | 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 | |
Neil Schemenauer | 90b6890 | 2001-10-23 02:21:22 +0000 | [diff] [blame] | 28 | DL_IMPORT(void) PySys_WriteStdout(const char *format, ...) |
| 29 | __attribute__((format(printf, 1, 2))); |
| 30 | DL_IMPORT(void) PySys_WriteStderr(const char *format, ...) |
| 31 | __attribute__((format(printf, 1, 2))); |
Guido van Rossum | 1d2e9d1 | 1998-09-17 14:00:22 +0000 | [diff] [blame] | 32 | |
Guido van Rossum | 5048de2 | 1996-05-24 20:43:31 +0000 | [diff] [blame] | 33 | #define addarc _Py_addarc |
| 34 | #define addbit _Py_addbit |
| 35 | #define adddfa _Py_adddfa |
| 36 | #define addfirstsets _Py_addfirstsets |
| 37 | #define addlabel _Py_addlabel |
| 38 | #define addstate _Py_addstate |
| 39 | #define delbitset _Py_delbitset |
| 40 | #define dumptree _Py_dumptree |
| 41 | #define findlabel _Py_findlabel |
| 42 | #define mergebitset _Py_mergebitset |
| 43 | #define meta_grammar _Py_meta_grammar |
| 44 | #define newbitset _Py_newbitset |
| 45 | #define newgrammar _Py_newgrammar |
| 46 | #define pgen _Py_pgen |
| 47 | #define printgrammar _Py_printgrammar |
| 48 | #define printnonterminals _Py_printnonterminals |
| 49 | #define printtree _Py_printtree |
| 50 | #define samebitset _Py_samebitset |
| 51 | #define showtree _Py_showtree |
| 52 | #define tok_dump _Py_tok_dump |
| 53 | #define translatelabels _Py_translatelabels |
| 54 | |
Guido van Rossum | a330996 | 1993-07-28 09:05:47 +0000 | [diff] [blame] | 55 | #ifdef __cplusplus |
| 56 | } |
| 57 | #endif |
| 58 | #endif /* !Py_PGENHEADERS_H */ |