Guido van Rossum | a330996 | 1993-07-28 09:05:47 +0000 | [diff] [blame] | 1 | #ifndef Py_ALLOBJECTS_H |
| 2 | #define Py_ALLOBJECTS_H |
| 3 | #ifdef __cplusplus |
| 4 | extern "C" { |
| 5 | #endif |
| 6 | |
Guido van Rossum | f70e43a | 1991-02-19 12:39:46 +0000 | [diff] [blame] | 7 | /*********************************************************** |
Guido van Rossum | 5799b52 | 1995-01-04 19:06:22 +0000 | [diff] [blame] | 8 | Copyright 1991-1995 by Stichting Mathematisch Centrum, Amsterdam, |
| 9 | The Netherlands. |
Guido van Rossum | f70e43a | 1991-02-19 12:39:46 +0000 | [diff] [blame] | 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 not be used in advertising or publicity pertaining to |
| 19 | distribution of the software without specific, written prior permission. |
| 20 | |
| 21 | STICHTING MATHEMATISCH CENTRUM DISCLAIMS ALL WARRANTIES WITH REGARD TO |
| 22 | THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND |
| 23 | FITNESS, IN NO EVENT SHALL STICHTING MATHEMATISCH CENTRUM BE LIABLE |
| 24 | FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES |
| 25 | WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN |
| 26 | ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT |
| 27 | OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. |
| 28 | |
| 29 | ******************************************************************/ |
| 30 | |
Guido van Rossum | a715274 | 1994-08-19 11:16:32 +0000 | [diff] [blame] | 31 | /* Include nearly all Python header files */ |
Guido van Rossum | 3f5da24 | 1990-12-20 15:06:42 +0000 | [diff] [blame] | 32 | |
Guido van Rossum | e89bc75 | 1994-08-18 16:18:13 +0000 | [diff] [blame] | 33 | /* Some systems (well, NT anyway!) require special declarations for |
| 34 | data items imported from dynamic modules. Note that this defn is |
| 35 | only turned on for the modules built as DL modules, not for python |
| 36 | itself. |
| 37 | */ |
Guido van Rossum | 051ab12 | 1995-02-27 10:17:52 +0000 | [diff] [blame] | 38 | #define DL_IMPORT( RTYPE ) RTYPE /* Save lots of #else/#if's */ |
Guido van Rossum | e89bc75 | 1994-08-18 16:18:13 +0000 | [diff] [blame] | 39 | #ifdef USE_DL_IMPORT |
| 40 | #ifdef NT |
| 41 | #undef DL_IMPORT |
Guido van Rossum | 051ab12 | 1995-02-27 10:17:52 +0000 | [diff] [blame] | 42 | #define DL_IMPORT(RTYPE) __declspec(dllimport) RTYPE |
Guido van Rossum | e89bc75 | 1994-08-18 16:18:13 +0000 | [diff] [blame] | 43 | #endif /* NT */ |
Guido van Rossum | 051ab12 | 1995-02-27 10:17:52 +0000 | [diff] [blame] | 44 | #ifdef __BORLANDC__ |
| 45 | #undef DL_IMPORT |
| 46 | #define DL_IMPORT(RTYPE) RTYPE __import |
| 47 | #endif /* BORLANDC */ |
Guido van Rossum | e89bc75 | 1994-08-18 16:18:13 +0000 | [diff] [blame] | 48 | #endif /* USE_DL_IMPORT */ |
| 49 | |
Guido van Rossum | b6775db | 1994-08-01 11:34:53 +0000 | [diff] [blame] | 50 | #ifdef HAVE_CONFIG_H |
| 51 | #include "config.h" |
| 52 | #endif |
| 53 | |
Jack Jansen | f9480ce | 1995-06-27 13:12:09 +0000 | [diff] [blame] | 54 | #ifdef SYMANTEC__CFM68K__ |
Guido van Rossum | 0acd4b6 | 1995-02-18 14:50:12 +0000 | [diff] [blame] | 55 | #define UsingSharedLibs |
| 56 | #endif |
| 57 | |
Guido van Rossum | 3f5da24 | 1990-12-20 15:06:42 +0000 | [diff] [blame] | 58 | #include <stdio.h> |
Guido van Rossum | d05c4b2 | 1990-12-20 23:02:42 +0000 | [diff] [blame] | 59 | #include <string.h> |
Guido van Rossum | caa6380 | 1995-01-12 11:45:45 +0000 | [diff] [blame] | 60 | #include <errno.h> |
Guido van Rossum | 3f5da24 | 1990-12-20 15:06:42 +0000 | [diff] [blame] | 61 | |
Guido van Rossum | b6775db | 1994-08-01 11:34:53 +0000 | [diff] [blame] | 62 | #include "myproto.h" |
Guido van Rossum | 3f5da24 | 1990-12-20 15:06:42 +0000 | [diff] [blame] | 63 | |
Jack Jansen | f9480ce | 1995-06-27 13:12:09 +0000 | [diff] [blame] | 64 | #ifdef SYMANTEC__CFM68K__ |
Guido van Rossum | 0acd4b6 | 1995-02-18 14:50:12 +0000 | [diff] [blame] | 65 | #pragma lib_export on |
| 66 | #endif |
| 67 | |
Guido van Rossum | 3f5da24 | 1990-12-20 15:06:42 +0000 | [diff] [blame] | 68 | #include "object.h" |
| 69 | #include "objimpl.h" |
| 70 | |
Guido van Rossum | 2583165 | 1993-05-19 14:50:45 +0000 | [diff] [blame] | 71 | #include "accessobject.h" |
Guido van Rossum | 3f5da24 | 1990-12-20 15:06:42 +0000 | [diff] [blame] | 72 | #include "intobject.h" |
Guido van Rossum | 9227c0e | 1991-05-05 20:00:02 +0000 | [diff] [blame] | 73 | #include "longobject.h" |
Guido van Rossum | 3f5da24 | 1990-12-20 15:06:42 +0000 | [diff] [blame] | 74 | #include "floatobject.h" |
Guido van Rossum | 12d12c5 | 1993-10-26 17:58:25 +0000 | [diff] [blame] | 75 | #include "rangeobject.h" |
Guido van Rossum | 3f5da24 | 1990-12-20 15:06:42 +0000 | [diff] [blame] | 76 | #include "stringobject.h" |
| 77 | #include "tupleobject.h" |
| 78 | #include "listobject.h" |
Guido van Rossum | 9381782 | 1995-01-17 16:01:01 +0000 | [diff] [blame] | 79 | #include "mappingobject.h" |
Guido van Rossum | 3f5da24 | 1990-12-20 15:06:42 +0000 | [diff] [blame] | 80 | #include "methodobject.h" |
| 81 | #include "moduleobject.h" |
| 82 | #include "funcobject.h" |
| 83 | #include "classobject.h" |
| 84 | #include "fileobject.h" |
| 85 | |
| 86 | #include "errors.h" |
Guido van Rossum | 1e28e5e | 1992-08-19 16:46:30 +0000 | [diff] [blame] | 87 | #include "mymalloc.h" |
Guido van Rossum | 3f5da24 | 1990-12-20 15:06:42 +0000 | [diff] [blame] | 88 | |
Guido van Rossum | a330996 | 1993-07-28 09:05:47 +0000 | [diff] [blame] | 89 | #include "modsupport.h" |
| 90 | #include "ceval.h" |
| 91 | |
Guido van Rossum | 3c78079 | 1995-07-18 14:07:52 +0000 | [diff] [blame] | 92 | #include "abstract.h" |
| 93 | |
Guido van Rossum | caa6380 | 1995-01-12 11:45:45 +0000 | [diff] [blame] | 94 | extern void Py_FatalError Py_PROTO((char *)); |
| 95 | |
| 96 | #define PyArg_GetInt(v, a) PyArg_Parse((v), "i", (a)) |
| 97 | #define PyArg_NoArgs(v) PyArg_Parse(v, "") |
Guido van Rossum | a330996 | 1993-07-28 09:05:47 +0000 | [diff] [blame] | 98 | |
Guido van Rossum | 10f8efd | 1995-02-10 16:51:02 +0000 | [diff] [blame] | 99 | /* Convert a possibly signed character to a nonnegative int */ |
| 100 | /* XXX This assumes characters are 8 bits wide */ |
| 101 | #ifdef __CHAR_UNSIGNED__ |
| 102 | #define Py_CHARMASK(c) (c) |
| 103 | #else |
| 104 | #define Py_CHARMASK(c) ((c) & 0xff) |
| 105 | #endif |
| 106 | |
Guido van Rossum | a330996 | 1993-07-28 09:05:47 +0000 | [diff] [blame] | 107 | #ifdef __cplusplus |
| 108 | } |
| 109 | #endif |
Guido van Rossum | caa6380 | 1995-01-12 11:45:45 +0000 | [diff] [blame] | 110 | |
| 111 | #ifndef Py_USE_NEW_NAMES |
| 112 | #include "rename2.h" |
| 113 | #endif |
| 114 | |
Guido van Rossum | a330996 | 1993-07-28 09:05:47 +0000 | [diff] [blame] | 115 | #endif /* !Py_ALLOBJECTS_H */ |