Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(68535)

Side by Side Diff: Modules/_ctypes/ctypes.h

Issue 10915: Make the PyGILState API compatible with multiple interpreters
Patch Set: Created 8 years, 7 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « Modules/_ctypes/callbacks.c ('k') | Modules/_threadmodule.c » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #if defined (__SVR4) && defined (__sun) 1 #if defined (__SVR4) && defined (__sun)
2 # include <alloca.h> 2 # include <alloca.h>
3 #endif 3 #endif
4 4
5 #ifndef MS_WIN32 5 #ifndef MS_WIN32
6 #define max(a, b) ((a) > (b) ? (a) : (b)) 6 #define max(a, b) ((a) > (b) ? (a) : (b))
7 #define min(a, b) ((a) < (b) ? (a) : (b)) 7 #define min(a, b) ((a) < (b) ? (a) : (b))
8 8
9 #define PARAMFLAG_FIN 0x1 9 #define PARAMFLAG_FIN 0x1
10 #define PARAMFLAG_FOUT 0x2 10 #define PARAMFLAG_FOUT 0x2
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 PyObject *b_objects; /* dictionary of references we need to keep, or Py_None */ 55 PyObject *b_objects; /* dictionary of references we need to keep, or Py_None */
56 union value b_value; 56 union value b_value;
57 }; 57 };
58 58
59 typedef struct { 59 typedef struct {
60 PyObject_VAR_HEAD 60 PyObject_VAR_HEAD
61 ffi_closure *pcl_write; /* the C callable, writeable */ 61 ffi_closure *pcl_write; /* the C callable, writeable */
62 void *pcl_exec; /* the C callable, executable */ 62 void *pcl_exec; /* the C callable, executable */
63 ffi_cif cif; 63 ffi_cif cif;
64 int flags; 64 int flags;
65 PyInterpreterState *interp;
65 PyObject *converters; 66 PyObject *converters;
66 PyObject *callable; 67 PyObject *callable;
67 PyObject *restype; 68 PyObject *restype;
68 SETFUNC setfunc; 69 SETFUNC setfunc;
69 ffi_type *ffi_restype; 70 ffi_type *ffi_restype;
70 ffi_type *atypes[1]; 71 ffi_type *atypes[1];
71 } CThunkObject; 72 } CThunkObject;
72 extern PyTypeObject PyCThunk_Type; 73 extern PyTypeObject PyCThunk_Type;
73 #define CThunk_CheckExact(v) ((v)->ob_type == &PyCThunk_Type) 74 #define CThunk_CheckExact(v) ((v)->ob_type == &PyCThunk_Type)
74 75
(...skipping 289 matching lines...) Expand 10 before | Expand all | Expand 10 after
364 365
365 #ifdef MS_WIN32 366 #ifdef MS_WIN32
366 extern PyObject *ComError; 367 extern PyObject *ComError;
367 #endif 368 #endif
368 369
369 /* 370 /*
370 Local Variables: 371 Local Variables:
371 compile-command: "python setup.py -q build install --home ~" 372 compile-command: "python setup.py -q build install --home ~"
372 End: 373 End:
373 */ 374 */
OLDNEW
« no previous file with comments | « Modules/_ctypes/callbacks.c ('k') | Modules/_threadmodule.c » ('j') | no next file with comments »

RSS Feeds Recent Issues | This issue
This is Rietveld 894c83f36cb7+