mirror of
https://github.com/python/cpython.git
synced 2024-11-23 09:54:58 +08:00
bpo-35081: Add pycore_ prefix to internal header files (GH-10263)
* Rename Include/internal/ header files: * pyatomic.h -> pycore_atomic.h * ceval.h -> pycore_ceval.h * condvar.h -> pycore_condvar.h * context.h -> pycore_context.h * pygetopt.h -> pycore_getopt.h * gil.h -> pycore_gil.h * hamt.h -> pycore_hamt.h * hash.h -> pycore_hash.h * mem.h -> pycore_mem.h * pystate.h -> pycore_state.h * warnings.h -> pycore_warnings.h * PCbuild project, Makefile.pre.in, Modules/Setup: add the Include/internal/ directory to the search paths of header files. * Update includes. For example, replace #include "internal/mem.h" with #include "pycore_mem.h".
This commit is contained in:
parent
3a228ab17c
commit
27e2d1f219
@ -4,7 +4,7 @@
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#include "internal/pyatomic.h"
|
||||
#include "pycore_atomic.h"
|
||||
#include "pythread.h"
|
||||
|
||||
struct _pending_calls {
|
||||
@ -25,7 +25,7 @@ struct _pending_calls {
|
||||
int last;
|
||||
};
|
||||
|
||||
#include "internal/gil.h"
|
||||
#include "pycore_gil.h"
|
||||
|
||||
struct _ceval_runtime_state {
|
||||
int recursion_limit;
|
@ -2,7 +2,7 @@
|
||||
#define Py_INTERNAL_CONTEXT_H
|
||||
|
||||
|
||||
#include "internal/hamt.h"
|
||||
#include "pycore_hamt.h"
|
||||
|
||||
|
||||
struct _pycontextobject {
|
@ -4,8 +4,8 @@
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#include "internal/condvar.h"
|
||||
#include "internal/pyatomic.h"
|
||||
#include "pycore_condvar.h"
|
||||
#include "pycore_atomic.h"
|
||||
|
||||
#ifndef Py_HAVE_CONDVAR
|
||||
# error You need either a POSIX-compatible or a Windows system!
|
@ -7,9 +7,9 @@ extern "C" {
|
||||
#include "pystate.h"
|
||||
#include "pythread.h"
|
||||
|
||||
#include "internal/mem.h"
|
||||
#include "internal/ceval.h"
|
||||
#include "internal/warnings.h"
|
||||
#include "pycore_mem.h"
|
||||
#include "pycore_ceval.h"
|
||||
#include "pycore_warnings.h"
|
||||
|
||||
|
||||
/* GIL state */
|
@ -250,7 +250,7 @@ PyAPI_FUNC(PyInterpreterState *) _PyInterpreterState_Get(void);
|
||||
#endif
|
||||
#ifdef Py_BUILD_CORE
|
||||
/* Macro which should only be used for performance critical code.
|
||||
Need "#include "internal/pystate.h". See also _PyInterpreterState_Get()
|
||||
Need "#include "pycore_state.h". See also _PyInterpreterState_Get()
|
||||
and _PyGILState_GetInterpreterStateUnsafe(). */
|
||||
# define _PyInterpreterState_GET_UNSAFE() (PyThreadState_GET()->interp)
|
||||
#endif
|
||||
|
@ -91,7 +91,7 @@ CONFIGURE_LDFLAGS= @LDFLAGS@
|
||||
# command line to append to these values without stomping the pre-set
|
||||
# values.
|
||||
PY_CFLAGS= $(BASECFLAGS) $(OPT) $(CONFIGURE_CFLAGS) $(CFLAGS) $(EXTRA_CFLAGS)
|
||||
PY_CFLAGS_NODIST=$(CONFIGURE_CFLAGS_NODIST) $(CFLAGS_NODIST)
|
||||
PY_CFLAGS_NODIST=$(CONFIGURE_CFLAGS_NODIST) $(CFLAGS_NODIST) -I$(srcdir)/Include/internal
|
||||
# Both CPPFLAGS and LDFLAGS need to contain the shell's value for setup.py to
|
||||
# be able to build extension modules using the directories specified in the
|
||||
# environment variables
|
||||
@ -1025,14 +1025,14 @@ PYTHON_HEADERS= \
|
||||
pyconfig.h \
|
||||
$(PARSER_HEADERS) \
|
||||
$(srcdir)/Include/Python-ast.h \
|
||||
$(srcdir)/Include/internal/ceval.h \
|
||||
$(srcdir)/Include/internal/gil.h \
|
||||
$(srcdir)/Include/internal/mem.h \
|
||||
$(srcdir)/Include/internal/pyatomic.h \
|
||||
$(srcdir)/Include/internal/pygetopt.h \
|
||||
$(srcdir)/Include/internal/pystate.h \
|
||||
$(srcdir)/Include/internal/context.h \
|
||||
$(srcdir)/Include/internal/warnings.h \
|
||||
$(srcdir)/Include/internal/pycore_atomic.h \
|
||||
$(srcdir)/Include/internal/pycore_ceval.h \
|
||||
$(srcdir)/Include/internal/pycore_context.h \
|
||||
$(srcdir)/Include/internal/pycore_getopt.h \
|
||||
$(srcdir)/Include/internal/pycore_gil.h \
|
||||
$(srcdir)/Include/internal/pycore_mem.h \
|
||||
$(srcdir)/Include/internal/pycore_state.h \
|
||||
$(srcdir)/Include/internal/pycore_warnings.h \
|
||||
$(DTRACE_HEADERS)
|
||||
|
||||
$(LIBRARY_OBJS) $(MODOBJS) Programs/python.o: $(PYTHON_HEADERS)
|
||||
|
@ -101,29 +101,29 @@ PYTHONPATH=$(COREPYTHONPATH)
|
||||
# This only contains the minimal set of modules required to run the
|
||||
# setup.py script in the root of the Python source tree.
|
||||
|
||||
posix -DPy_BUILD_CORE posixmodule.c # posix (UNIX) system calls
|
||||
posix -DPy_BUILD_CORE -I$(srcdir)/Include/internal posixmodule.c # posix (UNIX) system calls
|
||||
errno errnomodule.c # posix (UNIX) errno values
|
||||
pwd pwdmodule.c # this is needed to find out the user's home dir
|
||||
# if $HOME is not set
|
||||
_sre _sre.c # Fredrik Lundh's new regular expressions
|
||||
_codecs _codecsmodule.c # access to the builtin codecs and codec registry
|
||||
_weakref _weakref.c # weak references
|
||||
_functools -DPy_BUILD_CORE _functoolsmodule.c # Tools for working with functions and callable objects
|
||||
_functools -DPy_BUILD_CORE -I$(srcdir)/Include/internal _functoolsmodule.c # Tools for working with functions and callable objects
|
||||
_operator _operator.c # operator.add() and similar goodies
|
||||
_collections _collectionsmodule.c # Container types
|
||||
_abc _abc.c # Abstract base classes
|
||||
itertools itertoolsmodule.c # Functions creating iterators for efficient looping
|
||||
atexit atexitmodule.c # Register functions to be run at interpreter-shutdown
|
||||
_signal -DPy_BUILD_CORE signalmodule.c
|
||||
_signal -DPy_BUILD_CORE -I$(srcdir)/Include/internal signalmodule.c
|
||||
_stat _stat.c # stat.h interface
|
||||
time -DPy_BUILD_CORE timemodule.c # -lm # time operations and variables
|
||||
_thread -DPy_BUILD_CORE _threadmodule.c # low-level threading interface
|
||||
time -DPy_BUILD_CORE -I$(srcdir)/Include/internal timemodule.c # -lm # time operations and variables
|
||||
_thread -DPy_BUILD_CORE -I$(srcdir)/Include/internal _threadmodule.c # low-level threading interface
|
||||
|
||||
# access to ISO C locale support
|
||||
_locale _localemodule.c # -lintl
|
||||
|
||||
# Standard I/O baseline
|
||||
_io -DPy_BUILD_CORE -I$(srcdir)/Modules/_io _io/_iomodule.c _io/iobase.c _io/fileio.c _io/bytesio.c _io/bufferedio.c _io/textio.c _io/stringio.c
|
||||
_io -DPy_BUILD_CORE -I$(srcdir)/Include/internal -I$(srcdir)/Modules/_io _io/_iomodule.c _io/iobase.c _io/fileio.c _io/bytesio.c _io/bufferedio.c _io/textio.c _io/stringio.c
|
||||
|
||||
# faulthandler module
|
||||
faulthandler faulthandler.c
|
||||
|
@ -1,7 +1,7 @@
|
||||
|
||||
#include "Python.h"
|
||||
#include "internal/mem.h"
|
||||
#include "internal/pystate.h"
|
||||
#include "pycore_mem.h"
|
||||
#include "pycore_state.h"
|
||||
#include "structmember.h"
|
||||
|
||||
/* _functools module written and maintained
|
||||
|
@ -9,7 +9,7 @@
|
||||
|
||||
#define PY_SSIZE_T_CLEAN
|
||||
#include "Python.h"
|
||||
#include "internal/pystate.h"
|
||||
#include "pycore_state.h"
|
||||
#include "structmember.h"
|
||||
#include "pythread.h"
|
||||
#include "_iomodule.h"
|
||||
|
@ -3,7 +3,7 @@
|
||||
/* Interface to Sjoerd's portable C thread library */
|
||||
|
||||
#include "Python.h"
|
||||
#include "internal/pystate.h"
|
||||
#include "pycore_state.h"
|
||||
#include "structmember.h" /* offsetof */
|
||||
#include "pythread.h"
|
||||
|
||||
|
@ -4,7 +4,7 @@
|
||||
|
||||
#include "Python.h"
|
||||
#include "frameobject.h"
|
||||
#include "internal/pystate.h"
|
||||
#include "pycore_state.h"
|
||||
|
||||
|
||||
static char *
|
||||
|
@ -24,9 +24,9 @@
|
||||
*/
|
||||
|
||||
#include "Python.h"
|
||||
#include "internal/context.h"
|
||||
#include "internal/mem.h"
|
||||
#include "internal/pystate.h"
|
||||
#include "pycore_context.h"
|
||||
#include "pycore_mem.h"
|
||||
#include "pycore_state.h"
|
||||
#include "frameobject.h" /* for PyFrame_ClearFreeList */
|
||||
#include "pydtrace.h"
|
||||
#include "pytime.h" /* for _PyTime_GetMonotonicClock() */
|
||||
|
@ -1,7 +1,7 @@
|
||||
/* Return the initial module search path. */
|
||||
|
||||
#include "Python.h"
|
||||
#include "internal/pystate.h"
|
||||
#include "pycore_state.h"
|
||||
#include "osdefs.h"
|
||||
|
||||
#include <sys/types.h>
|
||||
|
@ -2,9 +2,9 @@
|
||||
|
||||
#include "Python.h"
|
||||
#include "osdefs.h"
|
||||
#include "internal/mem.h"
|
||||
#include "internal/pygetopt.h"
|
||||
#include "internal/pystate.h"
|
||||
#include "pycore_mem.h"
|
||||
#include "pycore_getopt.h"
|
||||
#include "pycore_state.h"
|
||||
|
||||
#include <locale.h>
|
||||
|
||||
|
@ -110,7 +110,7 @@ sed -e 's/[ ]*#.*//' -e '/^[ ]*$/d' |
|
||||
rulesf="@rules.$$"
|
||||
trap 'rm -f $rulesf' 0 1 2 3
|
||||
echo "
|
||||
# Rules appended by makedepend
|
||||
# Rules appended by makesetup
|
||||
" >$rulesf
|
||||
DEFS=
|
||||
BUILT=
|
||||
|
@ -32,7 +32,7 @@
|
||||
#else
|
||||
#include "winreparse.h"
|
||||
#endif
|
||||
#include "internal/pystate.h"
|
||||
#include "pycore_state.h"
|
||||
|
||||
/* On android API level 21, 'AT_EACCESS' is not declared although
|
||||
* HAVE_FACCESSAT is defined. */
|
||||
|
@ -4,7 +4,7 @@
|
||||
/* XXX Signals should be recorded per thread, now we have thread state. */
|
||||
|
||||
#include "Python.h"
|
||||
#include "internal/pyatomic.h"
|
||||
#include "pycore_atomic.h"
|
||||
|
||||
#ifndef MS_WINDOWS
|
||||
#include "posixmodule.h"
|
||||
|
@ -1,7 +1,7 @@
|
||||
/* Abstract Object Interface (many thanks to Jim Fulton) */
|
||||
|
||||
#include "Python.h"
|
||||
#include "internal/pystate.h"
|
||||
#include "pycore_state.h"
|
||||
#include <ctype.h>
|
||||
#include "structmember.h" /* we need the offsetof() macro from there */
|
||||
#include "longintrepr.h"
|
||||
|
@ -2,8 +2,8 @@
|
||||
|
||||
#define PY_SSIZE_T_CLEAN
|
||||
#include "Python.h"
|
||||
#include "internal/mem.h"
|
||||
#include "internal/pystate.h"
|
||||
#include "pycore_mem.h"
|
||||
#include "pycore_state.h"
|
||||
#include "structmember.h"
|
||||
#include "bytes_methods.h"
|
||||
#include "bytesobject.h"
|
||||
|
@ -3,8 +3,8 @@
|
||||
#define PY_SSIZE_T_CLEAN
|
||||
|
||||
#include "Python.h"
|
||||
#include "internal/mem.h"
|
||||
#include "internal/pystate.h"
|
||||
#include "pycore_mem.h"
|
||||
#include "pycore_state.h"
|
||||
|
||||
#include "bytes_methods.h"
|
||||
#include "pystrhex.h"
|
||||
|
@ -1,5 +1,5 @@
|
||||
#include "Python.h"
|
||||
#include "internal/pystate.h"
|
||||
#include "pycore_state.h"
|
||||
#include "frameobject.h"
|
||||
|
||||
|
||||
|
@ -1,8 +1,8 @@
|
||||
/* Cell object implementation */
|
||||
|
||||
#include "Python.h"
|
||||
#include "internal/mem.h"
|
||||
#include "internal/pystate.h"
|
||||
#include "pycore_mem.h"
|
||||
#include "pycore_state.h"
|
||||
|
||||
PyObject *
|
||||
PyCell_New(PyObject *obj)
|
||||
|
@ -1,8 +1,8 @@
|
||||
/* Class object implementation (dead now except for methods) */
|
||||
|
||||
#include "Python.h"
|
||||
#include "internal/mem.h"
|
||||
#include "internal/pystate.h"
|
||||
#include "pycore_mem.h"
|
||||
#include "pycore_state.h"
|
||||
#include "structmember.h"
|
||||
|
||||
#define TP_DESCR_GET(t) ((t)->tp_descr_get)
|
||||
|
@ -3,7 +3,7 @@
|
||||
#include "Python.h"
|
||||
#include "code.h"
|
||||
#include "structmember.h"
|
||||
#include "internal/pystate.h"
|
||||
#include "pycore_state.h"
|
||||
|
||||
/* Holder for co_extra information */
|
||||
typedef struct {
|
||||
|
@ -1,7 +1,7 @@
|
||||
/* Descriptors -- a new, flexible way to describe attributes */
|
||||
|
||||
#include "Python.h"
|
||||
#include "internal/pystate.h"
|
||||
#include "pycore_state.h"
|
||||
#include "structmember.h" /* Why is this not included in Python.h? */
|
||||
|
||||
/*[clinic input]
|
||||
|
@ -111,7 +111,7 @@ converting the dict to the combined table.
|
||||
#define PyDict_MINSIZE 8
|
||||
|
||||
#include "Python.h"
|
||||
#include "internal/pystate.h"
|
||||
#include "pycore_state.h"
|
||||
#include "dict-common.h"
|
||||
#include "stringlib/eq.h" /* to get unicode_eq() */
|
||||
|
||||
|
@ -6,8 +6,8 @@
|
||||
|
||||
#define PY_SSIZE_T_CLEAN
|
||||
#include <Python.h>
|
||||
#include "internal/mem.h"
|
||||
#include "internal/pystate.h"
|
||||
#include "pycore_mem.h"
|
||||
#include "pycore_state.h"
|
||||
#include "structmember.h"
|
||||
#include "osdefs.h"
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
/* Frame object implementation */
|
||||
|
||||
#include "Python.h"
|
||||
#include "internal/pystate.h"
|
||||
#include "pycore_state.h"
|
||||
|
||||
#include "code.h"
|
||||
#include "frameobject.h"
|
||||
|
@ -2,8 +2,8 @@
|
||||
/* Function object implementation */
|
||||
|
||||
#include "Python.h"
|
||||
#include "internal/mem.h"
|
||||
#include "internal/pystate.h"
|
||||
#include "pycore_mem.h"
|
||||
#include "pycore_state.h"
|
||||
#include "code.h"
|
||||
#include "structmember.h"
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
/* Generator object implementation */
|
||||
|
||||
#include "Python.h"
|
||||
#include "internal/pystate.h"
|
||||
#include "pycore_state.h"
|
||||
#include "frameobject.h"
|
||||
#include "structmember.h"
|
||||
#include "opcode.h"
|
||||
|
@ -1,8 +1,8 @@
|
||||
/* Iterator objects */
|
||||
|
||||
#include "Python.h"
|
||||
#include "internal/mem.h"
|
||||
#include "internal/pystate.h"
|
||||
#include "pycore_mem.h"
|
||||
#include "pycore_state.h"
|
||||
|
||||
typedef struct {
|
||||
PyObject_HEAD
|
||||
|
@ -1,7 +1,7 @@
|
||||
/* List object implementation */
|
||||
|
||||
#include "Python.h"
|
||||
#include "internal/pystate.h"
|
||||
#include "pycore_state.h"
|
||||
#include "accu.h"
|
||||
|
||||
#ifdef STDC_HEADERS
|
||||
|
@ -1,8 +1,8 @@
|
||||
/* Memoryview object implementation */
|
||||
|
||||
#include "Python.h"
|
||||
#include "internal/mem.h"
|
||||
#include "internal/pystate.h"
|
||||
#include "pycore_mem.h"
|
||||
#include "pycore_state.h"
|
||||
#include "pystrhex.h"
|
||||
#include <stddef.h>
|
||||
|
||||
|
@ -2,8 +2,8 @@
|
||||
/* Method object implementation */
|
||||
|
||||
#include "Python.h"
|
||||
#include "internal/mem.h"
|
||||
#include "internal/pystate.h"
|
||||
#include "pycore_mem.h"
|
||||
#include "pycore_state.h"
|
||||
#include "structmember.h"
|
||||
|
||||
/* Free list for method objects to safe malloc/free overhead
|
||||
|
@ -2,7 +2,7 @@
|
||||
/* Module object implementation */
|
||||
|
||||
#include "Python.h"
|
||||
#include "internal/pystate.h"
|
||||
#include "pycore_state.h"
|
||||
#include "structmember.h"
|
||||
|
||||
static Py_ssize_t max_module_number;
|
||||
|
@ -2,8 +2,8 @@
|
||||
/* Generic object operations; and implementation of None */
|
||||
|
||||
#include "Python.h"
|
||||
#include "internal/pystate.h"
|
||||
#include "internal/context.h"
|
||||
#include "pycore_state.h"
|
||||
#include "pycore_context.h"
|
||||
#include "frameobject.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
@ -1,5 +1,5 @@
|
||||
#include "Python.h"
|
||||
#include "internal/mem.h"
|
||||
#include "pycore_mem.h"
|
||||
|
||||
#include <stdbool.h>
|
||||
|
||||
|
@ -465,7 +465,7 @@ later:
|
||||
*/
|
||||
|
||||
#include "Python.h"
|
||||
#include "internal/pystate.h"
|
||||
#include "pycore_state.h"
|
||||
#include "structmember.h"
|
||||
#include "dict-common.h"
|
||||
#include <stddef.h>
|
||||
|
@ -32,7 +32,7 @@
|
||||
*/
|
||||
|
||||
#include "Python.h"
|
||||
#include "internal/pystate.h"
|
||||
#include "pycore_state.h"
|
||||
#include "structmember.h"
|
||||
|
||||
/* Object used as dummy key to fill deleted entries */
|
||||
|
@ -14,8 +14,8 @@ this type and there is exactly one in existence.
|
||||
*/
|
||||
|
||||
#include "Python.h"
|
||||
#include "internal/mem.h"
|
||||
#include "internal/pystate.h"
|
||||
#include "pycore_mem.h"
|
||||
#include "pycore_state.h"
|
||||
#include "structmember.h"
|
||||
|
||||
static PyObject *
|
||||
|
@ -2,7 +2,7 @@
|
||||
/* Tuple object implementation */
|
||||
|
||||
#include "Python.h"
|
||||
#include "internal/pystate.h"
|
||||
#include "pycore_state.h"
|
||||
#include "accu.h"
|
||||
|
||||
/*[clinic input]
|
||||
|
@ -1,7 +1,7 @@
|
||||
/* Type object implementation */
|
||||
|
||||
#include "Python.h"
|
||||
#include "internal/pystate.h"
|
||||
#include "pycore_state.h"
|
||||
#include "frameobject.h"
|
||||
#include "structmember.h"
|
||||
|
||||
|
@ -40,7 +40,7 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
|
||||
#define PY_SSIZE_T_CLEAN
|
||||
#include "Python.h"
|
||||
#include "internal/pystate.h"
|
||||
#include "pycore_state.h"
|
||||
#include "ucnhash.h"
|
||||
#include "bytes_methods.h"
|
||||
#include "stringlib/eq.h"
|
||||
|
@ -80,7 +80,7 @@
|
||||
|
||||
|
||||
#include "Python.h"
|
||||
#include "internal/pystate.h"
|
||||
#include "pycore_state.h"
|
||||
#include "osdefs.h"
|
||||
#include <wchar.h>
|
||||
|
||||
|
@ -27,7 +27,7 @@
|
||||
</PropertyGroup>
|
||||
<ItemDefinitionGroup>
|
||||
<ClCompile>
|
||||
<AdditionalIncludeDirectories>$(PySourcePath)Include;$(PySourcePath)PC;$(IntDir);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<AdditionalIncludeDirectories>$(PySourcePath)Include;$(PySourcePath)Include\internal;$(PySourcePath)PC;$(IntDir);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<PreprocessorDefinitions>WIN32;$(_PlatformPreprocessorDefinition)$(_DebugPreprocessorDefinition)$(_PydPreprocessorDefinition)%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
|
||||
<Optimization>MaxSpeed</Optimization>
|
||||
@ -194,4 +194,4 @@ public override bool Execute() {
|
||||
<Error Text="Unable to locate signtool.exe. Set /p:SignToolPath and rebuild" Condition="'$(_SignCommand)' == ''" />
|
||||
<Exec Command='$(_SignCommand) "$(TargetPath)" || $(_SignCommand) "$(TargetPath)" || $(_SignCommand) "$(TargetPath)"' ContinueOnError="false" />
|
||||
</Target>
|
||||
</Project>
|
||||
</Project>
|
||||
|
@ -112,15 +112,16 @@
|
||||
<ClInclude Include="..\Include\graminit.h" />
|
||||
<ClInclude Include="..\Include\grammar.h" />
|
||||
<ClInclude Include="..\Include\import.h" />
|
||||
<ClInclude Include="..\Include\internal\ceval.h" />
|
||||
<ClInclude Include="..\Include\internal\condvar.h" />
|
||||
<ClInclude Include="..\Include\internal\context.h" />
|
||||
<ClInclude Include="..\Include\internal\gil.h" />
|
||||
<ClInclude Include="..\Include\internal\hamt.h" />
|
||||
<ClInclude Include="..\Include\internal\mem.h" />
|
||||
<ClInclude Include="..\Include\internal\pyatomic.h" />
|
||||
<ClInclude Include="..\Include\internal\pystate.h" />
|
||||
<ClInclude Include="..\Include\internal\warnings.h" />
|
||||
<ClInclude Include="..\Include\internal\pycore_atomic.h" />
|
||||
<ClInclude Include="..\Include\internal\pycore_ceval.h" />
|
||||
<ClInclude Include="..\Include\internal\pycore_condvar.h" />
|
||||
<ClInclude Include="..\Include\internal\pycore_context.h" />
|
||||
<ClInclude Include="..\Include\internal\pycore_getopt.h" />
|
||||
<ClInclude Include="..\Include\internal\pycore_gil.h" />
|
||||
<ClInclude Include="..\Include\internal\pycore_hamt.h" />
|
||||
<ClInclude Include="..\Include\internal\pycore_mem.h" />
|
||||
<ClInclude Include="..\Include\internal\pycore_state.h" />
|
||||
<ClInclude Include="..\Include\internal\pycore_warnings.h" />
|
||||
<ClInclude Include="..\Include\intrcheck.h" />
|
||||
<ClInclude Include="..\Include\iterobject.h" />
|
||||
<ClInclude Include="..\Include\listobject.h" />
|
||||
|
@ -135,31 +135,34 @@
|
||||
<ClInclude Include="..\Include\import.h">
|
||||
<Filter>Include</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\Include\internal\ceval.h">
|
||||
<ClInclude Include="..\Include\internal\pycore_atomic.h">
|
||||
<Filter>Include</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\Include\internal\condvar.h">
|
||||
<ClInclude Include="..\Include\internal\pycore_ceval.h">
|
||||
<Filter>Include</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\Include\internal\context.h">
|
||||
<ClInclude Include="..\Include\internal\pycore_condvar.h">
|
||||
<Filter>Include</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\Include\internal\gil.h">
|
||||
<ClInclude Include="..\Include\internal\pycore_context.h">
|
||||
<Filter>Include</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\Include\internal\hamt.h">
|
||||
<ClInclude Include="..\Include\internal\pycore_getopt.h">
|
||||
<Filter>Include</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\Include\internal\mem.h">
|
||||
<ClInclude Include="..\Include\internal\pycore_gil.h">
|
||||
<Filter>Include</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\Include\internal\pyatomic.h">
|
||||
<ClInclude Include="..\Include\internal\pycore_hamt.h">
|
||||
<Filter>Include</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\Include\internal\pystate.h">
|
||||
<ClInclude Include="..\Include\internal\pycore_mem.h">
|
||||
<Filter>Include</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\Include\internal\warnings.h">
|
||||
<ClInclude Include="..\Include\internal\pycore_state.h">
|
||||
<Filter>Include</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\Include\internal\pycore_warnings.h">
|
||||
<Filter>Include</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\Include\intrcheck.h">
|
||||
@ -249,9 +252,6 @@
|
||||
<ClInclude Include="..\Include\pyfpe.h">
|
||||
<Filter>Include</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\Include\internal\pygetopt.h">
|
||||
<Filter>Include</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\Include\pylifecycle.h">
|
||||
<Filter>Include</Filter>
|
||||
</ClInclude>
|
||||
|
@ -10,7 +10,7 @@
|
||||
*/
|
||||
|
||||
#include "Python.h"
|
||||
#include "internal/pystate.h"
|
||||
#include "pycore_state.h"
|
||||
#ifdef MS_WINDOWS
|
||||
#define WIN32_LEAN_AND_MEAN
|
||||
#include "windows.h"
|
||||
|
@ -16,8 +16,8 @@
|
||||
#define PGEN
|
||||
|
||||
#include "Python.h"
|
||||
#include "internal/mem.h"
|
||||
#include "internal/pystate.h"
|
||||
#include "pycore_mem.h"
|
||||
#include "pycore_state.h"
|
||||
#include "pgenheaders.h"
|
||||
#include "grammar.h"
|
||||
#include "node.h"
|
||||
|
@ -1,5 +1,5 @@
|
||||
#include "Python.h"
|
||||
#include "internal/pystate.h"
|
||||
#include "pycore_state.h"
|
||||
#include "frameobject.h"
|
||||
#include "clinic/_warnings.c.h"
|
||||
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
#include "Python.h"
|
||||
#include "Python-ast.h"
|
||||
#include "internal/pystate.h"
|
||||
#include "pycore_state.h"
|
||||
|
||||
#include "node.h"
|
||||
#include "code.h"
|
||||
|
@ -10,7 +10,7 @@
|
||||
#define PY_LOCAL_AGGRESSIVE
|
||||
|
||||
#include "Python.h"
|
||||
#include "internal/pystate.h"
|
||||
#include "pycore_state.h"
|
||||
|
||||
#include "code.h"
|
||||
#include "dictobject.h"
|
||||
|
@ -5,7 +5,7 @@
|
||||
#include <stdlib.h>
|
||||
#include <errno.h>
|
||||
|
||||
#include "internal/pyatomic.h"
|
||||
#include "pycore_atomic.h"
|
||||
|
||||
/* First some general settings */
|
||||
|
||||
|
@ -9,7 +9,7 @@ Copyright (c) Corporation for National Research Initiatives.
|
||||
------------------------------------------------------------------------ */
|
||||
|
||||
#include "Python.h"
|
||||
#include "internal/pystate.h"
|
||||
#include "pycore_state.h"
|
||||
#include "ucnhash.h"
|
||||
#include <ctype.h>
|
||||
|
||||
|
@ -41,7 +41,7 @@
|
||||
#define _CONDVAR_IMPL_H_
|
||||
|
||||
#include "Python.h"
|
||||
#include "internal/condvar.h"
|
||||
#include "pycore_condvar.h"
|
||||
|
||||
#ifdef _POSIX_THREADS
|
||||
/*
|
||||
|
@ -1,9 +1,9 @@
|
||||
#include "Python.h"
|
||||
|
||||
#include "structmember.h"
|
||||
#include "internal/pystate.h"
|
||||
#include "internal/context.h"
|
||||
#include "internal/hamt.h"
|
||||
#include "pycore_state.h"
|
||||
#include "pycore_context.h"
|
||||
#include "pycore_hamt.h"
|
||||
|
||||
|
||||
#define CONTEXT_FREELIST_MAXLEN 255
|
||||
|
@ -1,6 +1,6 @@
|
||||
#include "Python.h"
|
||||
#include "internal/mem.h"
|
||||
#include "internal/pystate.h"
|
||||
#include "pycore_mem.h"
|
||||
#include "pycore_state.h"
|
||||
#include <locale.h>
|
||||
#ifdef HAVE_LANGINFO_H
|
||||
# include <langinfo.h>
|
||||
|
@ -2,7 +2,7 @@
|
||||
/* Support for dynamic loading of extension modules */
|
||||
|
||||
#include "Python.h"
|
||||
#include "internal/pystate.h"
|
||||
#include "pycore_state.h"
|
||||
#include "importdl.h"
|
||||
|
||||
#include <sys/types.h>
|
||||
|
@ -2,7 +2,7 @@
|
||||
/* Error handling */
|
||||
|
||||
#include "Python.h"
|
||||
#include "internal/pystate.h"
|
||||
#include "pycore_state.h"
|
||||
|
||||
#ifndef __STDC__
|
||||
#ifndef MS_WINDOWS
|
||||
|
@ -2,7 +2,7 @@
|
||||
/* Python interpreter main program for frozen scripts */
|
||||
|
||||
#include "Python.h"
|
||||
#include "internal/pystate.h"
|
||||
#include "pycore_state.h"
|
||||
#include <locale.h>
|
||||
|
||||
#ifdef MS_WINDOWS
|
||||
|
@ -31,7 +31,7 @@
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include <wchar.h>
|
||||
#include "internal/pygetopt.h"
|
||||
#include "pycore_getopt.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
|
@ -1,8 +1,8 @@
|
||||
#include "Python.h"
|
||||
|
||||
#include "structmember.h"
|
||||
#include "internal/pystate.h"
|
||||
#include "internal/hamt.h"
|
||||
#include "pycore_state.h"
|
||||
#include "pycore_hamt.h"
|
||||
|
||||
/*
|
||||
This file provides an implemention of an immutable mapping using the
|
||||
|
@ -4,9 +4,9 @@
|
||||
|
||||
#include "Python-ast.h"
|
||||
#undef Yield /* undefine macro conflicting with winbase.h */
|
||||
#include "internal/hash.h"
|
||||
#include "internal/mem.h"
|
||||
#include "internal/pystate.h"
|
||||
#include "pycore_hash.h"
|
||||
#include "pycore_mem.h"
|
||||
#include "pycore_state.h"
|
||||
#include "errcode.h"
|
||||
#include "marshal.h"
|
||||
#include "code.h"
|
||||
|
@ -2,8 +2,8 @@
|
||||
|
||||
#include "Python.h"
|
||||
#include "osdefs.h"
|
||||
#include "internal/mem.h"
|
||||
#include "internal/pystate.h"
|
||||
#include "pycore_mem.h"
|
||||
#include "pycore_state.h"
|
||||
#include <wchar.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
@ -4,10 +4,10 @@
|
||||
|
||||
#include "Python-ast.h"
|
||||
#undef Yield /* undefine macro conflicting with winbase.h */
|
||||
#include "internal/context.h"
|
||||
#include "internal/hamt.h"
|
||||
#include "internal/mem.h"
|
||||
#include "internal/pystate.h"
|
||||
#include "pycore_context.h"
|
||||
#include "pycore_hamt.h"
|
||||
#include "pycore_mem.h"
|
||||
#include "pycore_state.h"
|
||||
#include "grammar.h"
|
||||
#include "node.h"
|
||||
#include "token.h"
|
||||
|
@ -2,8 +2,8 @@
|
||||
/* Thread and interpreter state structures and their interfaces */
|
||||
|
||||
#include "Python.h"
|
||||
#include "internal/mem.h"
|
||||
#include "internal/pystate.h"
|
||||
#include "pycore_mem.h"
|
||||
#include "pycore_state.h"
|
||||
|
||||
#define _PyThreadState_SET(value) \
|
||||
_Py_atomic_store_relaxed(&_PyRuntime.gilstate.tstate_current, \
|
||||
|
@ -12,7 +12,7 @@
|
||||
|
||||
#include "Python-ast.h"
|
||||
#undef Yield /* undefine macro conflicting with winbase.h */
|
||||
#include "internal/pystate.h"
|
||||
#include "pycore_state.h"
|
||||
#include "grammar.h"
|
||||
#include "node.h"
|
||||
#include "token.h"
|
||||
|
@ -1,5 +1,5 @@
|
||||
#include "Python.h"
|
||||
#include "internal/pystate.h"
|
||||
#include "pycore_state.h"
|
||||
#ifdef Yield
|
||||
#undef Yield /* undefine conflicting macro from winbase.h */
|
||||
#endif
|
||||
|
@ -15,8 +15,8 @@ Data members:
|
||||
*/
|
||||
|
||||
#include "Python.h"
|
||||
#include "internal/mem.h"
|
||||
#include "internal/pystate.h"
|
||||
#include "pycore_mem.h"
|
||||
#include "pycore_state.h"
|
||||
#include "code.h"
|
||||
#include "frameobject.h"
|
||||
#include "pythread.h"
|
||||
|
@ -6,7 +6,7 @@
|
||||
Stuff shared by all thread_*.h files is collected here. */
|
||||
|
||||
#include "Python.h"
|
||||
#include "internal/pystate.h"
|
||||
#include "pycore_state.h"
|
||||
|
||||
#ifndef _POSIX_THREADS
|
||||
/* This means pthreads are not implemented in libc headers, hence the macro
|
||||
|
@ -2,7 +2,7 @@
|
||||
/* Traceback implementation */
|
||||
|
||||
#include "Python.h"
|
||||
#include "internal/pystate.h"
|
||||
#include "pycore_state.h"
|
||||
|
||||
#include "code.h"
|
||||
#include "frameobject.h"
|
||||
|
Loading…
Reference in New Issue
Block a user