mirror of
https://github.com/python/cpython.git
synced 2025-10-15 03:10:29 +00:00
bpo-35081: Rename internal headers (GH-10275)
Rename Include/internal/ headers: * pycore_hash.h -> pycore_pyhash.h * pycore_lifecycle.h -> pycore_pylifecycle.h * pycore_mem.h -> pycore_pymem.h * pycore_state.h -> pycore_pystate.h Add missing headers to Makefile.pre.in and PCbuild: * pycore_condvar.h. * pycore_hamt.h * pycore_pyhash.h
This commit is contained in:
parent
19c46a4c96
commit
621cebe81b
65 changed files with 105 additions and 98 deletions
|
@ -1,5 +1,5 @@
|
|||
#include "Python.h"
|
||||
#include "pycore_state.h"
|
||||
#include "pycore_pystate.h"
|
||||
#include "frameobject.h"
|
||||
#include "clinic/_warnings.c.h"
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
#include "Python.h"
|
||||
#include <ctype.h>
|
||||
#include "ast.h"
|
||||
#include "pycore_state.h"
|
||||
#include "pycore_pystate.h"
|
||||
|
||||
_Py_IDENTIFIER(__builtins__);
|
||||
_Py_IDENTIFIER(__dict__);
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
#define PY_LOCAL_AGGRESSIVE
|
||||
|
||||
#include "Python.h"
|
||||
#include "pycore_state.h"
|
||||
#include "pycore_pystate.h"
|
||||
|
||||
#include "code.h"
|
||||
#include "dictobject.h"
|
||||
|
|
|
@ -9,7 +9,7 @@ Copyright (c) Corporation for National Research Initiatives.
|
|||
------------------------------------------------------------------------ */
|
||||
|
||||
#include "Python.h"
|
||||
#include "pycore_state.h"
|
||||
#include "pycore_pystate.h"
|
||||
#include "ucnhash.h"
|
||||
#include <ctype.h>
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#include "Python.h"
|
||||
|
||||
#include "structmember.h"
|
||||
#include "pycore_state.h"
|
||||
#include "pycore_pystate.h"
|
||||
#include "pycore_context.h"
|
||||
#include "pycore_hamt.h"
|
||||
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
#include "Python.h"
|
||||
#include "pycore_fileutils.h"
|
||||
#include "pycore_lifecycle.h"
|
||||
#include "pycore_mem.h"
|
||||
#include "pycore_pylifecycle.h"
|
||||
#include "pycore_pymem.h"
|
||||
#include "pycore_pathconfig.h"
|
||||
#include "pycore_state.h"
|
||||
#include "pycore_pystate.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 "pycore_state.h"
|
||||
#include "pycore_pystate.h"
|
||||
#include "importdl.h"
|
||||
|
||||
#include <sys/types.h>
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
/* Error handling */
|
||||
|
||||
#include "Python.h"
|
||||
#include "pycore_state.h"
|
||||
#include "pycore_pystate.h"
|
||||
|
||||
#ifndef __STDC__
|
||||
#ifndef MS_WINDOWS
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
/* Python interpreter main program for frozen scripts */
|
||||
|
||||
#include "Python.h"
|
||||
#include "pycore_state.h"
|
||||
#include "pycore_pystate.h"
|
||||
#include <locale.h>
|
||||
|
||||
#ifdef MS_WINDOWS
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#include "Python.h"
|
||||
|
||||
#include "structmember.h"
|
||||
#include "pycore_state.h"
|
||||
#include "pycore_pystate.h"
|
||||
#include "pycore_hamt.h"
|
||||
|
||||
/*
|
||||
|
|
|
@ -3,10 +3,10 @@
|
|||
#include "Python.h"
|
||||
|
||||
#include "Python-ast.h"
|
||||
#include "pycore_hash.h"
|
||||
#include "pycore_lifecycle.h"
|
||||
#include "pycore_mem.h"
|
||||
#include "pycore_state.h"
|
||||
#include "pycore_pyhash.h"
|
||||
#include "pycore_pylifecycle.h"
|
||||
#include "pycore_pymem.h"
|
||||
#include "pycore_pystate.h"
|
||||
#include "errcode.h"
|
||||
#include "marshal.h"
|
||||
#include "code.h"
|
||||
|
|
|
@ -2,10 +2,10 @@
|
|||
|
||||
#include "Python.h"
|
||||
#include "osdefs.h"
|
||||
#include "pycore_mem.h"
|
||||
#include "pycore_fileutils.h"
|
||||
#include "pycore_pathconfig.h"
|
||||
#include "pycore_state.h"
|
||||
#include "pycore_pymem.h"
|
||||
#include "pycore_pystate.h"
|
||||
#include <wchar.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
|
|
@ -5,10 +5,10 @@
|
|||
#include "Python-ast.h"
|
||||
#include "pycore_context.h"
|
||||
#include "pycore_hamt.h"
|
||||
#include "pycore_lifecycle.h"
|
||||
#include "pycore_mem.h"
|
||||
#include "pycore_pathconfig.h"
|
||||
#include "pycore_state.h"
|
||||
#include "pycore_pylifecycle.h"
|
||||
#include "pycore_pymem.h"
|
||||
#include "pycore_pystate.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 "pycore_mem.h"
|
||||
#include "pycore_state.h"
|
||||
#include "pycore_pymem.h"
|
||||
#include "pycore_pystate.h"
|
||||
|
||||
#define _PyThreadState_SET(value) \
|
||||
_Py_atomic_store_relaxed(&_PyRuntime.gilstate.tstate_current, \
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
#include "Python.h"
|
||||
|
||||
#include "Python-ast.h"
|
||||
#include "pycore_state.h"
|
||||
#include "pycore_pystate.h"
|
||||
#include "grammar.h"
|
||||
#include "node.h"
|
||||
#include "token.h"
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
#include "Python.h"
|
||||
#include "pycore_state.h"
|
||||
#include "pycore_pystate.h"
|
||||
#include "symtable.h"
|
||||
#include "structmember.h"
|
||||
|
||||
|
|
|
@ -17,10 +17,10 @@ Data members:
|
|||
#include "Python.h"
|
||||
#include "code.h"
|
||||
#include "frameobject.h"
|
||||
#include "pycore_lifecycle.h"
|
||||
#include "pycore_mem.h"
|
||||
#include "pycore_pylifecycle.h"
|
||||
#include "pycore_pymem.h"
|
||||
#include "pycore_pathconfig.h"
|
||||
#include "pycore_state.h"
|
||||
#include "pycore_pystate.h"
|
||||
#include "pythread.h"
|
||||
|
||||
#include "osdefs.h"
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
Stuff shared by all thread_*.h files is collected here. */
|
||||
|
||||
#include "Python.h"
|
||||
#include "pycore_state.h"
|
||||
#include "pycore_pystate.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 "pycore_state.h"
|
||||
#include "pycore_pystate.h"
|
||||
|
||||
#include "code.h"
|
||||
#include "frameobject.h"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue