home *** CD-ROM | disk | FTP | other *** search
/ linuxmafia.com 2016 / linuxmafia.com.tar / linuxmafia.com / pub / palmos / pippy-0.6beta-src.tar.gz / pippy-0.6beta-src.tar / pippy-0.6beta-src / src / Include / pgenheaders.h < prev    next >
C/C++ Source or Header  |  2000-12-21  |  3KB  |  100 lines

  1. #ifndef Py_PGENHEADERS_H
  2. #define Py_PGENHEADERS_H
  3. #ifdef __cplusplus
  4. extern "C" {
  5. #endif
  6.  
  7. /***********************************************************
  8. Copyright 1991-1995 by Stichting Mathematisch Centrum, Amsterdam,
  9. The Netherlands.
  10.  
  11.                         All Rights Reserved
  12.  
  13. Permission to use, copy, modify, and distribute this software and its
  14. documentation for any purpose and without fee is hereby granted,
  15. provided that the above copyright notice appear in all copies and that
  16. both that copyright notice and this permission notice appear in
  17. supporting documentation, and that the names of Stichting Mathematisch
  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.
  22.  
  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.
  35.  
  36. ******************************************************************/
  37.  
  38. /* Include files and extern declarations used by most of the parser. */
  39.  
  40. #include "config.h"
  41. #include "other/all_segments.h"
  42.  
  43. /* config.h may or may not define DL_IMPORT */
  44. #ifndef DL_IMPORT    /* declarations for DLL import/export */
  45. #define DL_IMPORT(RTYPE) RTYPE
  46. #endif
  47.  
  48. #include <stdio.h>
  49. #include <string.h>
  50.  
  51. #ifdef THINK_C
  52. #define label label_
  53. #undef label
  54. #endif
  55.  
  56. #ifdef HAVE_STDLIB_H
  57. #include <stdlib.h>
  58. #endif
  59.  
  60. #include "myproto.h"
  61. #include "mymalloc.h"
  62.  
  63. #include "pydebug.h"
  64.  
  65. #ifdef HAVE_STDARG_PROTOTYPES
  66. DL_IMPORT(void) PySys_WriteStdout(const char *format, ...) SEG_PGENHEADERS_H;
  67. DL_IMPORT(void) PySys_WriteStderr(const char *format, ...) SEG_PGENHEADERS_H;
  68. #else
  69. /* Better to have no prototypes at all for varargs functions in this case */
  70. DL_IMPORT(void) PySys_WriteStdout() SEG_PGENHEADERS_H;
  71. DL_IMPORT(void) PySys_WriteStderr() SEG_PGENHEADERS_H;
  72. #endif
  73.  
  74. #define addarc _Py_addarc
  75. #define addbit _Py_addbit
  76. #define adddfa _Py_adddfa
  77. #define addfirstsets _Py_addfirstsets
  78. #define addlabel _Py_addlabel
  79. #define addstate _Py_addstate
  80. #define delbitset _Py_delbitset
  81. #define dumptree _Py_dumptree
  82. #define findlabel _Py_findlabel
  83. #define mergebitset _Py_mergebitset
  84. #define meta_grammar _Py_meta_grammar
  85. #define newbitset _Py_newbitset
  86. #define newgrammar _Py_newgrammar
  87. #define pgen _Py_pgen
  88. #define printgrammar _Py_printgrammar
  89. #define printnonterminals _Py_printnonterminals
  90. #define printtree _Py_printtree
  91. #define samebitset _Py_samebitset
  92. #define showtree _Py_showtree
  93. #define tok_dump _Py_tok_dump
  94. #define translatelabels _Py_translatelabels
  95.  
  96. #ifdef __cplusplus
  97. }
  98. #endif
  99. #endif /* !Py_PGENHEADERS_H */
  100.