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

Side by Side Diff: Include/objimpl.h

Issue 3871: cross and native build of python for mingw32 with distutils
Patch Set: Created 7 years, 2 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 | « Include/node.h ('k') | Include/osdefs.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* The PyObject_ memory family: high-level object memory interfaces. 1 /* The PyObject_ memory family: high-level object memory interfaces.
2 See pymem.h for the low-level PyMem_ family. 2 See pymem.h for the low-level PyMem_ family.
3 */ 3 */
4 4
5 #ifndef Py_OBJIMPL_H 5 #ifndef Py_OBJIMPL_H
6 #define Py_OBJIMPL_H 6 #define Py_OBJIMPL_H
7 7
8 #include "pymem.h" 8 #include "pymem.h"
9 9
10 #ifdef __cplusplus 10 #ifdef __cplusplus
(...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after
243 243
244 /* GC information is stored BEFORE the object structure. */ 244 /* GC information is stored BEFORE the object structure. */
245 #ifndef Py_LIMITED_API 245 #ifndef Py_LIMITED_API
246 typedef union _gc_head { 246 typedef union _gc_head {
247 struct { 247 struct {
248 union _gc_head *gc_next; 248 union _gc_head *gc_next;
249 union _gc_head *gc_prev; 249 union _gc_head *gc_prev;
250 Py_ssize_t gc_refs; 250 Py_ssize_t gc_refs;
251 } gc; 251 } gc;
252 long double dummy; /* force worst-case alignment */ 252 long double dummy; /* force worst-case alignment */
253 #if defined(__MINGW32__)
254 /* FIXME: what about 64-bit platforms ?
255 * see http://mail.python.org/pipermail/python-dev/2009-July/090724.html
256 */
257 double dummy1;
258 #endif
253 } PyGC_Head; 259 } PyGC_Head;
254 260
255 extern PyGC_Head *_PyGC_generation0; 261 extern PyGC_Head *_PyGC_generation0;
256 262
257 #define _Py_AS_GC(o) ((PyGC_Head *)(o)-1) 263 #define _Py_AS_GC(o) ((PyGC_Head *)(o)-1)
258 264
259 #define _PyGC_REFS_UNTRACKED (-2) 265 #define _PyGC_REFS_UNTRACKED (-2)
260 #define _PyGC_REFS_REACHABLE (-3) 266 #define _PyGC_REFS_REACHABLE (-3)
261 #define _PyGC_REFS_TENTATIVELY_UNREACHABLE (-4) 267 #define _PyGC_REFS_TENTATIVELY_UNREACHABLE (-4)
262 268
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
328 /* Test if a type supports weak references */ 334 /* Test if a type supports weak references */
329 #define PyType_SUPPORTS_WEAKREFS(t) ((t)->tp_weaklistoffset > 0) 335 #define PyType_SUPPORTS_WEAKREFS(t) ((t)->tp_weaklistoffset > 0)
330 336
331 #define PyObject_GET_WEAKREFS_LISTPTR(o) \ 337 #define PyObject_GET_WEAKREFS_LISTPTR(o) \
332 ((PyObject **) (((char *) (o)) + Py_TYPE(o)->tp_weaklistoffset)) 338 ((PyObject **) (((char *) (o)) + Py_TYPE(o)->tp_weaklistoffset))
333 339
334 #ifdef __cplusplus 340 #ifdef __cplusplus
335 } 341 }
336 #endif 342 #endif
337 #endif /* !Py_OBJIMPL_H */ 343 #endif /* !Py_OBJIMPL_H */
OLDNEW
« no previous file with comments | « Include/node.h ('k') | Include/osdefs.h » ('j') | no next file with comments »

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