This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients alex, benjamin.peterson, christian.heimes, erlendaasland, miss-islington, petr.viktorin, pitrou, pmpp, rdb, serhiy.storchaka, skrah, vstinner
Date 2022-02-23.14:14:39
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1645625679.3.0.76174254014.issue45459@roundup.psfhosted.org>
In-reply-to
Content
> Include/object.h:109:3: warning: redefinition of typedef 'PyObject' is a C11 feature [-Wtypedef-redefinition]

Oh. I already met this error :-(

That's why I proposed in GH-31201 to move all forward declarations at the top of Python.h to solve such issue.

I wrote GH-31527 to do exactly that: add a new pytypedefs.h header files to move all forward declarations at the top of Python.h.

I didn't move *all* "typedef struct xxx yyy;" there: only the ones which cause interdependencies issues.
History
Date User Action Args
2022-02-23 14:14:39vstinnersetrecipients: + vstinner, pitrou, christian.heimes, benjamin.peterson, alex, petr.viktorin, skrah, pmpp, serhiy.storchaka, rdb, miss-islington, erlendaasland
2022-02-23 14:14:39vstinnersetmessageid: <1645625679.3.0.76174254014.issue45459@roundup.psfhosted.org>
2022-02-23 14:14:39vstinnerlinkissue45459 messages
2022-02-23 14:14:39vstinnercreate