summaryrefslogtreecommitdiffstats
path: root/Include/internal
diff options
context:
space:
mode:
authorPablo Galindo <Pablogsal@gmail.com>2021-05-03 14:50:24 (GMT)
committerGitHub <noreply@github.com>2021-05-03 14:50:24 (GMT)
commitc2931d31f8ba7cf10044de276018c713ffc73592 (patch)
tree6224fcc17abe3498f747e3110f9c3f99a8cb6597 /Include/internal
parent440c0257262fec6f519bb81e49f1a4f341aeed66 (diff)
downloadcpython-c2931d31f8ba7cf10044de276018c713ffc73592.zip
cpython-c2931d31f8ba7cf10044de276018c713ffc73592.tar.gz
cpython-c2931d31f8ba7cf10044de276018c713ffc73592.tar.bz2
bpo-43916: Move the _PyStructSequence_InitType function to the internal API (GH-25854)
Diffstat (limited to 'Include/internal')
-rw-r--r--Include/internal/pycore_structseq.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/Include/internal/pycore_structseq.h b/Include/internal/pycore_structseq.h
new file mode 100644
index 0000000..84c8d47
--- /dev/null
+++ b/Include/internal/pycore_structseq.h
@@ -0,0 +1,21 @@
+#ifndef Py_INTERNAL_STRUCTSEQ_H
+#define Py_INTERNAL_STRUCTSEQ_H
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#ifndef Py_BUILD_CORE
+# error "this header requires Py_BUILD_CORE define"
+#endif
+
+
+PyAPI_FUNC(int) _PyStructSequence_InitType(
+ PyTypeObject *type,
+ PyStructSequence_Desc *desc,
+ unsigned long tp_flags);
+
+
+#ifdef __cplusplus
+}
+#endif
+#endif /* !Py_INTERNAL_STRUCTSEQ_H */