summaryrefslogtreecommitdiffstats
path: root/Include/internal/pycore_compile.h
diff options
context:
space:
mode:
authorIrit Katriel <1055913+iritkatriel@users.noreply.github.com>2023-11-14 00:31:02 (GMT)
committerGitHub <noreply@github.com>2023-11-14 00:31:02 (GMT)
commit36aab34fab3d05f254fe80ca542c38c5f9ae11fe (patch)
treefa858c70058b86c5dfa1396761c7cb8a4150a2db /Include/internal/pycore_compile.h
parentb28bb130bbc2ad956828819967d83e06d30a65c5 (diff)
downloadcpython-36aab34fab3d05f254fe80ca542c38c5f9ae11fe.zip
cpython-36aab34fab3d05f254fe80ca542c38c5f9ae11fe.tar.gz
cpython-36aab34fab3d05f254fe80ca542c38c5f9ae11fe.tar.bz2
gh-107149: make new opcode util functions private rather than public and unstable (#112042)
Diffstat (limited to 'Include/internal/pycore_compile.h')
-rw-r--r--Include/internal/pycore_compile.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/Include/internal/pycore_compile.h b/Include/internal/pycore_compile.h
index a5a7146..e587075 100644
--- a/Include/internal/pycore_compile.h
+++ b/Include/internal/pycore_compile.h
@@ -102,6 +102,20 @@ int _PyCompile_EnsureArrayLargeEnough(
int _PyCompile_ConstCacheMergeOne(PyObject *const_cache, PyObject **obj);
+
+// Export for '_opcode' extention module
+PyAPI_FUNC(int) _PyCompile_OpcodeIsValid(int opcode);
+PyAPI_FUNC(int) _PyCompile_OpcodeHasArg(int opcode);
+PyAPI_FUNC(int) _PyCompile_OpcodeHasConst(int opcode);
+PyAPI_FUNC(int) _PyCompile_OpcodeHasName(int opcode);
+PyAPI_FUNC(int) _PyCompile_OpcodeHasJump(int opcode);
+PyAPI_FUNC(int) _PyCompile_OpcodeHasFree(int opcode);
+PyAPI_FUNC(int) _PyCompile_OpcodeHasLocal(int opcode);
+PyAPI_FUNC(int) _PyCompile_OpcodeHasExc(int opcode);
+
+PyAPI_FUNC(PyObject*) _PyCompile_GetUnaryIntrinsicName(int index);
+PyAPI_FUNC(PyObject*) _PyCompile_GetBinaryIntrinsicName(int index);
+
/* Access compiler internals for unit testing */
// Export for '_testinternalcapi' shared extension