blob: 641ffeaeab4a9037eab0d2ea81cbf1bacf23f543 [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 Rossum2e1beea1996-06-11 18:40:02 +000044#ifdef WITH_THREAD
45/* This turns errno in a thread-safe function on Solaris.
46 Wonder what it will break though :-( */
47#define _REENTRANT
48#endif
49
Guido van Rossum3f5da241990-12-20 15:06:42 +000050#include <stdio.h>
Guido van Rossumd05c4b21990-12-20 23:02:42 +000051#include <string.h>
Guido van Rossumcaa63801995-01-12 11:45:45 +000052#include <errno.h>
Guido van Rossum1799eb51996-05-22 16:37:29 +000053#ifdef HAVE_STDLIB_H
54#include <stdlib.h>
55#endif
Guido van Rossum3f5da241990-12-20 15:06:42 +000056
Guido van Rossumb6775db1994-08-01 11:34:53 +000057#include "myproto.h"
Guido van Rossum3f5da241990-12-20 15:06:42 +000058
Jack Jansenf9480ce1995-06-27 13:12:09 +000059#ifdef SYMANTEC__CFM68K__
Guido van Rossum0acd4b61995-02-18 14:50:12 +000060#pragma lib_export on
61#endif
62
Guido van Rossum3f5da241990-12-20 15:06:42 +000063#include "object.h"
64#include "objimpl.h"
65
Guido van Rossum1799eb51996-05-22 16:37:29 +000066#include "pydebug.h"
67
Guido van Rossum25831651993-05-19 14:50:45 +000068#include "accessobject.h"
Guido van Rossum3f5da241990-12-20 15:06:42 +000069#include "intobject.h"
Guido van Rossum9227c0e1991-05-05 20:00:02 +000070#include "longobject.h"
Guido van Rossum3f5da241990-12-20 15:06:42 +000071#include "floatobject.h"
Guido van Rossum3ca2a951996-01-12 00:48:04 +000072#ifndef WITHOUT_COMPLEX
73#include "complexobject.h"
74#endif
Guido van Rossum12d12c51993-10-26 17:58:25 +000075#include "rangeobject.h"
Guido van Rossum3f5da241990-12-20 15:06:42 +000076#include "stringobject.h"
77#include "tupleobject.h"
78#include "listobject.h"
Guido van Rossum93817821995-01-17 16:01:01 +000079#include "mappingobject.h"
Guido van Rossum3f5da241990-12-20 15:06:42 +000080#include "methodobject.h"
81#include "moduleobject.h"
82#include "funcobject.h"
83#include "classobject.h"
84#include "fileobject.h"
Guido van Rossum3ca2a951996-01-12 00:48:04 +000085#include "cobject.h"
Guido van Rossum1799eb51996-05-22 16:37:29 +000086#include "traceback.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"
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 */