diff options
author | Neil Schemenauer <nascheme@enme.ucalgary.ca> | 2002-05-04 05:36:06 (GMT) |
---|---|---|
committer | Neil Schemenauer <nascheme@enme.ucalgary.ca> | 2002-05-04 05:36:06 (GMT) |
commit | b1094f0b1b1dbc3b2d8f779ba53dc4e2093baca6 (patch) | |
tree | f6f2ecaa6a14b0f328fb1f6040518d7612824fe0 /Include | |
parent | 2880ae53e6e3c1b92baa49d49cd53da7aeef5f44 (diff) | |
download | cpython-b1094f0b1b1dbc3b2d8f779ba53dc4e2093baca6.zip cpython-b1094f0b1b1dbc3b2d8f779ba53dc4e2093baca6.tar.gz cpython-b1094f0b1b1dbc3b2d8f779ba53dc4e2093baca6.tar.bz2 |
_PyGC_generation0 is now a pointer
Diffstat (limited to 'Include')
-rw-r--r-- | Include/objimpl.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Include/objimpl.h b/Include/objimpl.h index c293822..e037322 100644 --- a/Include/objimpl.h +++ b/Include/objimpl.h @@ -258,7 +258,7 @@ typedef union _gc_head { long double dummy; /* force worst-case alignment */ } PyGC_Head; -extern PyGC_Head _PyGC_generation0; +extern PyGC_Head *_PyGC_generation0; #define _Py_AS_GC(o) ((PyGC_Head *)(o)-1) @@ -268,10 +268,10 @@ extern PyGC_Head _PyGC_generation0; PyGC_Head *g = _Py_AS_GC(o); \ if (g->gc.gc_next != NULL) \ Py_FatalError("GC object already in linked list"); \ - g->gc.gc_next = &_PyGC_generation0; \ - g->gc.gc_prev = _PyGC_generation0.gc.gc_prev; \ + g->gc.gc_next = _PyGC_generation0; \ + g->gc.gc_prev = _PyGC_generation0->gc.gc_prev; \ g->gc.gc_prev->gc.gc_next = g; \ - _PyGC_generation0.gc.gc_prev = g; \ + _PyGC_generation0->gc.gc_prev = g; \ } while (0); /* Tell the GC to stop tracking this object. */ |