Mercurial > cpython-lru_cache-weakref
annotate Include/allobjects.h @ 3044:7e7bb00a0a2e legacy-trunk
Added functionality: locate CW projects, copy them, empty them and
binhex them.
| author | Jack Jansen <jack.jansen@cwi.nl> |
|---|---|
| date | Thu, 31 Aug 1995 13:47:14 +0000 |
| parents | 2c73c8ab8b82 |
| children | 971e5ca18bd1 |
| rev | line source |
|---|---|
|
1329
519c25039c6a
* Added support for X11 modules.
Guido van Rossum <guido@python.org>
parents:
1288
diff
changeset
|
1 #ifndef Py_ALLOBJECTS_H |
|
519c25039c6a
* Added support for X11 modules.
Guido van Rossum <guido@python.org>
parents:
1288
diff
changeset
|
2 #define Py_ALLOBJECTS_H |
|
519c25039c6a
* Added support for X11 modules.
Guido van Rossum <guido@python.org>
parents:
1288
diff
changeset
|
3 #ifdef __cplusplus |
|
519c25039c6a
* Added support for X11 modules.
Guido van Rossum <guido@python.org>
parents:
1288
diff
changeset
|
4 extern "C" { |
|
519c25039c6a
* Added support for X11 modules.
Guido van Rossum <guido@python.org>
parents:
1288
diff
changeset
|
5 #endif |
|
519c25039c6a
* Added support for X11 modules.
Guido van Rossum <guido@python.org>
parents:
1288
diff
changeset
|
6 |
| 145 | 7 /*********************************************************** |
| 2058 | 8 Copyright 1991-1995 by Stichting Mathematisch Centrum, Amsterdam, |
| 9 The Netherlands. | |
| 145 | 10 |
| 11 All Rights Reserved | |
| 12 | |
| 13 Permission to use, copy, modify, and distribute this software and its | |
| 14 documentation for any purpose and without fee is hereby granted, | |
| 15 provided that the above copyright notice appear in all copies and that | |
| 16 both that copyright notice and this permission notice appear in | |
| 17 supporting documentation, and that the names of Stichting Mathematisch | |
| 18 Centrum or CWI not be used in advertising or publicity pertaining to | |
| 19 distribution of the software without specific, written prior permission. | |
| 20 | |
| 21 STICHTING MATHEMATISCH CENTRUM DISCLAIMS ALL WARRANTIES WITH REGARD TO | |
| 22 THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND | |
| 23 FITNESS, IN NO EVENT SHALL STICHTING MATHEMATISCH CENTRUM BE LIABLE | |
| 24 FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES | |
| 25 WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN | |
| 26 ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT | |
| 27 OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. | |
| 28 | |
| 29 ******************************************************************/ | |
| 30 | |
|
1796
b711c9010232
No need to define THINK_C any more
Guido van Rossum <guido@python.org>
parents:
1794
diff
changeset
|
31 /* Include nearly all Python header files */ |
| 86 | 32 |
|
1794
9b530bb54642
Changes for dynamic linking under NT
Guido van Rossum <guido@python.org>
parents:
1746
diff
changeset
|
33 /* Some systems (well, NT anyway!) require special declarations for |
|
9b530bb54642
Changes for dynamic linking under NT
Guido van Rossum <guido@python.org>
parents:
1746
diff
changeset
|
34 data items imported from dynamic modules. Note that this defn is |
|
9b530bb54642
Changes for dynamic linking under NT
Guido van Rossum <guido@python.org>
parents:
1746
diff
changeset
|
35 only turned on for the modules built as DL modules, not for python |
|
9b530bb54642
Changes for dynamic linking under NT
Guido van Rossum <guido@python.org>
parents:
1746
diff
changeset
|
36 itself. |
|
9b530bb54642
Changes for dynamic linking under NT
Guido van Rossum <guido@python.org>
parents:
1746
diff
changeset
|
37 */ |
|
2436
fa98dda07877
make the type a parameter of the DL_IMPORT macro, for Borland C
Guido van Rossum <guido@python.org>
parents:
2373
diff
changeset
|
38 #define DL_IMPORT( RTYPE ) RTYPE /* Save lots of #else/#if's */ |
|
1794
9b530bb54642
Changes for dynamic linking under NT
Guido van Rossum <guido@python.org>
parents:
1746
diff
changeset
|
39 #ifdef USE_DL_IMPORT |
|
9b530bb54642
Changes for dynamic linking under NT
Guido van Rossum <guido@python.org>
parents:
1746
diff
changeset
|
40 #ifdef NT |
|
9b530bb54642
Changes for dynamic linking under NT
Guido van Rossum <guido@python.org>
parents:
1746
diff
changeset
|
41 #undef DL_IMPORT |
|
2436
fa98dda07877
make the type a parameter of the DL_IMPORT macro, for Borland C
Guido van Rossum <guido@python.org>
parents:
2373
diff
changeset
|
42 #define DL_IMPORT(RTYPE) __declspec(dllimport) RTYPE |
|
1794
9b530bb54642
Changes for dynamic linking under NT
Guido van Rossum <guido@python.org>
parents:
1746
diff
changeset
|
43 #endif /* NT */ |
|
2436
fa98dda07877
make the type a parameter of the DL_IMPORT macro, for Borland C
Guido van Rossum <guido@python.org>
parents:
2373
diff
changeset
|
44 #ifdef __BORLANDC__ |
|
fa98dda07877
make the type a parameter of the DL_IMPORT macro, for Borland C
Guido van Rossum <guido@python.org>
parents:
2373
diff
changeset
|
45 #undef DL_IMPORT |
|
fa98dda07877
make the type a parameter of the DL_IMPORT macro, for Borland C
Guido van Rossum <guido@python.org>
parents:
2373
diff
changeset
|
46 #define DL_IMPORT(RTYPE) RTYPE __import |
|
fa98dda07877
make the type a parameter of the DL_IMPORT macro, for Borland C
Guido van Rossum <guido@python.org>
parents:
2373
diff
changeset
|
47 #endif /* BORLANDC */ |
|
1794
9b530bb54642
Changes for dynamic linking under NT
Guido van Rossum <guido@python.org>
parents:
1746
diff
changeset
|
48 #endif /* USE_DL_IMPORT */ |
|
9b530bb54642
Changes for dynamic linking under NT
Guido van Rossum <guido@python.org>
parents:
1746
diff
changeset
|
49 |
|
1746
1940892d2fe3
Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents:
1369
diff
changeset
|
50 #ifdef HAVE_CONFIG_H |
|
1940892d2fe3
Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents:
1369
diff
changeset
|
51 #include "config.h" |
|
1940892d2fe3
Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents:
1369
diff
changeset
|
52 #endif |
|
1940892d2fe3
Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents:
1369
diff
changeset
|
53 |
|
2792
af3aab6b07c4
Changed ifdef __CFM68K__ to ifdef SYMANTEC__CFM68K__: CW has its own
Jack Jansen <jack.jansen@cwi.nl>
parents:
2436
diff
changeset
|
54 #ifdef SYMANTEC__CFM68K__ |
|
2373
582b00fbab16
changes for Mac CFM-68K
Guido van Rossum <guido@python.org>
parents:
2304
diff
changeset
|
55 #define UsingSharedLibs |
|
582b00fbab16
changes for Mac CFM-68K
Guido van Rossum <guido@python.org>
parents:
2304
diff
changeset
|
56 #endif |
|
582b00fbab16
changes for Mac CFM-68K
Guido van Rossum <guido@python.org>
parents:
2304
diff
changeset
|
57 |
| 86 | 58 #include <stdio.h> |
|
87
ef2440f24f10
Include <string.h> instead of "string.h".
Guido van Rossum <guido@python.org>
parents:
86
diff
changeset
|
59 #include <string.h> |
|
2129
05360cd616ae
The great renaming, phase two: all header files have been updated to
Guido van Rossum <guido@python.org>
parents:
2058
diff
changeset
|
60 #include <errno.h> |
| 86 | 61 |
|
1746
1940892d2fe3
Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents:
1369
diff
changeset
|
62 #include "myproto.h" |
| 86 | 63 |
|
2792
af3aab6b07c4
Changed ifdef __CFM68K__ to ifdef SYMANTEC__CFM68K__: CW has its own
Jack Jansen <jack.jansen@cwi.nl>
parents:
2436
diff
changeset
|
64 #ifdef SYMANTEC__CFM68K__ |
|
2373
582b00fbab16
changes for Mac CFM-68K
Guido van Rossum <guido@python.org>
parents:
2304
diff
changeset
|
65 #pragma lib_export on |
|
582b00fbab16
changes for Mac CFM-68K
Guido van Rossum <guido@python.org>
parents:
2304
diff
changeset
|
66 #endif |
|
582b00fbab16
changes for Mac CFM-68K
Guido van Rossum <guido@python.org>
parents:
2304
diff
changeset
|
67 |
| 86 | 68 #include "object.h" |
| 69 #include "objimpl.h" | |
| 70 | |
|
1288
9fed5726a36d
Several changes in one:
Guido van Rossum <guido@python.org>
parents:
1198
diff
changeset
|
71 #include "accessobject.h" |
| 86 | 72 #include "intobject.h" |
| 222 | 73 #include "longobject.h" |
| 86 | 74 #include "floatobject.h" |
|
1369
89e1e5d9ccbf
* compile.[ch]: support for lambda()
Guido van Rossum <guido@python.org>
parents:
1329
diff
changeset
|
75 #include "rangeobject.h" |
| 86 | 76 #include "stringobject.h" |
| 77 #include "tupleobject.h" | |
| 78 #include "listobject.h" | |
|
2146
9afdbf944c2a
new names for lots of new functions
Guido van Rossum <guido@python.org>
parents:
2129
diff
changeset
|
79 #include "mappingobject.h" |
| 86 | 80 #include "methodobject.h" |
| 81 #include "moduleobject.h" | |
| 82 #include "funcobject.h" | |
| 83 #include "classobject.h" | |
| 84 #include "fileobject.h" | |
| 85 | |
| 86 #include "errors.h" | |
|
978
13c99eaf32a8
* renamed malloc.h mymalloc.h, and added MALLARG as the type of the
Guido van Rossum <guido@python.org>
parents:
790
diff
changeset
|
87 #include "mymalloc.h" |
| 86 | 88 |
|
1329
519c25039c6a
* Added support for X11 modules.
Guido van Rossum <guido@python.org>
parents:
1288
diff
changeset
|
89 #include "modsupport.h" |
|
519c25039c6a
* Added support for X11 modules.
Guido van Rossum <guido@python.org>
parents:
1288
diff
changeset
|
90 #include "ceval.h" |
|
519c25039c6a
* Added support for X11 modules.
Guido van Rossum <guido@python.org>
parents:
1288
diff
changeset
|
91 |
| 2839 | 92 #include "abstract.h" |
| 93 | |
|
2129
05360cd616ae
The great renaming, phase two: all header files have been updated to
Guido van Rossum <guido@python.org>
parents:
2058
diff
changeset
|
94 extern void Py_FatalError Py_PROTO((char *)); |
|
05360cd616ae
The great renaming, phase two: all header files have been updated to
Guido van Rossum <guido@python.org>
parents:
2058
diff
changeset
|
95 |
|
05360cd616ae
The great renaming, phase two: all header files have been updated to
Guido van Rossum <guido@python.org>
parents:
2058
diff
changeset
|
96 #define PyArg_GetInt(v, a) PyArg_Parse((v), "i", (a)) |
|
05360cd616ae
The great renaming, phase two: all header files have been updated to
Guido van Rossum <guido@python.org>
parents:
2058
diff
changeset
|
97 #define PyArg_NoArgs(v) PyArg_Parse(v, "") |
|
1329
519c25039c6a
* Added support for X11 modules.
Guido van Rossum <guido@python.org>
parents:
1288
diff
changeset
|
98 |
| 2304 | 99 /* 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 | |
|
1329
519c25039c6a
* Added support for X11 modules.
Guido van Rossum <guido@python.org>
parents:
1288
diff
changeset
|
107 #ifdef __cplusplus |
|
519c25039c6a
* Added support for X11 modules.
Guido van Rossum <guido@python.org>
parents:
1288
diff
changeset
|
108 } |
|
519c25039c6a
* Added support for X11 modules.
Guido van Rossum <guido@python.org>
parents:
1288
diff
changeset
|
109 #endif |
|
2129
05360cd616ae
The great renaming, phase two: all header files have been updated to
Guido van Rossum <guido@python.org>
parents:
2058
diff
changeset
|
110 |
|
05360cd616ae
The great renaming, phase two: all header files have been updated to
Guido van Rossum <guido@python.org>
parents:
2058
diff
changeset
|
111 #ifndef Py_USE_NEW_NAMES |
|
05360cd616ae
The great renaming, phase two: all header files have been updated to
Guido van Rossum <guido@python.org>
parents:
2058
diff
changeset
|
112 #include "rename2.h" |
|
05360cd616ae
The great renaming, phase two: all header files have been updated to
Guido van Rossum <guido@python.org>
parents:
2058
diff
changeset
|
113 #endif |
|
05360cd616ae
The great renaming, phase two: all header files have been updated to
Guido van Rossum <guido@python.org>
parents:
2058
diff
changeset
|
114 |
|
1329
519c25039c6a
* Added support for X11 modules.
Guido van Rossum <guido@python.org>
parents:
1288
diff
changeset
|
115 #endif /* !Py_ALLOBJECTS_H */ |
