blob: 8c7f6c33d4b9e833b675a652e40713f1283779ac [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
Guido van Rossumd266eb41996-10-25 14:44:06 +000011Permission to use, copy, modify, and distribute this software and its
12documentation for any purpose and without fee is hereby granted,
Guido van Rossumf70e43a1991-02-19 12:39:46 +000013provided that the above copyright notice appear in all copies and that
Guido van Rossumd266eb41996-10-25 14:44:06 +000014both that copyright notice and this permission notice appear in
Guido van Rossumf70e43a1991-02-19 12:39:46 +000015supporting documentation, and that the names of Stichting Mathematisch
Guido van Rossumd266eb41996-10-25 14:44:06 +000016Centrum or CWI or Corporation for National Research Initiatives or
17CNRI not be used in advertising or publicity pertaining to
18distribution of the software without specific, written prior
19permission.
Guido van Rossumf70e43a1991-02-19 12:39:46 +000020
Guido van Rossumd266eb41996-10-25 14:44:06 +000021While CWI is the initial source for this software, a modified version
22is made available by the Corporation for National Research Initiatives
23(CNRI) at the Internet address ftp://ftp.python.org.
24
25STICHTING MATHEMATISCH CENTRUM AND CNRI DISCLAIM ALL WARRANTIES WITH
26REGARD TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF
27MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL STICHTING MATHEMATISCH
28CENTRUM OR CNRI BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL
29DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
30PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
31TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
32PERFORMANCE OF THIS SOFTWARE.
Guido van Rossumf70e43a1991-02-19 12:39:46 +000033
34******************************************************************/
35
Guido van Rossuma7152741994-08-19 11:16:32 +000036/* Include nearly all Python header files */
Guido van Rossum3f5da241990-12-20 15:06:42 +000037
Guido van Rossumb6775db1994-08-01 11:34:53 +000038#include "config.h"
Guido van Rossumb6775db1994-08-01 11:34:53 +000039
Guido van Rossum1799eb51996-05-22 16:37:29 +000040/* config.h may or may not define DL_IMPORT */
41#ifndef DL_IMPORT /* declarations for DLL import/export */
42#define DL_IMPORT(RTYPE) RTYPE
43#endif
44
Jack Jansenf9480ce1995-06-27 13:12:09 +000045#ifdef SYMANTEC__CFM68K__
Guido van Rossum0acd4b61995-02-18 14:50:12 +000046#define UsingSharedLibs
47#endif
48
Guido van Rossum3f5da241990-12-20 15:06:42 +000049#include <stdio.h>
Guido van Rossumd05c4b21990-12-20 23:02:42 +000050#include <string.h>
Guido van Rossumcaa63801995-01-12 11:45:45 +000051#include <errno.h>
Guido van Rossum1799eb51996-05-22 16:37:29 +000052#ifdef HAVE_STDLIB_H
53#include <stdlib.h>
54#endif
Guido van Rossum3f5da241990-12-20 15:06:42 +000055
Guido van Rossumb6775db1994-08-01 11:34:53 +000056#include "myproto.h"
Guido van Rossum3f5da241990-12-20 15:06:42 +000057
Jack Jansenf9480ce1995-06-27 13:12:09 +000058#ifdef SYMANTEC__CFM68K__
Guido van Rossum0acd4b61995-02-18 14:50:12 +000059#pragma lib_export on
60#endif
61
Guido van Rossum3f5da241990-12-20 15:06:42 +000062#include "object.h"
63#include "objimpl.h"
64
Guido van Rossum1799eb51996-05-22 16:37:29 +000065#include "pydebug.h"
66
Guido van Rossum25831651993-05-19 14:50:45 +000067#include "accessobject.h"
Guido van Rossum3f5da241990-12-20 15:06:42 +000068#include "intobject.h"
Guido van Rossum9227c0e1991-05-05 20:00:02 +000069#include "longobject.h"
Guido van Rossum3f5da241990-12-20 15:06:42 +000070#include "floatobject.h"
Guido van Rossum3ca2a951996-01-12 00:48:04 +000071#ifndef WITHOUT_COMPLEX
72#include "complexobject.h"
73#endif
Guido van Rossum12d12c51993-10-26 17:58:25 +000074#include "rangeobject.h"
Guido van Rossum3f5da241990-12-20 15:06:42 +000075#include "stringobject.h"
76#include "tupleobject.h"
77#include "listobject.h"
Guido van Rossum93817821995-01-17 16:01:01 +000078#include "mappingobject.h"
Guido van Rossum3f5da241990-12-20 15:06:42 +000079#include "methodobject.h"
80#include "moduleobject.h"
81#include "funcobject.h"
82#include "classobject.h"
83#include "fileobject.h"
Guido van Rossum3ca2a951996-01-12 00:48:04 +000084#include "cobject.h"
Guido van Rossum1799eb51996-05-22 16:37:29 +000085#include "traceback.h"
Guido van Rossum03eed471996-07-30 16:39:03 +000086#include "sliceobject.h"
Guido van Rossum3f5da241990-12-20 15:06:42 +000087
Guido van Rossum6f90e981996-08-08 18:43:59 +000088#include "pyerrors.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"
Guido van Rossum1799eb51996-05-22 16:37:29 +000093#include "pythonrun.h"
94#include "sysmodule.h"
95#include "intrcheck.h"
96#include "import.h"
97#include "bltinmodule.h"
Guido van Rossuma3309961993-07-28 09:05:47 +000098
Guido van Rossum3c780791995-07-18 14:07:52 +000099#include "abstract.h"
100
Guido van Rossumcaa63801995-01-12 11:45:45 +0000101#define PyArg_GetInt(v, a) PyArg_Parse((v), "i", (a))
102#define PyArg_NoArgs(v) PyArg_Parse(v, "")
Guido van Rossuma3309961993-07-28 09:05:47 +0000103
Guido van Rossum10f8efd1995-02-10 16:51:02 +0000104/* Convert a possibly signed character to a nonnegative int */
105/* XXX This assumes characters are 8 bits wide */
106#ifdef __CHAR_UNSIGNED__
107#define Py_CHARMASK(c) (c)
108#else
109#define Py_CHARMASK(c) ((c) & 0xff)
110#endif
111
Guido van Rossumcaa63801995-01-12 11:45:45 +0000112#ifndef Py_USE_NEW_NAMES
113#include "rename2.h"
114#endif
115
Guido van Rossuma3309961993-07-28 09:05:47 +0000116#endif /* !Py_ALLOBJECTS_H */