Skip to content

Commit a55c0c5

Browse files
MaxKellermannGirgias
authored andcommitted
Zend/Optimizer/zend_cfg: include cleanup
1 parent b5aeb3a commit a55c0c5

File tree

2 files changed

+11
-5
lines changed

2 files changed

+11
-5
lines changed

Zend/Optimizer/zend_cfg.c

+4-5
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,12 @@
1616
+----------------------------------------------------------------------+
1717
*/
1818

19-
#include "zend_compile.h"
2019
#include "zend_cfg.h"
21-
#include "zend_func_info.h"
22-
#include "zend_worklist.h"
23-
#include "zend_optimizer.h"
20+
#include "zend_func_info.h" // for ZEND_FUNC_FREE_LOOP_VAR
21+
#include "zend_globals.h" // struct _zend_executor_globals
22+
#include "zend_globals_macros.h" // for EG()
2423
#include "zend_optimizer_internal.h"
25-
#include "zend_sort.h"
24+
#include "zend_worklist.h"
2625

2726
static void zend_mark_reachable(zend_op *opcodes, zend_cfg *cfg, zend_basic_block *b) /* {{{ */
2827
{

Zend/Optimizer/zend_cfg.h

+7
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,13 @@
1919
#ifndef ZEND_CFG_H
2020
#define ZEND_CFG_H
2121

22+
#include "zend_portability.h" // for BEGIN_EXTERN_C
23+
24+
#include <stdint.h>
25+
26+
typedef struct _zend_arena zend_arena;
27+
typedef struct _zend_op_array zend_op_array;
28+
2229
/* zend_basic_block.flags */
2330
#define ZEND_BB_START (1<<0) /* first block */
2431
#define ZEND_BB_FOLLOW (1<<1) /* follows the next block */

0 commit comments

Comments
 (0)