INADA Naoki <[email protected]> added the comment:
Make sense.
Then, what about using anonymous struct to make GC code more readable?
typedef union _gc_head {
struct {
union _gc_head *gc_next;
union _gc_head *gc_prev;
Py_ssize_t gc_refs;
- } gc;
+ };
double dummy; /* force worst-case alignment */
} PyGC_Head;
All code like g->gc.gc_next will be like g->gc_next.
----------
_______________________________________
Python tracker <[email protected]>
<https://bugs.python.org/issue33589>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com