blob: d19eb2337d3a4c98829c496f01141379bab20029 [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 Rossumb6775db1994-08-01 11:34:53 +000031#include "config.h"
Guido van Rossumb6775db1994-08-01 11:34:53 +000032
Guido van Rossum1799eb51996-05-22 16:37:29 +000033/* config.h may or may not define DL_IMPORT */
34#ifndef DL_IMPORT /* declarations for DLL import/export */
35#define DL_IMPORT(RTYPE) RTYPE
36#endif
37
Jack Jansenf9480ce1995-06-27 13:12:09 +000038#ifdef SYMANTEC__CFM68K__
Guido van Rossum0acd4b61995-02-18 14:50:12 +000039#define UsingSharedLibs
40#endif
41
Guido van Rossum3f5da241990-12-20 15:06:42 +000042#include <stdio.h>
Guido van Rossumd05c4b21990-12-20 23:02:42 +000043#include <string.h>
Guido van Rossumcaa63801995-01-12 11:45:45 +000044#include <errno.h>
Guido van Rossum1799eb51996-05-22 16:37:29 +000045#ifdef HAVE_STDLIB_H
46#include <stdlib.h>
47#endif
Guido van Rossum3f5da241990-12-20 15:06:42 +000048
Guido van Rossumb6775db1994-08-01 11:34:53 +000049#include "myproto.h"
Guido van Rossum3f5da241990-12-20 15:06:42 +000050
Jack Jansenf9480ce1995-06-27 13:12:09 +000051#ifdef SYMANTEC__CFM68K__
Guido van Rossum0acd4b61995-02-18 14:50:12 +000052#pragma lib_export on
53#endif
54
Guido van Rossum3f5da241990-12-20 15:06:42 +000055#include "object.h"
56#include "objimpl.h"
57
Guido van Rossum1799eb51996-05-22 16:37:29 +000058#include "pydebug.h"
59
Guido van Rossum25831651993-05-19 14:50:45 +000060#include "accessobject.h"
Guido van Rossum3f5da241990-12-20 15:06:42 +000061#include "intobject.h"
Guido van Rossum9227c0e1991-05-05 20:00:02 +000062#include "longobject.h"
Guido van Rossum3f5da241990-12-20 15:06:42 +000063#include "floatobject.h"
Guido van Rossum3ca2a951996-01-12 00:48:04 +000064#ifndef WITHOUT_COMPLEX
65#include "complexobject.h"
66#endif
Guido van Rossum12d12c51993-10-26 17:58:25 +000067#include "rangeobject.h"
Guido van Rossum3f5da241990-12-20 15:06:42 +000068#include "stringobject.h"
69#include "tupleobject.h"
70#include "listobject.h"
Guido van Rossum93817821995-01-17 16:01:01 +000071#include "mappingobject.h"
Guido van Rossum3f5da241990-12-20 15:06:42 +000072#include "methodobject.h"
73#include "moduleobject.h"
74#include "funcobject.h"
75#include "classobject.h"
76#include "fileobject.h"
Guido van Rossum3ca2a951996-01-12 00:48:04 +000077#include "cobject.h"
Guido van Rossum1799eb51996-05-22 16:37:29 +000078#include "traceback.h"
Guido van Rossum03eed471996-07-30 16:39:03 +000079#include "sliceobject.h"
Guido van Rossum3f5da241990-12-20 15:06:42 +000080
Guido van Rossum6f90e981996-08-08 18:43:59 +000081#include "pyerrors.h"
Guido van Rossum1e28e5e1992-08-19 16:46:30 +000082#include "mymalloc.h"
Guido van Rossum3f5da241990-12-20 15:06:42 +000083
Guido van Rossuma3309961993-07-28 09:05:47 +000084#include "modsupport.h"
85#include "ceval.h"
Guido van Rossum1799eb51996-05-22 16:37:29 +000086#include "pythonrun.h"
87#include "sysmodule.h"
88#include "intrcheck.h"
89#include "import.h"
90#include "bltinmodule.h"
Guido van Rossuma3309961993-07-28 09:05:47 +000091
Guido van Rossum3c780791995-07-18 14:07:52 +000092#include "abstract.h"
93
Guido van Rossumcaa63801995-01-12 11:45:45 +000094#define PyArg_GetInt(v, a) PyArg_Parse((v), "i", (a))
95#define PyArg_NoArgs(v) PyArg_Parse(v, "")
Guido van Rossuma3309961993-07-28 09:05:47 +000096
Guido van Rossum10f8efd1995-02-10 16:51:02 +000097/* 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)
101#else
102#define Py_CHARMASK(c) ((c) & 0xff)
103#endif
104
Guido van Rossumcaa63801995-01-12 11:45:45 +0000105#ifndef Py_USE_NEW_NAMES
106#include "rename2.h"
107#endif
108
Guido van Rossuma3309961993-07-28 09:05:47 +0000109#endif /* !Py_ALLOBJECTS_H */