blob: 5e4925d73fe76634cfaa8bf7566f098d0187f16a [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#ifdef HAVE_CONFIG_H
32#include "config.h"
33#endif
34
Guido van Rossum1799eb51996-05-22 16:37:29 +000035/* config.h may or may not define DL_IMPORT */
36#ifndef DL_IMPORT /* declarations for DLL import/export */
37#define DL_IMPORT(RTYPE) RTYPE
38#endif
39
Jack Jansenf9480ce1995-06-27 13:12:09 +000040#ifdef SYMANTEC__CFM68K__
Guido van Rossum0acd4b61995-02-18 14:50:12 +000041#define UsingSharedLibs
42#endif
43
Guido van Rossum3f5da241990-12-20 15:06:42 +000044#include <stdio.h>
Guido van Rossumd05c4b21990-12-20 23:02:42 +000045#include <string.h>
Guido van Rossumcaa63801995-01-12 11:45:45 +000046#include <errno.h>
Guido van Rossum1799eb51996-05-22 16:37:29 +000047#ifdef HAVE_STDLIB_H
48#include <stdlib.h>
49#endif
Guido van Rossum3f5da241990-12-20 15:06:42 +000050
Guido van Rossumb6775db1994-08-01 11:34:53 +000051#include "myproto.h"
Guido van Rossum3f5da241990-12-20 15:06:42 +000052
Jack Jansenf9480ce1995-06-27 13:12:09 +000053#ifdef SYMANTEC__CFM68K__
Guido van Rossum0acd4b61995-02-18 14:50:12 +000054#pragma lib_export on
55#endif
56
Guido van Rossum3f5da241990-12-20 15:06:42 +000057#include "object.h"
58#include "objimpl.h"
59
Guido van Rossum1799eb51996-05-22 16:37:29 +000060#include "pydebug.h"
61
Guido van Rossum25831651993-05-19 14:50:45 +000062#include "accessobject.h"
Guido van Rossum3f5da241990-12-20 15:06:42 +000063#include "intobject.h"
Guido van Rossum9227c0e1991-05-05 20:00:02 +000064#include "longobject.h"
Guido van Rossum3f5da241990-12-20 15:06:42 +000065#include "floatobject.h"
Guido van Rossum3ca2a951996-01-12 00:48:04 +000066#ifndef WITHOUT_COMPLEX
67#include "complexobject.h"
68#endif
Guido van Rossum12d12c51993-10-26 17:58:25 +000069#include "rangeobject.h"
Guido van Rossum3f5da241990-12-20 15:06:42 +000070#include "stringobject.h"
71#include "tupleobject.h"
72#include "listobject.h"
Guido van Rossum93817821995-01-17 16:01:01 +000073#include "mappingobject.h"
Guido van Rossum3f5da241990-12-20 15:06:42 +000074#include "methodobject.h"
75#include "moduleobject.h"
76#include "funcobject.h"
77#include "classobject.h"
78#include "fileobject.h"
Guido van Rossum3ca2a951996-01-12 00:48:04 +000079#include "cobject.h"
Guido van Rossum1799eb51996-05-22 16:37:29 +000080#include "traceback.h"
Guido van Rossum03eed471996-07-30 16:39:03 +000081#include "sliceobject.h"
Guido van Rossum3f5da241990-12-20 15:06:42 +000082
83#include "errors.h"
Guido van Rossum1e28e5e1992-08-19 16:46:30 +000084#include "mymalloc.h"
Guido van Rossum3f5da241990-12-20 15:06:42 +000085
Guido van Rossuma3309961993-07-28 09:05:47 +000086#include "modsupport.h"
87#include "ceval.h"
Guido van Rossum1799eb51996-05-22 16:37:29 +000088#include "pythonrun.h"
89#include "sysmodule.h"
90#include "intrcheck.h"
91#include "import.h"
92#include "bltinmodule.h"
Guido van Rossuma3309961993-07-28 09:05:47 +000093
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 */