home *** CD-ROM | disk | FTP | other *** search
/ Freelog 33 / Freelog033.iso / Progr / Python-2.2.1.exe / PGENHEADERS.H < prev    next >
Encoding:
C/C++ Source or Header  |  2001-10-23  |  1.4 KB  |  59 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 "pyconfig.h"
  11.  
  12. /* pyconfig.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.             __attribute__((format(printf, 1, 2)));
  30. DL_IMPORT(void) PySys_WriteStderr(const char *format, ...)
  31.             __attribute__((format(printf, 1, 2)));
  32.  
  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.  
  55. #ifdef __cplusplus
  56. }
  57. #endif
  58. #endif /* !Py_PGENHEADERS_H */
  59.