Skip to content

Commit c05fa8e

Browse files
committed
fix typedef
1 parent 3001f90 commit c05fa8e

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

Python/flowgraph.c

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ typedef struct _PyCfgBasicblock {
4242
/* The label of this block if it is a jump target, -1 otherwise */
4343
_PyCfgJumpTargetLabel b_label;
4444
/* Exception stack at start of block, used by assembler to create the exception handling table */
45-
struct PyCfgExceptStack *b_exceptstack;
45+
struct _PyCfgExceptStack *b_exceptstack;
4646
/* pointer to an array of instructions, initially NULL */
4747
cfg_instr *b_instr;
4848
/* If b_next is non-NULL, it is a pointer to the next
@@ -71,7 +71,7 @@ typedef struct _PyCfgBasicblock {
7171
} basicblock;
7272

7373

74-
typedef struct _PyCfgBuilder {
74+
struct _PyCfgBuilder {
7575
/* The entryblock, at which control flow begins. All blocks of the
7676
CFG are reachable through the b_next links */
7777
struct _PyCfgBasicblock *g_entryblock;
@@ -82,7 +82,9 @@ typedef struct _PyCfgBuilder {
8282
struct _PyCfgBasicblock *g_curblock;
8383
/* label for the next instruction to be placed */
8484
_PyCfgJumpTargetLabel g_current_label;
85-
} cfg_builder;
85+
};
86+
87+
typedef struct _PyCfgBuilder cfg_builder;
8688

8789
static const jump_target_label NO_LABEL = {-1};
8890

@@ -399,7 +401,7 @@ _PyCfgBuilder_New(void)
399401
}
400402

401403
void
402-
_PyCfgBuilder_Free(cfg_builder* g)
404+
_PyCfgBuilder_Free(cfg_builder *g)
403405
{
404406
if (g == NULL) {
405407
return;
@@ -418,7 +420,7 @@ _PyCfgBuilder_Free(cfg_builder* g)
418420
}
419421

420422
int
421-
_PyCfgBuilder_CheckSize(cfg_builder* g)
423+
_PyCfgBuilder_CheckSize(cfg_builder *g)
422424
{
423425
int nblocks = 0;
424426
for (basicblock *b = g->g_block_list; b != NULL; b = b->b_list) {

0 commit comments

Comments
 (0)