Mercurial > cpython-lru_cache-weakref
annotate Include/modsupport.h @ 58765:2ba7677bfa95 legacy-trunk
testCopysign was defined twice in test_math; combine the definitions
| author | Mark Dickinson <dickinsm@gmail.com> |
|---|---|
| date | Sat, 06 Feb 2010 23:11:25 +0000 |
| parents | c3ce56c7ecd1 |
| children |
| rev | line source |
|---|---|
| 145 | 1 |
|
13435
7e3cd9480f66
ANSI-fication of the sources -- remove Py_PROTO!
Fred Drake <fdrake@acm.org>
parents:
13256
diff
changeset
|
2 #ifndef Py_MODSUPPORT_H |
|
7e3cd9480f66
ANSI-fication of the sources -- remove Py_PROTO!
Fred Drake <fdrake@acm.org>
parents:
13256
diff
changeset
|
3 #define Py_MODSUPPORT_H |
|
7e3cd9480f66
ANSI-fication of the sources -- remove Py_PROTO!
Fred Drake <fdrake@acm.org>
parents:
13256
diff
changeset
|
4 #ifdef __cplusplus |
|
7e3cd9480f66
ANSI-fication of the sources -- remove Py_PROTO!
Fred Drake <fdrake@acm.org>
parents:
13256
diff
changeset
|
5 extern "C" { |
|
7e3cd9480f66
ANSI-fication of the sources -- remove Py_PROTO!
Fred Drake <fdrake@acm.org>
parents:
13256
diff
changeset
|
6 #endif |
|
7e3cd9480f66
ANSI-fication of the sources -- remove Py_PROTO!
Fred Drake <fdrake@acm.org>
parents:
13256
diff
changeset
|
7 |
| 6 | 8 /* Module support interface */ |
| 9 | |
|
1746
1940892d2fe3
Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents:
1329
diff
changeset
|
10 #include <stdarg.h> |
|
1940892d2fe3
Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents:
1329
diff
changeset
|
11 |
|
36501
7fdc639bc5b4
Merge ssize_t branch.
Martin v. Löwis <martin@v.loewis.de>
parents:
35999
diff
changeset
|
12 /* If PY_SSIZE_T_CLEAN is defined, each functions treats #-specifier |
|
7fdc639bc5b4
Merge ssize_t branch.
Martin v. Löwis <martin@v.loewis.de>
parents:
35999
diff
changeset
|
13 to mean Py_ssize_t */ |
|
7fdc639bc5b4
Merge ssize_t branch.
Martin v. Löwis <martin@v.loewis.de>
parents:
35999
diff
changeset
|
14 #ifdef PY_SSIZE_T_CLEAN |
|
7fdc639bc5b4
Merge ssize_t branch.
Martin v. Löwis <martin@v.loewis.de>
parents:
35999
diff
changeset
|
15 #define PyArg_Parse _PyArg_Parse_SizeT |
|
7fdc639bc5b4
Merge ssize_t branch.
Martin v. Löwis <martin@v.loewis.de>
parents:
35999
diff
changeset
|
16 #define PyArg_ParseTuple _PyArg_ParseTuple_SizeT |
|
7fdc639bc5b4
Merge ssize_t branch.
Martin v. Löwis <martin@v.loewis.de>
parents:
35999
diff
changeset
|
17 #define PyArg_ParseTupleAndKeywords _PyArg_ParseTupleAndKeywords_SizeT |
|
7fdc639bc5b4
Merge ssize_t branch.
Martin v. Löwis <martin@v.loewis.de>
parents:
35999
diff
changeset
|
18 #define PyArg_VaParse _PyArg_VaParse_SizeT |
|
7fdc639bc5b4
Merge ssize_t branch.
Martin v. Löwis <martin@v.loewis.de>
parents:
35999
diff
changeset
|
19 #define PyArg_VaParseTupleAndKeywords _PyArg_VaParseTupleAndKeywords_SizeT |
|
37702
9b22d8b7bcaa
Make Py_BuildValue, PyObject_CallFunction and
Martin v. Löwis <martin@v.loewis.de>
parents:
37465
diff
changeset
|
20 #define Py_BuildValue _Py_BuildValue_SizeT |
|
9b22d8b7bcaa
Make Py_BuildValue, PyObject_CallFunction and
Martin v. Löwis <martin@v.loewis.de>
parents:
37465
diff
changeset
|
21 #define Py_VaBuildValue _Py_VaBuildValue_SizeT |
|
37463
add007870bbd
PyAPI_FUNC() the PyArg_.*SizeT forms. Without this, cygwin has hysterics.
Anthony Baxter <anthonybaxter@gmail.com>
parents:
36750
diff
changeset
|
22 #else |
|
add007870bbd
PyAPI_FUNC() the PyArg_.*SizeT forms. Without this, cygwin has hysterics.
Anthony Baxter <anthonybaxter@gmail.com>
parents:
36750
diff
changeset
|
23 PyAPI_FUNC(PyObject *) _Py_VaBuildValue_SizeT(const char *, va_list); |
|
add007870bbd
PyAPI_FUNC() the PyArg_.*SizeT forms. Without this, cygwin has hysterics.
Anthony Baxter <anthonybaxter@gmail.com>
parents:
36750
diff
changeset
|
24 #endif |
|
36501
7fdc639bc5b4
Merge ssize_t branch.
Martin v. Löwis <martin@v.loewis.de>
parents:
35999
diff
changeset
|
25 |
|
35999
9541369b0dca
Add const to several API functions that take char *.
Jeremy Hylton <jeremy@alum.mit.edu>
parents:
35450
diff
changeset
|
26 PyAPI_FUNC(int) PyArg_Parse(PyObject *, const char *, ...); |
|
40151
410c1c78ed51
Add check for the PyArg_ParseTuple format, and declare
Martin v. Löwis <martin@v.loewis.de>
parents:
37814
diff
changeset
|
27 PyAPI_FUNC(int) PyArg_ParseTuple(PyObject *, const char *, ...) Py_FORMAT_PARSETUPLE(PyArg_ParseTuple, 2, 3); |
|
24752
c1eb668525e1
Excise DL_EXPORT from Include.
Mark Hammond <mhammond@skippinet.com.au>
parents:
20632
diff
changeset
|
28 PyAPI_FUNC(int) PyArg_ParseTupleAndKeywords(PyObject *, PyObject *, |
|
36675
dba6494735d0
Revert backwards-incompatible const changes.
Martin v. Löwis <martin@v.loewis.de>
parents:
36501
diff
changeset
|
29 const char *, char **, ...); |
|
36750
92ba72484ff3
Use Py_ssize_t for PyArg_UnpackTuple arguments.
Martin v. Löwis <martin@v.loewis.de>
parents:
36731
diff
changeset
|
30 PyAPI_FUNC(int) PyArg_UnpackTuple(PyObject *, const char *, Py_ssize_t, Py_ssize_t, ...); |
|
35999
9541369b0dca
Add const to several API functions that take char *.
Jeremy Hylton <jeremy@alum.mit.edu>
parents:
35450
diff
changeset
|
31 PyAPI_FUNC(PyObject *) Py_BuildValue(const char *, ...); |
|
37814
8625e4a5ce4d
C++ compile cleanup: proper declaration of _Py_BuildValue_SizeT
Skip Montanaro <skip@pobox.com>
parents:
37702
diff
changeset
|
32 PyAPI_FUNC(PyObject *) _Py_BuildValue_SizeT(const char *, ...); |
|
35999
9541369b0dca
Add const to several API functions that take char *.
Jeremy Hylton <jeremy@alum.mit.edu>
parents:
35450
diff
changeset
|
33 PyAPI_FUNC(int) _PyArg_NoKeywords(const char *funcname, PyObject *kw); |
|
1746
1940892d2fe3
Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents:
1329
diff
changeset
|
34 |
|
35999
9541369b0dca
Add const to several API functions that take char *.
Jeremy Hylton <jeremy@alum.mit.edu>
parents:
35450
diff
changeset
|
35 PyAPI_FUNC(int) PyArg_VaParse(PyObject *, const char *, va_list); |
|
32606
cc1f74d19fcb
Add PyArg_VaParseTupleAndKeywords(). Document this function and
Brett Cannon <bcannon@gmail.com>
parents:
24901
diff
changeset
|
36 PyAPI_FUNC(int) PyArg_VaParseTupleAndKeywords(PyObject *, PyObject *, |
|
36675
dba6494735d0
Revert backwards-incompatible const changes.
Martin v. Löwis <martin@v.loewis.de>
parents:
36501
diff
changeset
|
37 const char *, char **, va_list); |
|
35999
9541369b0dca
Add const to several API functions that take char *.
Jeremy Hylton <jeremy@alum.mit.edu>
parents:
35450
diff
changeset
|
38 PyAPI_FUNC(PyObject *) Py_VaBuildValue(const char *, va_list); |
|
1252
c4cd0d9d8281
* Changed many files to use mkvalue() instead of newtupleobject().
Guido van Rossum <guido@python.org>
parents:
819
diff
changeset
|
39 |
|
35999
9541369b0dca
Add const to several API functions that take char *.
Jeremy Hylton <jeremy@alum.mit.edu>
parents:
35450
diff
changeset
|
40 PyAPI_FUNC(int) PyModule_AddObject(PyObject *, const char *, PyObject *); |
|
9541369b0dca
Add const to several API functions that take char *.
Jeremy Hylton <jeremy@alum.mit.edu>
parents:
35450
diff
changeset
|
41 PyAPI_FUNC(int) PyModule_AddIntConstant(PyObject *, const char *, long); |
|
9541369b0dca
Add const to several API functions that take char *.
Jeremy Hylton <jeremy@alum.mit.edu>
parents:
35450
diff
changeset
|
42 PyAPI_FUNC(int) PyModule_AddStringConstant(PyObject *, const char *, const char *); |
|
44875
c3ce56c7ecd1
Don't repeat yourself
Christian Heimes <christian@cheimes.de>
parents:
40151
diff
changeset
|
43 #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant(m, #c, c) |
|
c3ce56c7ecd1
Don't repeat yourself
Christian Heimes <christian@cheimes.de>
parents:
40151
diff
changeset
|
44 #define PyModule_AddStringMacro(m, c) PyModule_AddStringConstant(m, #c, c) |
|
36501
7fdc639bc5b4
Merge ssize_t branch.
Martin v. Löwis <martin@v.loewis.de>
parents:
35999
diff
changeset
|
45 |
|
36726
bbf16fd024df
from __future__ import with_statement addon for 'with', mostly written by
Thomas Wouters <thomas@python.org>
parents:
36675
diff
changeset
|
46 #define PYTHON_API_VERSION 1013 |
|
bbf16fd024df
from __future__ import with_statement addon for 'with', mostly written by
Thomas Wouters <thomas@python.org>
parents:
36675
diff
changeset
|
47 #define PYTHON_API_STRING "1013" |
| 2095 | 48 /* The API version is maintained (independently from the Python version) |
| 49 so we can detect mismatches between the interpreter and dynamically | |
|
13620
5b727ab37092
Spelling fixes supplied by Rob W. W. Hooft. All these are fixes in either
Thomas Wouters <thomas@python.org>
parents:
13435
diff
changeset
|
50 loaded modules. These are diagnosed by an error message but |
|
3831
96851f51ad6b
Two bumps for the price of one (PYTHON_API_VERSION)
Guido van Rossum <guido@python.org>
parents:
3318
diff
changeset
|
51 the module is still loaded (because the mismatch can only be tested |
|
96851f51ad6b
Two bumps for the price of one (PYTHON_API_VERSION)
Guido van Rossum <guido@python.org>
parents:
3318
diff
changeset
|
52 after loading the module). The error message is intended to |
|
96851f51ad6b
Two bumps for the price of one (PYTHON_API_VERSION)
Guido van Rossum <guido@python.org>
parents:
3318
diff
changeset
|
53 explain the core dump a few seconds later. |
| 2095 | 54 |
|
4110
07a35fd2e0a1
Add PYTHON_API_STRING, which is PYTHON_API_VERSION as a string literal.
Guido van Rossum <guido@python.org>
parents:
3831
diff
changeset
|
55 The symbol PYTHON_API_STRING defines the same value as a string |
|
07a35fd2e0a1
Add PYTHON_API_STRING, which is PYTHON_API_VERSION as a string literal.
Guido van Rossum <guido@python.org>
parents:
3831
diff
changeset
|
56 literal. *** PLEASE MAKE SURE THE DEFINITIONS MATCH. *** |
|
07a35fd2e0a1
Add PYTHON_API_STRING, which is PYTHON_API_VERSION as a string literal.
Guido van Rossum <guido@python.org>
parents:
3831
diff
changeset
|
57 |
| 2095 | 58 Please add a line or two to the top of this log for each API |
| 59 version change: | |
| 60 | |
|
36731
fd5497b64209
Martin owns PEP 353 and did most of the work
Neal Norwitz <nnorwitz@gmail.com>
parents:
36726
diff
changeset
|
61 22-Feb-2006 MvL 1013 PEP 353 - long indices for sequence lengths |
|
36726
bbf16fd024df
from __future__ import with_statement addon for 'with', mostly written by
Thomas Wouters <thomas@python.org>
parents:
36675
diff
changeset
|
62 |
|
24901
bc660f73795c
SF patch 576101, by Oren Tirosh: alternative implementation of
Guido van Rossum <guido@python.org>
parents:
24752
diff
changeset
|
63 19-Aug-2002 GvR 1012 Changes to string object struct for |
|
bc660f73795c
SF patch 576101, by Oren Tirosh: alternative implementation of
Guido van Rossum <guido@python.org>
parents:
24752
diff
changeset
|
64 interning changes, saving 3 bytes. |
|
bc660f73795c
SF patch 576101, by Oren Tirosh: alternative implementation of
Guido van Rossum <guido@python.org>
parents:
24752
diff
changeset
|
65 |
|
18933
09df3254b49d
Merge of descr-branch back into trunk.
Tim Peters <tim.peters@gmail.com>
parents:
16269
diff
changeset
|
66 17-Jul-2001 GvR 1011 Descr-branch, just to be on the safe side |
|
09df3254b49d
Merge of descr-branch back into trunk.
Tim Peters <tim.peters@gmail.com>
parents:
16269
diff
changeset
|
67 |
|
16269
77958266c7d7
The addition of new parameters to functions in the Python/C API requires
Fred Drake <fdrake@acm.org>
parents:
14781
diff
changeset
|
68 25-Jan-2001 FLD 1010 Parameters added to PyCode_New() and |
|
77958266c7d7
The addition of new parameters to functions in the Python/C API requires
Fred Drake <fdrake@acm.org>
parents:
14781
diff
changeset
|
69 PyFrame_New(); Python 2.1a2 |
|
77958266c7d7
The addition of new parameters to functions in the Python/C API requires
Fred Drake <fdrake@acm.org>
parents:
14781
diff
changeset
|
70 |
|
12088
3789b643fe89
Version updated to 1.6; API version to 1009.
Guido van Rossum <guido@python.org>
parents:
9744
diff
changeset
|
71 14-Mar-2000 GvR 1009 Unicode API added |
|
3789b643fe89
Version updated to 1.6; API version to 1009.
Guido van Rossum <guido@python.org>
parents:
9744
diff
changeset
|
72 |
|
9744
85ab28644201
New version identification scheme.
Guido van Rossum <guido@python.org>
parents:
9586
diff
changeset
|
73 3-Jan-1999 GvR 1007 Decided to change back! (Don't reuse 1008!) |
|
85ab28644201
New version identification scheme.
Guido van Rossum <guido@python.org>
parents:
9586
diff
changeset
|
74 |
|
85ab28644201
New version identification scheme.
Guido van Rossum <guido@python.org>
parents:
9586
diff
changeset
|
75 3-Dec-1998 GvR 1008 Python 1.5.2b1 |
|
9578
299284ee669d
New API version (enough has changed!).
Guido van Rossum <guido@python.org>
parents:
8563
diff
changeset
|
76 |
|
299284ee669d
New API version (enough has changed!).
Guido van Rossum <guido@python.org>
parents:
8563
diff
changeset
|
77 18-Jan-1997 GvR 1007 string interning and other speedups |
|
5004
4c8e4e9311e4
Bump API version due to the various speedup hacks.
Guido van Rossum <guido@python.org>
parents:
4503
diff
changeset
|
78 |
|
4403
3b3f7c3f6da2
Ellipses -> Ellipsis rename (the dictionary really says that it should
Guido van Rossum <guido@python.org>
parents:
4110
diff
changeset
|
79 11-Oct-1996 GvR renamed Py_Ellipses to Py_Ellipsis :-( |
|
3b3f7c3f6da2
Ellipses -> Ellipsis rename (the dictionary really says that it should
Guido van Rossum <guido@python.org>
parents:
4110
diff
changeset
|
80 |
|
3831
96851f51ad6b
Two bumps for the price of one (PYTHON_API_VERSION)
Guido van Rossum <guido@python.org>
parents:
3318
diff
changeset
|
81 30-Jul-1996 GvR Slice and ellipses syntax added |
|
96851f51ad6b
Two bumps for the price of one (PYTHON_API_VERSION)
Guido van Rossum <guido@python.org>
parents:
3318
diff
changeset
|
82 |
|
96851f51ad6b
Two bumps for the price of one (PYTHON_API_VERSION)
Guido van Rossum <guido@python.org>
parents:
3318
diff
changeset
|
83 23-Jul-1996 GvR For 1.4 -- better safe than sorry this time :-) |
|
96851f51ad6b
Two bumps for the price of one (PYTHON_API_VERSION)
Guido van Rossum <guido@python.org>
parents:
3318
diff
changeset
|
84 |
| 3318 | 85 7-Nov-1995 GvR Keyword arguments (should've been done at 1.3 :-( ) |
| 86 | |
|
2129
05360cd616ae
The great renaming, phase two: all header files have been updated to
Guido van Rossum <guido@python.org>
parents:
2095
diff
changeset
|
87 10-Jan-1995 GvR Renamed globals to new naming scheme |
|
05360cd616ae
The great renaming, phase two: all header files have been updated to
Guido van Rossum <guido@python.org>
parents:
2095
diff
changeset
|
88 |
| 2095 | 89 9-Jan-1995 GvR Initial version (incompatible with older API) |
| 90 */ | |
| 91 | |
|
4110
07a35fd2e0a1
Add PYTHON_API_STRING, which is PYTHON_API_VERSION as a string literal.
Guido van Rossum <guido@python.org>
parents:
3831
diff
changeset
|
92 #ifdef MS_WINDOWS |
|
6350
9a121b3fbebb
Removed special Windows defines, at Mark Hammond's request.
Guido van Rossum <guido@python.org>
parents:
5978
diff
changeset
|
93 /* Special defines for Windows versions used to live here. Things |
|
9a121b3fbebb
Removed special Windows defines, at Mark Hammond's request.
Guido van Rossum <guido@python.org>
parents:
5978
diff
changeset
|
94 have changed, and the "Version" is now in a global string variable. |
|
9a121b3fbebb
Removed special Windows defines, at Mark Hammond's request.
Guido van Rossum <guido@python.org>
parents:
5978
diff
changeset
|
95 Reason for this is that this for easier branding of a "custom DLL" |
|
9a121b3fbebb
Removed special Windows defines, at Mark Hammond's request.
Guido van Rossum <guido@python.org>
parents:
5978
diff
changeset
|
96 without actually needing a recompile. */ |
|
4110
07a35fd2e0a1
Add PYTHON_API_STRING, which is PYTHON_API_VERSION as a string literal.
Guido van Rossum <guido@python.org>
parents:
3831
diff
changeset
|
97 #endif /* MS_WINDOWS */ |
|
07a35fd2e0a1
Add PYTHON_API_STRING, which is PYTHON_API_VERSION as a string literal.
Guido van Rossum <guido@python.org>
parents:
3831
diff
changeset
|
98 |
|
36501
7fdc639bc5b4
Merge ssize_t branch.
Martin v. Löwis <martin@v.loewis.de>
parents:
35999
diff
changeset
|
99 #if SIZEOF_SIZE_T != SIZEOF_INT |
|
7fdc639bc5b4
Merge ssize_t branch.
Martin v. Löwis <martin@v.loewis.de>
parents:
35999
diff
changeset
|
100 /* On a 64-bit system, rename the Py_InitModule4 so that 2.4 |
|
7fdc639bc5b4
Merge ssize_t branch.
Martin v. Löwis <martin@v.loewis.de>
parents:
35999
diff
changeset
|
101 modules cannot get loaded into a 2.5 interpreter */ |
|
7fdc639bc5b4
Merge ssize_t branch.
Martin v. Löwis <martin@v.loewis.de>
parents:
35999
diff
changeset
|
102 #define Py_InitModule4 Py_InitModule4_64 |
|
7fdc639bc5b4
Merge ssize_t branch.
Martin v. Löwis <martin@v.loewis.de>
parents:
35999
diff
changeset
|
103 #endif |
|
7fdc639bc5b4
Merge ssize_t branch.
Martin v. Löwis <martin@v.loewis.de>
parents:
35999
diff
changeset
|
104 |
|
4110
07a35fd2e0a1
Add PYTHON_API_STRING, which is PYTHON_API_VERSION as a string literal.
Guido van Rossum <guido@python.org>
parents:
3831
diff
changeset
|
105 #ifdef Py_TRACE_REFS |
|
36501
7fdc639bc5b4
Merge ssize_t branch.
Martin v. Löwis <martin@v.loewis.de>
parents:
35999
diff
changeset
|
106 /* When we are tracing reference counts, rename Py_InitModule4 so |
|
7fdc639bc5b4
Merge ssize_t branch.
Martin v. Löwis <martin@v.loewis.de>
parents:
35999
diff
changeset
|
107 modules compiled with incompatible settings will generate a |
|
7fdc639bc5b4
Merge ssize_t branch.
Martin v. Löwis <martin@v.loewis.de>
parents:
35999
diff
changeset
|
108 link-time error. */ |
|
7fdc639bc5b4
Merge ssize_t branch.
Martin v. Löwis <martin@v.loewis.de>
parents:
35999
diff
changeset
|
109 #if SIZEOF_SIZE_T != SIZEOF_INT |
|
7fdc639bc5b4
Merge ssize_t branch.
Martin v. Löwis <martin@v.loewis.de>
parents:
35999
diff
changeset
|
110 #undef Py_InitModule4 |
|
7fdc639bc5b4
Merge ssize_t branch.
Martin v. Löwis <martin@v.loewis.de>
parents:
35999
diff
changeset
|
111 #define Py_InitModule4 Py_InitModule4TraceRefs_64 |
|
7fdc639bc5b4
Merge ssize_t branch.
Martin v. Löwis <martin@v.loewis.de>
parents:
35999
diff
changeset
|
112 #else |
|
7fdc639bc5b4
Merge ssize_t branch.
Martin v. Löwis <martin@v.loewis.de>
parents:
35999
diff
changeset
|
113 #define Py_InitModule4 Py_InitModule4TraceRefs |
|
7fdc639bc5b4
Merge ssize_t branch.
Martin v. Löwis <martin@v.loewis.de>
parents:
35999
diff
changeset
|
114 #endif |
|
4110
07a35fd2e0a1
Add PYTHON_API_STRING, which is PYTHON_API_VERSION as a string literal.
Guido van Rossum <guido@python.org>
parents:
3831
diff
changeset
|
115 #endif |
|
07a35fd2e0a1
Add PYTHON_API_STRING, which is PYTHON_API_VERSION as a string literal.
Guido van Rossum <guido@python.org>
parents:
3831
diff
changeset
|
116 |
|
35999
9541369b0dca
Add const to several API functions that take char *.
Jeremy Hylton <jeremy@alum.mit.edu>
parents:
35450
diff
changeset
|
117 PyAPI_FUNC(PyObject *) Py_InitModule4(const char *name, PyMethodDef *methods, |
|
9541369b0dca
Add const to several API functions that take char *.
Jeremy Hylton <jeremy@alum.mit.edu>
parents:
35450
diff
changeset
|
118 const char *doc, PyObject *self, |
|
9541369b0dca
Add const to several API functions that take char *.
Jeremy Hylton <jeremy@alum.mit.edu>
parents:
35450
diff
changeset
|
119 int apiver); |
|
13435
7e3cd9480f66
ANSI-fication of the sources -- remove Py_PROTO!
Fred Drake <fdrake@acm.org>
parents:
13256
diff
changeset
|
120 |
|
2129
05360cd616ae
The great renaming, phase two: all header files have been updated to
Guido van Rossum <guido@python.org>
parents:
2095
diff
changeset
|
121 #define Py_InitModule(name, methods) \ |
|
05360cd616ae
The great renaming, phase two: all header files have been updated to
Guido van Rossum <guido@python.org>
parents:
2095
diff
changeset
|
122 Py_InitModule4(name, methods, (char *)NULL, (PyObject *)NULL, \ |
|
05360cd616ae
The great renaming, phase two: all header files have been updated to
Guido van Rossum <guido@python.org>
parents:
2095
diff
changeset
|
123 PYTHON_API_VERSION) |
|
1329
519c25039c6a
* Added support for X11 modules.
Guido van Rossum <guido@python.org>
parents:
1313
diff
changeset
|
124 |
|
8563
419ee95df2d8
Define new macro Py_InitModule3(name, methods, doc) which calls
Guido van Rossum <guido@python.org>
parents:
6601
diff
changeset
|
125 #define Py_InitModule3(name, methods, doc) \ |
|
419ee95df2d8
Define new macro Py_InitModule3(name, methods, doc) which calls
Guido van Rossum <guido@python.org>
parents:
6601
diff
changeset
|
126 Py_InitModule4(name, methods, doc, (PyObject *)NULL, \ |
|
419ee95df2d8
Define new macro Py_InitModule3(name, methods, doc) which calls
Guido van Rossum <guido@python.org>
parents:
6601
diff
changeset
|
127 PYTHON_API_VERSION) |
|
419ee95df2d8
Define new macro Py_InitModule3(name, methods, doc) which calls
Guido van Rossum <guido@python.org>
parents:
6601
diff
changeset
|
128 |
|
24752
c1eb668525e1
Excise DL_EXPORT from Include.
Mark Hammond <mhammond@skippinet.com.au>
parents:
20632
diff
changeset
|
129 PyAPI_DATA(char *) _Py_PackageContext; |
|
6601
1e428f51ed4e
Add declaration for _Py_PackageContext -- needed to fix importing
Guido van Rossum <guido@python.org>
parents:
6350
diff
changeset
|
130 |
|
1329
519c25039c6a
* Added support for X11 modules.
Guido van Rossum <guido@python.org>
parents:
1313
diff
changeset
|
131 #ifdef __cplusplus |
|
519c25039c6a
* Added support for X11 modules.
Guido van Rossum <guido@python.org>
parents:
1313
diff
changeset
|
132 } |
|
519c25039c6a
* Added support for X11 modules.
Guido van Rossum <guido@python.org>
parents:
1313
diff
changeset
|
133 #endif |
|
519c25039c6a
* Added support for X11 modules.
Guido van Rossum <guido@python.org>
parents:
1313
diff
changeset
|
134 #endif /* !Py_MODSUPPORT_H */ |
