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 / Python.h < prev    next >
C/C++ Source or Header  |  2000-12-21  |  4KB  |  133 lines

  1. #ifndef Py_PYTHON_H
  2. #define Py_PYTHON_H
  3. /* Since this is a "meta-include" file, no #ifdef __cplusplus / extern "C" { */
  4.  
  5. /***********************************************************
  6. Copyright 1991-1995 by Stichting Mathematisch Centrum, Amsterdam,
  7. The Netherlands.
  8.  
  9.                         All Rights Reserved
  10.  
  11. Permission to use, copy, modify, and distribute this software and its
  12. documentation for any purpose and without fee is hereby granted,
  13. provided that the above copyright notice appear in all copies and that
  14. both that copyright notice and this permission notice appear in
  15. supporting documentation, and that the names of Stichting Mathematisch
  16. Centrum or CWI or Corporation for National Research Initiatives or
  17. CNRI not be used in advertising or publicity pertaining to
  18. distribution of the software without specific, written prior
  19. permission.
  20.  
  21. While CWI is the initial source for this software, a modified version
  22. is made available by the Corporation for National Research Initiatives
  23. (CNRI) at the Internet address ftp://ftp.python.org.
  24.  
  25. STICHTING MATHEMATISCH CENTRUM AND CNRI DISCLAIM ALL WARRANTIES WITH
  26. REGARD TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF
  27. MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL STICHTING MATHEMATISCH
  28. CENTRUM OR CNRI BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL
  29. DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
  30. PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
  31. TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  32. PERFORMANCE OF THIS SOFTWARE.
  33.  
  34. ******************************************************************/
  35. #include "aero_license.h"
  36. /* Include nearly all Python header files */
  37.  
  38. #include "patchlevel.h"
  39. #include "config.h"
  40. #include "other/all_segments.h"
  41.  
  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. #ifndef DL_EXPORT    /* declarations for DLL import/export */
  47. #define DL_EXPORT(RTYPE) RTYPE
  48. #endif
  49.  
  50. #ifdef SYMANTEC__CFM68K__
  51. #define UsingSharedLibs
  52. #endif
  53.  
  54. #if defined(__sgi) && defined(WITH_THREAD) && !defined(_SGI_MP_SOURCE)
  55. #define _SGI_MP_SOURCE
  56. #endif
  57.  
  58. #include <stdio.h>
  59. #include <string.h>
  60. #include <errno.h>
  61. #ifdef HAVE_STDLIB_H
  62. #include <stdlib.h>
  63. #endif
  64.  
  65. #include "myproto.h"
  66.  
  67. #ifdef SYMANTEC__CFM68K__
  68. #pragma lib_export on
  69. #endif
  70.  
  71. #include "object.h"
  72. #include "objimpl.h"
  73.  
  74. #include "pydebug.h"
  75.  
  76. #include "intobject.h"
  77. #include "longobject.h"
  78. #ifndef WITHOUT_FLOAT
  79. #include "floatobject.h"
  80. #endif
  81. #ifndef WITHOUT_COMPLEX
  82. #include "complexobject.h"
  83. #endif
  84. #include "rangeobject.h"
  85. #include "stringobject.h"
  86. #include "bufferobject.h"
  87. #include "tupleobject.h"
  88. #include "listobject.h"
  89. #include "dictobject.h"
  90. #include "methodobject.h"
  91. #include "moduleobject.h"
  92. #include "funcobject.h"
  93. #include "classobject.h"
  94. #include "fileobject.h"
  95. #include "cobject.h"
  96. #include "traceback.h"
  97. #include "sliceobject.h"
  98.  
  99. #include "pyerrors.h"
  100. #include "mymalloc.h"
  101.  
  102. #include "pystate.h"
  103.  
  104. #include "modsupport.h"
  105. #include "ceval.h"
  106. #include "pythonrun.h"
  107. #include "sysmodule.h"
  108. #include "intrcheck.h"
  109. #include "import.h"
  110.  
  111. #include "abstract.h"
  112.  
  113. #define PyArg_GetInt(v, a)    PyArg_Parse((v), "i", (a))
  114. #define PyArg_NoArgs(v)        PyArg_Parse(v, "")
  115.  
  116. /* Convert a possibly signed character to a nonnegative int */
  117. /* XXX This assumes characters are 8 bits wide */
  118. #ifdef __CHAR_UNSIGNED__
  119. #define Py_CHARMASK(c)        (c)
  120. #else
  121. #define Py_CHARMASK(c)        ((c) & 0xff)
  122. #endif
  123.  
  124. #include "pyfpe.h"
  125.  
  126. /* These definitions much match corresponding definitions in graminit.h.
  127.    There's code in compile.c that checks that they are the same. */
  128. #define Py_single_input 256
  129. #define Py_file_input 257
  130. #define Py_eval_input 258
  131.  
  132. #endif /* !Py_PYTHON_H */
  133.