home *** CD-ROM | disk | FTP | other *** search
/ PC World 2001 April / PCWorld_2001-04_cd.bin / Software / TemaCD / webclean / !!!python!!! / BeOpen-Python-2.0.exe / PGENHEADERS.H < prev    next >
Encoding:
C/C++ Source or Header  |  2000-09-01  |  1.4 KB  |  57 lines

  1. #ifndef Py_PGENHEADERS_H
  2. #define Py_PGENHEADERS_H
  3. #ifdef __cplusplus
  4. extern "C" {
  5. #endif
  6.  
  7.  
  8. /* Include files and extern declarations used by most of the parser. */
  9.  
  10. #include "config.h"
  11.  
  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.  
  17. #include <stdio.h>
  18. #include <string.h>
  19.  
  20. #ifdef HAVE_STDLIB_H
  21. #include <stdlib.h>
  22. #endif
  23.  
  24. #include "pymem.h"
  25.  
  26. #include "pydebug.h"
  27.  
  28. DL_IMPORT(void) PySys_WriteStdout(const char *format, ...);
  29. DL_IMPORT(void) PySys_WriteStderr(const char *format, ...);
  30.  
  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.  
  53. #ifdef __cplusplus
  54. }
  55. #endif
  56. #endif /* !Py_PGENHEADERS_H */
  57.