blob: dcd3c5ef5bae7ac8c33c65f331e28b2f42729348 [file] [log] [blame]
Guido van Rossuma3309961993-07-28 09:05:47 +00001#ifndef Py_PGENHEADERS_H
2#define Py_PGENHEADERS_H
3#ifdef __cplusplus
4extern "C" {
5#endif
6
Guido van Rossumf70e43a1991-02-19 12:39:46 +00007
Guido van Rossumff18df01994-08-29 10:55:19 +00008/* Include files and extern declarations used by most of the parser. */
Guido van Rossum3f5da241990-12-20 15:06:42 +00009
Guido van Rossumb6775db1994-08-01 11:34:53 +000010#include "config.h"
Guido van Rossumb6775db1994-08-01 11:34:53 +000011
Guido van Rossumb221ac41996-05-22 17:28:54 +000012/* 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 Rossum3f5da241990-12-20 15:06:42 +000017#include <stdio.h>
Guido van Rossumb156d721990-12-20 23:13:00 +000018#include <string.h>
Guido van Rossum3f5da241990-12-20 15:06:42 +000019
Guido van Rossumb6775db1994-08-01 11:34:53 +000020#ifdef HAVE_STDLIB_H
Guido van Rossumb156d721990-12-20 23:13:00 +000021#include <stdlib.h>
22#endif
Guido van Rossumb156d721990-12-20 23:13:00 +000023
Peter Schneider-Kamp25f68942000-07-31 22:19:30 +000024#include "pymem.h"
Guido van Rossum3f5da241990-12-20 15:06:42 +000025
Guido van Rossumb221ac41996-05-22 17:28:54 +000026#include "pydebug.h"
Guido van Rossuma3309961993-07-28 09:05:47 +000027
Guido van Rossum43466ec1998-12-04 18:48:25 +000028DL_IMPORT(void) PySys_WriteStdout(const char *format, ...);
29DL_IMPORT(void) PySys_WriteStderr(const char *format, ...);
Guido van Rossum1d2e9d11998-09-17 14:00:22 +000030
Guido van Rossum5048de21996-05-24 20:43:31 +000031#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 Rossuma3309961993-07-28 09:05:47 +000053#ifdef __cplusplus
54}
55#endif
56#endif /* !Py_PGENHEADERS_H */