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 | 5799b52 | 1995-01-04 19:06:22 +0000 | [diff] [blame] | 8 | Copyright 1991-1995 by Stichting Mathematisch Centrum, Amsterdam, |
| 9 | The Netherlands. |
Guido van Rossum | f70e43a | 1991-02-19 12:39:46 +0000 | [diff] [blame] | 10 | |
| 11 | All Rights Reserved |
| 12 | |
Guido van Rossum | d266eb4 | 1996-10-25 14:44:06 +0000 | [diff] [blame] | 13 | Permission to use, copy, modify, and distribute this software and its |
| 14 | documentation for any purpose and without fee is hereby granted, |
Guido van Rossum | f70e43a | 1991-02-19 12:39:46 +0000 | [diff] [blame] | 15 | provided that the above copyright notice appear in all copies and that |
Guido van Rossum | d266eb4 | 1996-10-25 14:44:06 +0000 | [diff] [blame] | 16 | both that copyright notice and this permission notice appear in |
Guido van Rossum | f70e43a | 1991-02-19 12:39:46 +0000 | [diff] [blame] | 17 | supporting documentation, and that the names of Stichting Mathematisch |
Guido van Rossum | d266eb4 | 1996-10-25 14:44:06 +0000 | [diff] [blame] | 18 | Centrum or CWI or Corporation for National Research Initiatives or |
| 19 | CNRI not be used in advertising or publicity pertaining to |
| 20 | distribution of the software without specific, written prior |
| 21 | permission. |
Guido van Rossum | f70e43a | 1991-02-19 12:39:46 +0000 | [diff] [blame] | 22 | |
Guido van Rossum | d266eb4 | 1996-10-25 14:44:06 +0000 | [diff] [blame] | 23 | While CWI is the initial source for this software, a modified version |
| 24 | is made available by the Corporation for National Research Initiatives |
| 25 | (CNRI) at the Internet address ftp://ftp.python.org. |
| 26 | |
| 27 | STICHTING MATHEMATISCH CENTRUM AND CNRI DISCLAIM ALL WARRANTIES WITH |
| 28 | REGARD TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF |
| 29 | MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL STICHTING MATHEMATISCH |
| 30 | CENTRUM OR CNRI BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL |
| 31 | DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR |
| 32 | PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER |
| 33 | TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR |
| 34 | PERFORMANCE OF THIS SOFTWARE. |
Guido van Rossum | f70e43a | 1991-02-19 12:39:46 +0000 | [diff] [blame] | 35 | |
| 36 | ******************************************************************/ |
| 37 | |
Guido van Rossum | ff18df0 | 1994-08-29 10:55:19 +0000 | [diff] [blame] | 38 | /* Include files and extern declarations used by most of the parser. */ |
Guido van Rossum | 3f5da24 | 1990-12-20 15:06:42 +0000 | [diff] [blame] | 39 | |
Guido van Rossum | b6775db | 1994-08-01 11:34:53 +0000 | [diff] [blame] | 40 | #include "config.h" |
Guido van Rossum | b6775db | 1994-08-01 11:34:53 +0000 | [diff] [blame] | 41 | |
Guido van Rossum | b221ac4 | 1996-05-22 17:28:54 +0000 | [diff] [blame] | 42 | /* config.h may or may not define DL_IMPORT */ |
| 43 | #ifndef DL_IMPORT /* declarations for DLL import/export */ |
| 44 | #define DL_IMPORT(RTYPE) RTYPE |
| 45 | #endif |
| 46 | |
Guido van Rossum | 3f5da24 | 1990-12-20 15:06:42 +0000 | [diff] [blame] | 47 | #include <stdio.h> |
Guido van Rossum | b156d72 | 1990-12-20 23:13:00 +0000 | [diff] [blame] | 48 | #include <string.h> |
Guido van Rossum | 3f5da24 | 1990-12-20 15:06:42 +0000 | [diff] [blame] | 49 | |
| 50 | #ifdef THINK_C |
| 51 | #define label label_ |
Guido van Rossum | 3f5da24 | 1990-12-20 15:06:42 +0000 | [diff] [blame] | 52 | #undef label |
| 53 | #endif |
| 54 | |
Guido van Rossum | b6775db | 1994-08-01 11:34:53 +0000 | [diff] [blame] | 55 | #ifdef HAVE_STDLIB_H |
Guido van Rossum | b156d72 | 1990-12-20 23:13:00 +0000 | [diff] [blame] | 56 | #include <stdlib.h> |
| 57 | #endif |
Guido van Rossum | b156d72 | 1990-12-20 23:13:00 +0000 | [diff] [blame] | 58 | |
Guido van Rossum | b6775db | 1994-08-01 11:34:53 +0000 | [diff] [blame] | 59 | #include "myproto.h" |
Guido van Rossum | 1e28e5e | 1992-08-19 16:46:30 +0000 | [diff] [blame] | 60 | #include "mymalloc.h" |
Guido van Rossum | 3f5da24 | 1990-12-20 15:06:42 +0000 | [diff] [blame] | 61 | |
Guido van Rossum | b221ac4 | 1996-05-22 17:28:54 +0000 | [diff] [blame] | 62 | #include "pydebug.h" |
Guido van Rossum | a330996 | 1993-07-28 09:05:47 +0000 | [diff] [blame] | 63 | |
Guido van Rossum | 1d2e9d1 | 1998-09-17 14:00:22 +0000 | [diff] [blame] | 64 | #ifdef HAVE_STDARG_PROTOTYPES |
| 65 | void PySys_WriteStdout(const char *format, ...); |
| 66 | void PySys_WriteStderr(const char *format, ...); |
| 67 | #else |
| 68 | /* Better to have no prototypes at all for varargs functions in this case */ |
| 69 | void PySys_WriteStdout(); |
| 70 | void PySys_WriteStderr(); |
| 71 | #endif |
| 72 | |
Guido van Rossum | 5048de2 | 1996-05-24 20:43:31 +0000 | [diff] [blame] | 73 | #define addarc _Py_addarc |
| 74 | #define addbit _Py_addbit |
| 75 | #define adddfa _Py_adddfa |
| 76 | #define addfirstsets _Py_addfirstsets |
| 77 | #define addlabel _Py_addlabel |
| 78 | #define addstate _Py_addstate |
| 79 | #define delbitset _Py_delbitset |
| 80 | #define dumptree _Py_dumptree |
| 81 | #define findlabel _Py_findlabel |
| 82 | #define mergebitset _Py_mergebitset |
| 83 | #define meta_grammar _Py_meta_grammar |
| 84 | #define newbitset _Py_newbitset |
| 85 | #define newgrammar _Py_newgrammar |
| 86 | #define pgen _Py_pgen |
| 87 | #define printgrammar _Py_printgrammar |
| 88 | #define printnonterminals _Py_printnonterminals |
| 89 | #define printtree _Py_printtree |
| 90 | #define samebitset _Py_samebitset |
| 91 | #define showtree _Py_showtree |
| 92 | #define tok_dump _Py_tok_dump |
| 93 | #define translatelabels _Py_translatelabels |
| 94 | |
Guido van Rossum | a330996 | 1993-07-28 09:05:47 +0000 | [diff] [blame] | 95 | #ifdef __cplusplus |
| 96 | } |
| 97 | #endif |
| 98 | #endif /* !Py_PGENHEADERS_H */ |