blob: 75736994ee7afbabd284c35559186868eef89bf7 [file] [log] [blame]
Guido van Rossuma3309961993-07-28 09:05:47 +00001#ifndef Py_ALLOBJECTS_H
2#define Py_ALLOBJECTS_H
Guido van Rossum23d7b4b1995-09-07 19:37:11 +00003/* Since this is a "meta-include" file, no #ifdef __cplusplus / extern "C" { */
Guido van Rossuma3309961993-07-28 09:05:47 +00004
Guido van Rossumf70e43a1991-02-19 12:39:46 +00005/***********************************************************
Guido van Rossum5799b521995-01-04 19:06:22 +00006Copyright 1991-1995 by Stichting Mathematisch Centrum, Amsterdam,
7The Netherlands.
Guido van Rossumf70e43a1991-02-19 12:39:46 +00008
9 All Rights Reserved
10
11Permission to use, copy, modify, and distribute this software and its
12documentation for any purpose and without fee is hereby granted,
13provided that the above copyright notice appear in all copies and that
14both that copyright notice and this permission notice appear in
15supporting documentation, and that the names of Stichting Mathematisch
16Centrum or CWI not be used in advertising or publicity pertaining to
17distribution of the software without specific, written prior permission.
18
19STICHTING MATHEMATISCH CENTRUM DISCLAIMS ALL WARRANTIES WITH REGARD TO
20THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
21FITNESS, IN NO EVENT SHALL STICHTING MATHEMATISCH CENTRUM BE LIABLE
22FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
23WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
24ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT
25OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
26
27******************************************************************/
28
Guido van Rossuma7152741994-08-19 11:16:32 +000029/* Include nearly all Python header files */
Guido van Rossum3f5da241990-12-20 15:06:42 +000030
Guido van Rossume89bc751994-08-18 16:18:13 +000031/* Some systems (well, NT anyway!) require special declarations for
32 data items imported from dynamic modules. Note that this defn is
33 only turned on for the modules built as DL modules, not for python
34 itself.
35*/
Guido van Rossum051ab121995-02-27 10:17:52 +000036#define DL_IMPORT( RTYPE ) RTYPE /* Save lots of #else/#if's */
Guido van Rossume89bc751994-08-18 16:18:13 +000037#ifdef USE_DL_IMPORT
38#ifdef NT
39#undef DL_IMPORT
Guido van Rossum051ab121995-02-27 10:17:52 +000040#define DL_IMPORT(RTYPE) __declspec(dllimport) RTYPE
Guido van Rossume89bc751994-08-18 16:18:13 +000041#endif /* NT */
Guido van Rossum051ab121995-02-27 10:17:52 +000042#ifdef __BORLANDC__
43#undef DL_IMPORT
44#define DL_IMPORT(RTYPE) RTYPE __import
45#endif /* BORLANDC */
Guido van Rossume89bc751994-08-18 16:18:13 +000046#endif /* USE_DL_IMPORT */
47
Guido van Rossumb6775db1994-08-01 11:34:53 +000048#ifdef HAVE_CONFIG_H
49#include "config.h"
50#endif
51
Jack Jansenf9480ce1995-06-27 13:12:09 +000052#ifdef SYMANTEC__CFM68K__
Guido van Rossum0acd4b61995-02-18 14:50:12 +000053#define UsingSharedLibs
54#endif
55
Guido van Rossum3f5da241990-12-20 15:06:42 +000056#include <stdio.h>
Guido van Rossumd05c4b21990-12-20 23:02:42 +000057#include <string.h>
Guido van Rossumcaa63801995-01-12 11:45:45 +000058#include <errno.h>
Guido van Rossum3f5da241990-12-20 15:06:42 +000059
Guido van Rossumb6775db1994-08-01 11:34:53 +000060#include "myproto.h"
Guido van Rossum3f5da241990-12-20 15:06:42 +000061
Jack Jansenf9480ce1995-06-27 13:12:09 +000062#ifdef SYMANTEC__CFM68K__
Guido van Rossum0acd4b61995-02-18 14:50:12 +000063#pragma lib_export on
64#endif
65
Guido van Rossum3f5da241990-12-20 15:06:42 +000066#include "object.h"
67#include "objimpl.h"
68
Guido van Rossum25831651993-05-19 14:50:45 +000069#include "accessobject.h"
Guido van Rossum3f5da241990-12-20 15:06:42 +000070#include "intobject.h"
Guido van Rossum9227c0e1991-05-05 20:00:02 +000071#include "longobject.h"
Guido van Rossum3f5da241990-12-20 15:06:42 +000072#include "floatobject.h"
Guido van Rossum3ca2a951996-01-12 00:48:04 +000073#ifndef WITHOUT_COMPLEX
74#include "complexobject.h"
75#endif
Guido van Rossum12d12c51993-10-26 17:58:25 +000076#include "rangeobject.h"
Guido van Rossum3f5da241990-12-20 15:06:42 +000077#include "stringobject.h"
78#include "tupleobject.h"
79#include "listobject.h"
Guido van Rossum93817821995-01-17 16:01:01 +000080#include "mappingobject.h"
Guido van Rossum3f5da241990-12-20 15:06:42 +000081#include "methodobject.h"
82#include "moduleobject.h"
83#include "funcobject.h"
84#include "classobject.h"
85#include "fileobject.h"
Guido van Rossum3ca2a951996-01-12 00:48:04 +000086#include "cobject.h"
Guido van Rossum3f5da241990-12-20 15:06:42 +000087
88#include "errors.h"
Guido van Rossum1e28e5e1992-08-19 16:46:30 +000089#include "mymalloc.h"
Guido van Rossum3f5da241990-12-20 15:06:42 +000090
Guido van Rossuma3309961993-07-28 09:05:47 +000091#include "modsupport.h"
92#include "ceval.h"
93
Guido van Rossum3c780791995-07-18 14:07:52 +000094#include "abstract.h"
95
Guido van Rossumcaa63801995-01-12 11:45:45 +000096#define PyArg_GetInt(v, a) PyArg_Parse((v), "i", (a))
97#define PyArg_NoArgs(v) PyArg_Parse(v, "")
Guido van Rossuma3309961993-07-28 09:05:47 +000098
Guido van Rossum10f8efd1995-02-10 16:51:02 +000099/* 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 Rossumcaa63801995-01-12 11:45:45 +0000107#ifndef Py_USE_NEW_NAMES
108#include "rename2.h"
109#endif
110
Guido van Rossuma3309961993-07-28 09:05:47 +0000111#endif /* !Py_ALLOBJECTS_H */