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