mirror of
https://github.com/python/cpython.git
synced 2026-05-06 12:49:07 -04:00
gh-148829: Move sentinelobject.h to Include/cpython/ (#149186)
This C API is not part of the limited C API, so move it to the CPython C API.
This commit is contained in:
+1
-1
@@ -117,7 +117,7 @@ __pragma(warning(disable: 4201))
|
||||
#include "cpython/genobject.h"
|
||||
#include "descrobject.h"
|
||||
#include "genericaliasobject.h"
|
||||
#include "sentinelobject.h"
|
||||
#include "cpython/sentinelobject.h"
|
||||
#include "warnings.h"
|
||||
#include "weakrefobject.h"
|
||||
#include "structseq.h"
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
/* Sentinel object interface */
|
||||
|
||||
#ifndef Py_LIMITED_API
|
||||
#ifndef Py_SENTINELOBJECT_H
|
||||
#define Py_SENTINELOBJECT_H
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#ifndef Py_LIMITED_API
|
||||
PyAPI_DATA(PyTypeObject) PySentinel_Type;
|
||||
|
||||
#define PySentinel_Check(op) Py_IS_TYPE((op), &PySentinel_Type)
|
||||
@@ -14,9 +14,9 @@ PyAPI_DATA(PyTypeObject) PySentinel_Type;
|
||||
PyAPI_FUNC(PyObject *) PySentinel_New(
|
||||
const char *name,
|
||||
const char *module_name);
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
#endif /* !Py_SENTINELOBJECT_H */
|
||||
#endif /* !Py_LIMITED_API */
|
||||
+1
-1
@@ -1241,7 +1241,6 @@ PYTHON_HEADERS= \
|
||||
$(srcdir)/Include/pytypedefs.h \
|
||||
$(srcdir)/Include/rangeobject.h \
|
||||
$(srcdir)/Include/refcount.h \
|
||||
$(srcdir)/Include/sentinelobject.h \
|
||||
$(srcdir)/Include/setobject.h \
|
||||
$(srcdir)/Include/sliceobject.h \
|
||||
$(srcdir)/Include/structmember.h \
|
||||
@@ -1309,6 +1308,7 @@ PYTHON_HEADERS= \
|
||||
$(srcdir)/Include/cpython/pystats.h \
|
||||
$(srcdir)/Include/cpython/pythonrun.h \
|
||||
$(srcdir)/Include/cpython/pythread.h \
|
||||
$(srcdir)/Include/cpython/sentinelobject.h \
|
||||
$(srcdir)/Include/cpython/setobject.h \
|
||||
$(srcdir)/Include/cpython/sliceobject.h \
|
||||
$(srcdir)/Include/cpython/structseq.h \
|
||||
|
||||
@@ -195,6 +195,7 @@
|
||||
<ClInclude Include="..\Include\cpython\pystats.h" />
|
||||
<ClInclude Include="..\Include\cpython\pythonrun.h" />
|
||||
<ClInclude Include="..\Include\cpython\pythread.h" />
|
||||
<ClInclude Include="..\Include\cpython\sentinelobject.h" />
|
||||
<ClInclude Include="..\Include\cpython\setobject.h" />
|
||||
<ClInclude Include="..\Include\cpython\sliceobject.h" />
|
||||
<ClInclude Include="..\Include\cpython\structseq.h" />
|
||||
@@ -384,7 +385,6 @@
|
||||
<ClInclude Include="..\Include\pytypedefs.h" />
|
||||
<ClInclude Include="..\Include\rangeobject.h" />
|
||||
<ClInclude Include="..\Include\refcount.h" />
|
||||
<ClInclude Include="..\Include\sentinelobject.h" />
|
||||
<ClInclude Include="..\Include\setobject.h" />
|
||||
<ClInclude Include="..\Include\sliceobject.h" />
|
||||
<ClInclude Include="..\Include\structmember.h" />
|
||||
|
||||
@@ -222,9 +222,6 @@
|
||||
<ClInclude Include="..\Include\runtime_structs.h">
|
||||
<Filter>Include</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\Include\sentinelobject.h">
|
||||
<Filter>Include</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\Include\setobject.h">
|
||||
<Filter>Include</Filter>
|
||||
</ClInclude>
|
||||
@@ -522,6 +519,9 @@
|
||||
<ClInclude Include="..\Include\cpython\pythread.h">
|
||||
<Filter>Include\cpython</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\Include\cpython\sentinelobject.h">
|
||||
<Filter>Include</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\Include\cpython\setobject.h">
|
||||
<Filter>Include\cpython</Filter>
|
||||
</ClInclude>
|
||||
|
||||
Reference in New Issue
Block a user