summaryrefslogtreecommitdiffstats
path: root/Include/internal/pycore_compile.h
diff options
context:
space:
mode:
authorIrit Katriel <1055913+iritkatriel@users.noreply.github.com>2023-08-10 12:03:47 (GMT)
committerGitHub <noreply@github.com>2023-08-10 12:03:47 (GMT)
commitbafedfbebd0f21291a7824d54e39ec79f142428b (patch)
tree82ea7fc832b4a1e0e1db11345f0d91ebfb30ec16 /Include/internal/pycore_compile.h
parent494e3d4436774a5ac1a569a635b8c5c881ef1c0c (diff)
downloadcpython-bafedfbebd0f21291a7824d54e39ec79f142428b.zip
cpython-bafedfbebd0f21291a7824d54e39ec79f142428b.tar.gz
cpython-bafedfbebd0f21291a7824d54e39ec79f142428b.tar.bz2
gh-106149: move CFG and basicblock definitions into flowgraph.c, use them as opaque types in compile.c (#107639)
Diffstat (limited to 'Include/internal/pycore_compile.h')
-rw-r--r--Include/internal/pycore_compile.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/Include/internal/pycore_compile.h b/Include/internal/pycore_compile.h
index fa2f640..ad657c0 100644
--- a/Include/internal/pycore_compile.h
+++ b/Include/internal/pycore_compile.h
@@ -54,6 +54,11 @@ typedef struct {
int s_next_free_label; /* next free label id */
} _PyCompile_InstructionSequence;
+int _PyCompile_InstructionSequence_UseLabel(_PyCompile_InstructionSequence *seq, int lbl);
+int _PyCompile_InstructionSequence_Addop(_PyCompile_InstructionSequence *seq,
+ int opcode, int oparg,
+ _PyCompilerSrcLocation loc);
+
typedef struct {
PyObject *u_name;
PyObject *u_qualname; /* dot-separated qualified name (lazy) */