Mercurial > cpython-lru_cache-weakref
annotate Include/ceval.h @ 58925:eecf1bef052d 2.6
Merged revisions 78207 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r78207 | ezio.melotti | 2010-02-17 01:26:09 +0200 (Wed, 17 Feb 2010) | 1 line
#7930: fix stripid
........
| author | Ezio Melotti <ezio.melotti@gmail.com> |
|---|---|
| date | Tue, 16 Feb 2010 23:29:44 +0000 |
| parents | 7fdc639bc5b4 |
| children | e38335d4df91 6df6c19fbae3 04f5cbc74424 |
| rev | line source |
|---|---|
|
1329
519c25039c6a
* Added support for X11 modules.
Guido van Rossum <guido@python.org>
parents:
1293
diff
changeset
|
1 #ifndef Py_CEVAL_H |
|
519c25039c6a
* Added support for X11 modules.
Guido van Rossum <guido@python.org>
parents:
1293
diff
changeset
|
2 #define Py_CEVAL_H |
|
519c25039c6a
* Added support for X11 modules.
Guido van Rossum <guido@python.org>
parents:
1293
diff
changeset
|
3 #ifdef __cplusplus |
|
519c25039c6a
* Added support for X11 modules.
Guido van Rossum <guido@python.org>
parents:
1293
diff
changeset
|
4 extern "C" { |
|
519c25039c6a
* Added support for X11 modules.
Guido van Rossum <guido@python.org>
parents:
1293
diff
changeset
|
5 #endif |
|
519c25039c6a
* Added support for X11 modules.
Guido van Rossum <guido@python.org>
parents:
1293
diff
changeset
|
6 |
| 145 | 7 |
| 926 | 8 /* Interface to random parts in ceval.c */ |
| 86 | 9 |
|
24752
c1eb668525e1
Excise DL_EXPORT from Include.
Mark Hammond <mhammond@skippinet.com.au>
parents:
18933
diff
changeset
|
10 PyAPI_FUNC(PyObject *) PyEval_CallObjectWithKeywords( |
|
c1eb668525e1
Excise DL_EXPORT from Include.
Mark Hammond <mhammond@skippinet.com.au>
parents:
18933
diff
changeset
|
11 PyObject *, PyObject *, PyObject *); |
|
315
aef7e0a9119e
Added call_object interface
Guido van Rossum <guido@python.org>
parents:
145
diff
changeset
|
12 |
|
10412
e9e69b02d0f0
Add DLL level b/w compat for PySequence_In and PyEval_CallObject
Guido van Rossum <guido@python.org>
parents:
9586
diff
changeset
|
13 /* DLL-level Backwards compatibility: */ |
|
e9e69b02d0f0
Add DLL level b/w compat for PySequence_In and PyEval_CallObject
Guido van Rossum <guido@python.org>
parents:
9586
diff
changeset
|
14 #undef PyEval_CallObject |
|
24752
c1eb668525e1
Excise DL_EXPORT from Include.
Mark Hammond <mhammond@skippinet.com.au>
parents:
18933
diff
changeset
|
15 PyAPI_FUNC(PyObject *) PyEval_CallObject(PyObject *, PyObject *); |
|
10412
e9e69b02d0f0
Add DLL level b/w compat for PySequence_In and PyEval_CallObject
Guido van Rossum <guido@python.org>
parents:
9586
diff
changeset
|
16 |
|
6206
77f5b6cbea66
Inline PyObject_CallObject (Marc-Andre Lemburg).
Guido van Rossum <guido@python.org>
parents:
5919
diff
changeset
|
17 /* Inline this */ |
|
77f5b6cbea66
Inline PyObject_CallObject (Marc-Andre Lemburg).
Guido van Rossum <guido@python.org>
parents:
5919
diff
changeset
|
18 #define PyEval_CallObject(func,arg) \ |
|
77f5b6cbea66
Inline PyObject_CallObject (Marc-Andre Lemburg).
Guido van Rossum <guido@python.org>
parents:
5919
diff
changeset
|
19 PyEval_CallObjectWithKeywords(func, arg, (PyObject *)NULL) |
|
77f5b6cbea66
Inline PyObject_CallObject (Marc-Andre Lemburg).
Guido van Rossum <guido@python.org>
parents:
5919
diff
changeset
|
20 |
|
35999
9541369b0dca
Add const to several API functions that take char *.
Jeremy Hylton <jeremy@alum.mit.edu>
parents:
35298
diff
changeset
|
21 PyAPI_FUNC(PyObject *) PyEval_CallFunction(PyObject *obj, |
|
9541369b0dca
Add const to several API functions that take char *.
Jeremy Hylton <jeremy@alum.mit.edu>
parents:
35298
diff
changeset
|
22 const char *format, ...); |
|
24752
c1eb668525e1
Excise DL_EXPORT from Include.
Mark Hammond <mhammond@skippinet.com.au>
parents:
18933
diff
changeset
|
23 PyAPI_FUNC(PyObject *) PyEval_CallMethod(PyObject *obj, |
|
35999
9541369b0dca
Add const to several API functions that take char *.
Jeremy Hylton <jeremy@alum.mit.edu>
parents:
35298
diff
changeset
|
24 const char *methodname, |
|
9541369b0dca
Add const to several API functions that take char *.
Jeremy Hylton <jeremy@alum.mit.edu>
parents:
35298
diff
changeset
|
25 const char *format, ...); |
|
8899
38544f828d74
Add missing prototypes for PyEval_CallFunction() and PyEval_CallMethod().
Guido van Rossum <guido@python.org>
parents:
6206
diff
changeset
|
26 |
|
24752
c1eb668525e1
Excise DL_EXPORT from Include.
Mark Hammond <mhammond@skippinet.com.au>
parents:
18933
diff
changeset
|
27 PyAPI_FUNC(void) PyEval_SetProfile(Py_tracefunc, PyObject *); |
|
c1eb668525e1
Excise DL_EXPORT from Include.
Mark Hammond <mhammond@skippinet.com.au>
parents:
18933
diff
changeset
|
28 PyAPI_FUNC(void) PyEval_SetTrace(Py_tracefunc, PyObject *); |
|
18325
fb35b3a22604
Revise the interface to the profiling and tracing support for the
Fred Drake <fdrake@acm.org>
parents:
17124
diff
changeset
|
29 |
|
27978
4b99a701defe
- PyEval_GetFrame() is now declared to return a PyFrameObject *
Guido van Rossum <guido@python.org>
parents:
27712
diff
changeset
|
30 struct _frame; /* Avoid including frameobject.h */ |
|
4b99a701defe
- PyEval_GetFrame() is now declared to return a PyFrameObject *
Guido van Rossum <guido@python.org>
parents:
27712
diff
changeset
|
31 |
|
24752
c1eb668525e1
Excise DL_EXPORT from Include.
Mark Hammond <mhammond@skippinet.com.au>
parents:
18933
diff
changeset
|
32 PyAPI_FUNC(PyObject *) PyEval_GetBuiltins(void); |
|
c1eb668525e1
Excise DL_EXPORT from Include.
Mark Hammond <mhammond@skippinet.com.au>
parents:
18933
diff
changeset
|
33 PyAPI_FUNC(PyObject *) PyEval_GetGlobals(void); |
|
c1eb668525e1
Excise DL_EXPORT from Include.
Mark Hammond <mhammond@skippinet.com.au>
parents:
18933
diff
changeset
|
34 PyAPI_FUNC(PyObject *) PyEval_GetLocals(void); |
|
27978
4b99a701defe
- PyEval_GetFrame() is now declared to return a PyFrameObject *
Guido van Rossum <guido@python.org>
parents:
27712
diff
changeset
|
35 PyAPI_FUNC(struct _frame *) PyEval_GetFrame(void); |
|
24752
c1eb668525e1
Excise DL_EXPORT from Include.
Mark Hammond <mhammond@skippinet.com.au>
parents:
18933
diff
changeset
|
36 PyAPI_FUNC(int) PyEval_GetRestricted(void); |
|
18611
fdb36a0c7e6e
Part way to allowing "from __future__ import generators" to communicate
Tim Peters <tim.peters@gmail.com>
parents:
18325
diff
changeset
|
37 |
|
fdb36a0c7e6e
Part way to allowing "from __future__ import generators" to communicate
Tim Peters <tim.peters@gmail.com>
parents:
18325
diff
changeset
|
38 /* Look at the current frame's (if any) code's co_flags, and turn on |
|
fdb36a0c7e6e
Part way to allowing "from __future__ import generators" to communicate
Tim Peters <tim.peters@gmail.com>
parents:
18325
diff
changeset
|
39 the corresponding compiler flags in cf->cf_flags. Return 1 if any |
|
fdb36a0c7e6e
Part way to allowing "from __future__ import generators" to communicate
Tim Peters <tim.peters@gmail.com>
parents:
18325
diff
changeset
|
40 flag was set, else return 0. */ |
|
24752
c1eb668525e1
Excise DL_EXPORT from Include.
Mark Hammond <mhammond@skippinet.com.au>
parents:
18933
diff
changeset
|
41 PyAPI_FUNC(int) PyEval_MergeCompilerFlags(PyCompilerFlags *cf); |
| 86 | 42 |
|
24752
c1eb668525e1
Excise DL_EXPORT from Include.
Mark Hammond <mhammond@skippinet.com.au>
parents:
18933
diff
changeset
|
43 PyAPI_FUNC(int) Py_FlushLine(void); |
| 926 | 44 |
|
24752
c1eb668525e1
Excise DL_EXPORT from Include.
Mark Hammond <mhammond@skippinet.com.au>
parents:
18933
diff
changeset
|
45 PyAPI_FUNC(int) Py_AddPendingCall(int (*func)(void *), void *arg); |
|
c1eb668525e1
Excise DL_EXPORT from Include.
Mark Hammond <mhammond@skippinet.com.au>
parents:
18933
diff
changeset
|
46 PyAPI_FUNC(int) Py_MakePendingCalls(void); |
|
1885
d3de2cad2c68
pythonrun.h: added run_pyc_file
Guido van Rossum <guido@python.org>
parents:
1746
diff
changeset
|
47 |
|
30801
c42c40034536
Deleting cyclic object comparison.
Armin Rigo <arigo@tunes.org>
parents:
27991
diff
changeset
|
48 /* Protection against deeply nested recursive calls */ |
|
24752
c1eb668525e1
Excise DL_EXPORT from Include.
Mark Hammond <mhammond@skippinet.com.au>
parents:
18933
diff
changeset
|
49 PyAPI_FUNC(void) Py_SetRecursionLimit(int); |
|
c1eb668525e1
Excise DL_EXPORT from Include.
Mark Hammond <mhammond@skippinet.com.au>
parents:
18933
diff
changeset
|
50 PyAPI_FUNC(int) Py_GetRecursionLimit(void); |
| 926 | 51 |
|
30801
c42c40034536
Deleting cyclic object comparison.
Armin Rigo <arigo@tunes.org>
parents:
27991
diff
changeset
|
52 #define Py_EnterRecursiveCall(where) \ |
|
c42c40034536
Deleting cyclic object comparison.
Armin Rigo <arigo@tunes.org>
parents:
27991
diff
changeset
|
53 (_Py_MakeRecCheck(PyThreadState_GET()->recursion_depth) && \ |
|
c42c40034536
Deleting cyclic object comparison.
Armin Rigo <arigo@tunes.org>
parents:
27991
diff
changeset
|
54 _Py_CheckRecursiveCall(where)) |
|
c42c40034536
Deleting cyclic object comparison.
Armin Rigo <arigo@tunes.org>
parents:
27991
diff
changeset
|
55 #define Py_LeaveRecursiveCall() \ |
|
c42c40034536
Deleting cyclic object comparison.
Armin Rigo <arigo@tunes.org>
parents:
27991
diff
changeset
|
56 (--PyThreadState_GET()->recursion_depth) |
|
c42c40034536
Deleting cyclic object comparison.
Armin Rigo <arigo@tunes.org>
parents:
27991
diff
changeset
|
57 PyAPI_FUNC(int) _Py_CheckRecursiveCall(char *where); |
|
c42c40034536
Deleting cyclic object comparison.
Armin Rigo <arigo@tunes.org>
parents:
27991
diff
changeset
|
58 PyAPI_DATA(int) _Py_CheckRecursionLimit; |
|
c42c40034536
Deleting cyclic object comparison.
Armin Rigo <arigo@tunes.org>
parents:
27991
diff
changeset
|
59 #ifdef USE_STACKCHECK |
|
c42c40034536
Deleting cyclic object comparison.
Armin Rigo <arigo@tunes.org>
parents:
27991
diff
changeset
|
60 # define _Py_MakeRecCheck(x) (++(x) > --_Py_CheckRecursionLimit) |
|
c42c40034536
Deleting cyclic object comparison.
Armin Rigo <arigo@tunes.org>
parents:
27991
diff
changeset
|
61 #else |
|
c42c40034536
Deleting cyclic object comparison.
Armin Rigo <arigo@tunes.org>
parents:
27991
diff
changeset
|
62 # define _Py_MakeRecCheck(x) (++(x) > _Py_CheckRecursionLimit) |
|
c42c40034536
Deleting cyclic object comparison.
Armin Rigo <arigo@tunes.org>
parents:
27991
diff
changeset
|
63 #endif |
|
c42c40034536
Deleting cyclic object comparison.
Armin Rigo <arigo@tunes.org>
parents:
27991
diff
changeset
|
64 |
|
35999
9541369b0dca
Add const to several API functions that take char *.
Jeremy Hylton <jeremy@alum.mit.edu>
parents:
35298
diff
changeset
|
65 PyAPI_FUNC(const char *) PyEval_GetFuncName(PyObject *); |
|
9541369b0dca
Add const to several API functions that take char *.
Jeremy Hylton <jeremy@alum.mit.edu>
parents:
35298
diff
changeset
|
66 PyAPI_FUNC(const char *) PyEval_GetFuncDesc(PyObject *); |
|
18933
09df3254b49d
Merge of descr-branch back into trunk.
Tim Peters <tim.peters@gmail.com>
parents:
18611
diff
changeset
|
67 |
|
27712
16856c9514e0
Small function call optimization and special build option for call stats.
Jeremy Hylton <jeremy@alum.mit.edu>
parents:
25108
diff
changeset
|
68 PyAPI_FUNC(PyObject *) PyEval_GetCallStats(PyObject *); |
|
32421
485d2ef43419
Patch #966493: Cleanup generator/eval_frame exposure.
Martin v. Löwis <martin@v.loewis.de>
parents:
32175
diff
changeset
|
69 PyAPI_FUNC(PyObject *) PyEval_EvalFrame(struct _frame *); |
|
35298
b2fe5f8fcfdd
PEP 342 implementation. Per Guido's comments, the generator throw()
Phillip J. Eby <pje@telecommunity.com>
parents:
33715
diff
changeset
|
70 PyAPI_FUNC(PyObject *) PyEval_EvalFrameEx(struct _frame *f, int exc); |
|
27712
16856c9514e0
Small function call optimization and special build option for call stats.
Jeremy Hylton <jeremy@alum.mit.edu>
parents:
25108
diff
changeset
|
71 |
|
25108
3a26e352f0a6
replace thread state objects' ticker and checkinterval fields with two
Skip Montanaro <skip@pobox.com>
parents:
24752
diff
changeset
|
72 /* this used to be handled on a per-thread basis - now just two globals */ |
|
3a26e352f0a6
replace thread state objects' ticker and checkinterval fields with two
Skip Montanaro <skip@pobox.com>
parents:
24752
diff
changeset
|
73 PyAPI_DATA(volatile int) _Py_Ticker; |
|
3a26e352f0a6
replace thread state objects' ticker and checkinterval fields with two
Skip Montanaro <skip@pobox.com>
parents:
24752
diff
changeset
|
74 PyAPI_DATA(int) _Py_CheckInterval; |
|
3a26e352f0a6
replace thread state objects' ticker and checkinterval fields with two
Skip Montanaro <skip@pobox.com>
parents:
24752
diff
changeset
|
75 |
| 926 | 76 /* Interface for threads. |
| 77 | |
| 78 A module that plans to do a blocking system call (or something else | |
| 79 that lasts a long time and doesn't touch Python data) can allow other | |
| 80 threads to run as follows: | |
| 81 | |
| 82 ...preparations here... | |
|
2129
05360cd616ae
The great renaming, phase two: all header files have been updated to
Guido van Rossum <guido@python.org>
parents:
2098
diff
changeset
|
83 Py_BEGIN_ALLOW_THREADS |
| 926 | 84 ...blocking system call here... |
|
2129
05360cd616ae
The great renaming, phase two: all header files have been updated to
Guido van Rossum <guido@python.org>
parents:
2098
diff
changeset
|
85 Py_END_ALLOW_THREADS |
|
2043
4ebee904924e
Lots of small things, see ChangeLog
Guido van Rossum <guido@python.org>
parents:
1906
diff
changeset
|
86 ...interpret result here... |
| 926 | 87 |
|
2129
05360cd616ae
The great renaming, phase two: all header files have been updated to
Guido van Rossum <guido@python.org>
parents:
2098
diff
changeset
|
88 The Py_BEGIN_ALLOW_THREADS/Py_END_ALLOW_THREADS pair expands to a |
|
05360cd616ae
The great renaming, phase two: all header files have been updated to
Guido van Rossum <guido@python.org>
parents:
2098
diff
changeset
|
89 {}-surrounded block. |
| 926 | 90 To leave the block in the middle (e.g., with return), you must insert |
|
14599
49a041330461
RET_SAVE references should be Py_BLOCK_THREADS references
Skip Montanaro <skip@pobox.com>
parents:
14375
diff
changeset
|
91 a line containing Py_BLOCK_THREADS before the return, e.g. |
| 926 | 92 |
| 93 if (...premature_exit...) { | |
|
2129
05360cd616ae
The great renaming, phase two: all header files have been updated to
Guido van Rossum <guido@python.org>
parents:
2098
diff
changeset
|
94 Py_BLOCK_THREADS |
|
05360cd616ae
The great renaming, phase two: all header files have been updated to
Guido van Rossum <guido@python.org>
parents:
2098
diff
changeset
|
95 PyErr_SetFromErrno(PyExc_IOError); |
| 926 | 96 return NULL; |
| 97 } | |
| 98 | |
| 99 An alternative is: | |
| 100 | |
|
2129
05360cd616ae
The great renaming, phase two: all header files have been updated to
Guido van Rossum <guido@python.org>
parents:
2098
diff
changeset
|
101 Py_BLOCK_THREADS |
| 926 | 102 if (...premature_exit...) { |
|
2129
05360cd616ae
The great renaming, phase two: all header files have been updated to
Guido van Rossum <guido@python.org>
parents:
2098
diff
changeset
|
103 PyErr_SetFromErrno(PyExc_IOError); |
| 926 | 104 return NULL; |
| 105 } | |
|
2129
05360cd616ae
The great renaming, phase two: all header files have been updated to
Guido van Rossum <guido@python.org>
parents:
2098
diff
changeset
|
106 Py_UNBLOCK_THREADS |
| 926 | 107 |
| 108 For convenience, that the value of 'errno' is restored across | |
|
14599
49a041330461
RET_SAVE references should be Py_BLOCK_THREADS references
Skip Montanaro <skip@pobox.com>
parents:
14375
diff
changeset
|
109 Py_END_ALLOW_THREADS and Py_BLOCK_THREADS. |
| 926 | 110 |
|
2129
05360cd616ae
The great renaming, phase two: all header files have been updated to
Guido van Rossum <guido@python.org>
parents:
2098
diff
changeset
|
111 WARNING: NEVER NEST CALLS TO Py_BEGIN_ALLOW_THREADS AND |
|
05360cd616ae
The great renaming, phase two: all header files have been updated to
Guido van Rossum <guido@python.org>
parents:
2098
diff
changeset
|
112 Py_END_ALLOW_THREADS!!! |
| 926 | 113 |
|
2129
05360cd616ae
The great renaming, phase two: all header files have been updated to
Guido van Rossum <guido@python.org>
parents:
2098
diff
changeset
|
114 The function PyEval_InitThreads() should be called only from |
| 926 | 115 initthread() in "threadmodule.c". |
| 116 | |
| 117 Note that not yet all candidates have been converted to use this | |
| 118 mechanism! | |
| 119 */ | |
| 120 | |
|
24752
c1eb668525e1
Excise DL_EXPORT from Include.
Mark Hammond <mhammond@skippinet.com.au>
parents:
18933
diff
changeset
|
121 PyAPI_FUNC(PyThreadState *) PyEval_SaveThread(void); |
|
c1eb668525e1
Excise DL_EXPORT from Include.
Mark Hammond <mhammond@skippinet.com.au>
parents:
18933
diff
changeset
|
122 PyAPI_FUNC(void) PyEval_RestoreThread(PyThreadState *); |
| 926 | 123 |
|
1746
1940892d2fe3
Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents:
1391
diff
changeset
|
124 #ifdef WITH_THREAD |
| 926 | 125 |
|
33715
a46b76eb9053
SF patch 1044089: New C API function PyEval_ThreadsInitialized(), by Nick
Tim Peters <tim.peters@gmail.com>
parents:
32421
diff
changeset
|
126 PyAPI_FUNC(int) PyEval_ThreadsInitialized(void); |
|
24752
c1eb668525e1
Excise DL_EXPORT from Include.
Mark Hammond <mhammond@skippinet.com.au>
parents:
18933
diff
changeset
|
127 PyAPI_FUNC(void) PyEval_InitThreads(void); |
|
c1eb668525e1
Excise DL_EXPORT from Include.
Mark Hammond <mhammond@skippinet.com.au>
parents:
18933
diff
changeset
|
128 PyAPI_FUNC(void) PyEval_AcquireLock(void); |
|
c1eb668525e1
Excise DL_EXPORT from Include.
Mark Hammond <mhammond@skippinet.com.au>
parents:
18933
diff
changeset
|
129 PyAPI_FUNC(void) PyEval_ReleaseLock(void); |
|
c1eb668525e1
Excise DL_EXPORT from Include.
Mark Hammond <mhammond@skippinet.com.au>
parents:
18933
diff
changeset
|
130 PyAPI_FUNC(void) PyEval_AcquireThread(PyThreadState *tstate); |
|
c1eb668525e1
Excise DL_EXPORT from Include.
Mark Hammond <mhammond@skippinet.com.au>
parents:
18933
diff
changeset
|
131 PyAPI_FUNC(void) PyEval_ReleaseThread(PyThreadState *tstate); |
|
c1eb668525e1
Excise DL_EXPORT from Include.
Mark Hammond <mhammond@skippinet.com.au>
parents:
18933
diff
changeset
|
132 PyAPI_FUNC(void) PyEval_ReInitThreads(void); |
|
5846
852a1fa62a7c
PyEval_SaveThread() and PyEval_RestoreThread() now return/take a
Guido van Rossum <guido@python.org>
parents:
5604
diff
changeset
|
133 |
|
2129
05360cd616ae
The great renaming, phase two: all header files have been updated to
Guido van Rossum <guido@python.org>
parents:
2098
diff
changeset
|
134 #define Py_BEGIN_ALLOW_THREADS { \ |
|
5846
852a1fa62a7c
PyEval_SaveThread() and PyEval_RestoreThread() now return/take a
Guido van Rossum <guido@python.org>
parents:
5604
diff
changeset
|
135 PyThreadState *_save; \ |
|
2129
05360cd616ae
The great renaming, phase two: all header files have been updated to
Guido van Rossum <guido@python.org>
parents:
2098
diff
changeset
|
136 _save = PyEval_SaveThread(); |
|
05360cd616ae
The great renaming, phase two: all header files have been updated to
Guido van Rossum <guido@python.org>
parents:
2098
diff
changeset
|
137 #define Py_BLOCK_THREADS PyEval_RestoreThread(_save); |
|
05360cd616ae
The great renaming, phase two: all header files have been updated to
Guido van Rossum <guido@python.org>
parents:
2098
diff
changeset
|
138 #define Py_UNBLOCK_THREADS _save = PyEval_SaveThread(); |
|
05360cd616ae
The great renaming, phase two: all header files have been updated to
Guido van Rossum <guido@python.org>
parents:
2098
diff
changeset
|
139 #define Py_END_ALLOW_THREADS PyEval_RestoreThread(_save); \ |
| 926 | 140 } |
| 141 | |
|
1746
1940892d2fe3
Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents:
1391
diff
changeset
|
142 #else /* !WITH_THREAD */ |
| 926 | 143 |
|
2129
05360cd616ae
The great renaming, phase two: all header files have been updated to
Guido van Rossum <guido@python.org>
parents:
2098
diff
changeset
|
144 #define Py_BEGIN_ALLOW_THREADS { |
|
05360cd616ae
The great renaming, phase two: all header files have been updated to
Guido van Rossum <guido@python.org>
parents:
2098
diff
changeset
|
145 #define Py_BLOCK_THREADS |
|
05360cd616ae
The great renaming, phase two: all header files have been updated to
Guido van Rossum <guido@python.org>
parents:
2098
diff
changeset
|
146 #define Py_UNBLOCK_THREADS |
|
05360cd616ae
The great renaming, phase two: all header files have been updated to
Guido van Rossum <guido@python.org>
parents:
2098
diff
changeset
|
147 #define Py_END_ALLOW_THREADS } |
| 926 | 148 |
|
1746
1940892d2fe3
Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents:
1391
diff
changeset
|
149 #endif /* !WITH_THREAD */ |
|
1329
519c25039c6a
* Added support for X11 modules.
Guido van Rossum <guido@python.org>
parents:
1293
diff
changeset
|
150 |
|
36501
7fdc639bc5b4
Merge ssize_t branch.
Martin v. Löwis <martin@v.loewis.de>
parents:
35999
diff
changeset
|
151 PyAPI_FUNC(int) _PyEval_SliceIndex(PyObject *, Py_ssize_t *); |
| 12613 | 152 |
| 153 | |
|
1329
519c25039c6a
* Added support for X11 modules.
Guido van Rossum <guido@python.org>
parents:
1293
diff
changeset
|
154 #ifdef __cplusplus |
|
519c25039c6a
* Added support for X11 modules.
Guido van Rossum <guido@python.org>
parents:
1293
diff
changeset
|
155 } |
|
519c25039c6a
* Added support for X11 modules.
Guido van Rossum <guido@python.org>
parents:
1293
diff
changeset
|
156 #endif |
|
519c25039c6a
* Added support for X11 modules.
Guido van Rossum <guido@python.org>
parents:
1293
diff
changeset
|
157 #endif /* !Py_CEVAL_H */ |
