home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 4 / AACD04.ISO / AACD / Programming / Python / Source / Include / Python.h < prev    next >
Encoding:
C/C++ Source or Header  |  1999-10-14  |  3.8 KB  |  142 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.  
  36. /* Include nearly all Python header files */
  37.  
  38. #include "patchlevel.h"
  39. #include "config.h"
  40.  
  41. /* config.h may or may not define DL_IMPORT */
  42. #ifndef DL_IMPORT    /* declarations for DLL import/export */
  43. #define DL_IMPORT(RTYPE) RTYPE
  44. #endif
  45. #ifndef DL_EXPORT    /* declarations for DLL import/export */
  46. #define DL_EXPORT(RTYPE) RTYPE
  47. #endif
  48.  
  49. #ifdef SYMANTEC__CFM68K__
  50. #define UsingSharedLibs
  51. #endif
  52.  
  53. #if defined(__sgi) && defined(WITH_THREAD) && !defined(_SGI_MP_SOURCE)
  54. #define _SGI_MP_SOURCE
  55. #endif
  56.  
  57. #include <stdio.h>
  58. #include <string.h>
  59. #include <errno.h>
  60. #ifdef HAVE_STDLIB_H
  61. #include <stdlib.h>
  62. #endif
  63. #ifdef _AMIGA
  64. # ifdef HAVE_FCNTL_H
  65. #  include <fcntl.h>
  66. # endif
  67. # if !defined(AMITCP) && !defined(INET225)
  68. #  include <stat.h>
  69. typedef unsigned long pid_t;
  70. # endif
  71. #endif
  72.  
  73. #include "myproto.h"
  74.  
  75. #ifdef SYMANTEC__CFM68K__
  76. #pragma lib_export on
  77. #endif
  78.  
  79. #include "object.h"
  80. #include "objimpl.h"
  81.  
  82. #include "pydebug.h"
  83.  
  84. #include "intobject.h"
  85. #include "longobject.h"
  86. #include "floatobject.h"
  87. #ifndef WITHOUT_COMPLEX
  88. #include "complexobject.h"
  89. #endif
  90. #include "rangeobject.h"
  91. #include "stringobject.h"
  92. #include "bufferobject.h"
  93. #include "tupleobject.h"
  94. #include "listobject.h"
  95. #include "dictobject.h"
  96. #include "methodobject.h"
  97. #include "moduleobject.h"
  98. #include "funcobject.h"
  99. #include "classobject.h"
  100. #include "fileobject.h"
  101. #include "cobject.h"
  102. #include "traceback.h"
  103. #include "sliceobject.h"
  104.  
  105. #include "pyerrors.h"
  106. #include "mymalloc.h"
  107.  
  108. #include "pystate.h"
  109.  
  110. #include "modsupport.h"
  111. #include "ceval.h"
  112. #include "pythonrun.h"
  113. #include "sysmodule.h"
  114. #include "intrcheck.h"
  115. #include "import.h"
  116.  
  117. #include "abstract.h"
  118.  
  119. #define PyArg_GetInt(v, a)    PyArg_Parse((v), "i", (a))
  120. #define PyArg_NoArgs(v)        PyArg_Parse(v, "")
  121.  
  122. /* Convert a possibly signed character to a nonnegative int */
  123. /* XXX This assumes characters are 8 bits wide */
  124. #ifdef __CHAR_UNSIGNED__
  125. #define Py_CHARMASK(c)        (c)
  126. #else
  127. #define Py_CHARMASK(c)        ((c) & 0xff)
  128. #endif
  129.  
  130. #include "pyfpe.h"
  131.  
  132. /* These definitions much match corresponding definitions in graminit.h.
  133.    There's code in compile.c that checks that they are the same. */
  134. #define Py_single_input 256
  135. #define Py_file_input 257
  136. #define Py_eval_input 258
  137.  
  138. /* Include the 'missing' function prototypes  (IJ 13-Jan-1998) */
  139. #include "protos.h"
  140.  
  141. #endif /* !Py_PYTHON_H */
  142.