Author vstinner
Recipients atuining, eric.snow, izbyshev, lemburg, serhiy.storchaka, tim.peters, vstinner
Date 2018-11-13.08:07:49
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1542096469.19.0.788709270274.issue35081@psf.upfronthosting.co.za>
In-reply-to
Content
Status: only pyport. and tupleobject.h use Py_BUILD_CORE, and only tupleobject.h uses "#ifdef Py_BUILD_CORE" (contains code specific to internals).

$ grep Py_BUILD_CORE Include/*.h
Include/pyport.h:#               if defined(Py_BUILD_CORE) || defined(Py_BUILD_CORE_BUILTIN)
Include/pyport.h:#               else /* Py_BUILD_CORE */
Include/pyport.h:#               endif /* Py_BUILD_CORE */
Include/pyport.h:#if defined(Py_BUILD_CORE) || defined(Py_BUILD_CORE_BUILTIN)
Include/pyport.h:#endif /* Py_BUILD_CORE */
Include/tupleobject.h:#ifdef Py_BUILD_CORE

tupleobject.c:

#ifdef Py_BUILD_CORE
#  define _PyTuple_ITEMS(op) ((((PyTupleObject *)(op))->ob_item))
#endif

I added this macro in bpo-35199, to prepare the C code for a new C API hiding implementation details: see bpo-35206.
History
Date User Action Args
2018-11-13 08:07:49vstinnersetrecipients: + vstinner, lemburg, tim.peters, atuining, eric.snow, serhiy.storchaka, izbyshev
2018-11-13 08:07:49vstinnersetmessageid: <1542096469.19.0.788709270274.issue35081@psf.upfronthosting.co.za>
2018-11-13 08:07:49vstinnerlinkissue35081 messages
2018-11-13 08:07:49vstinnercreate