1 #ifndef Py_ALLOBJECTS_H
2 #define Py_ALLOBJECTS_H
7 /***********************************************************
8 Copyright 1991-1995 by Stichting Mathematisch Centrum, Amsterdam,
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.
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.
29 ******************************************************************/
31 /* Include nearly all Python header files */
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
38 #define DL_IMPORT( RTYPE ) RTYPE /* Save lots of #else/#if's */
42 #define DL_IMPORT(RTYPE) __declspec(dllimport) RTYPE
46 #define DL_IMPORT(RTYPE) RTYPE __import
48 #endif /* USE_DL_IMPORT */
55 #define UsingSharedLibs
71 #include "accessobject.h"
72 #include "intobject.h"
73 #include "longobject.h"
74 #include "floatobject.h"
75 #include "rangeobject.h"
76 #include "stringobject.h"
77 #include "tupleobject.h"
78 #include "listobject.h"
79 #include "mappingobject.h"
80 #include "methodobject.h"
81 #include "moduleobject.h"
82 #include "funcobject.h"
83 #include "classobject.h"
84 #include "fileobject.h"
89 #include "modsupport.h"
92 extern void Py_FatalError
Py_PROTO((char *));
94 #define PyArg_GetInt(v, a) PyArg_Parse((v), "i", (a))
95 #define PyArg_NoArgs(v) PyArg_Parse(v, "")
97 /* Convert a possibly signed character to a nonnegative int */
98 /* XXX This assumes characters are 8 bits wide */
99 #ifdef __CHAR_UNSIGNED__
100 #define Py_CHARMASK(c) (c)
102 #define Py_CHARMASK(c) ((c) & 0xff)
109 #ifndef Py_USE_NEW_NAMES
113 #endif /* !Py_ALLOBJECTS_H */