Zend/Optimizer/zend_cfg: include cleanup

This commit is contained in:
Max Kellermann 2023-01-04 21:42:29 +01:00 committed by George Peter Banyard
parent b5aeb3a4d4
commit a55c0c5fc3
2 changed files with 11 additions and 5 deletions

View file

@ -16,13 +16,12 @@
+----------------------------------------------------------------------+ +----------------------------------------------------------------------+
*/ */
#include "zend_compile.h"
#include "zend_cfg.h" #include "zend_cfg.h"
#include "zend_func_info.h" #include "zend_func_info.h" // for ZEND_FUNC_FREE_LOOP_VAR
#include "zend_worklist.h" #include "zend_globals.h" // struct _zend_executor_globals
#include "zend_optimizer.h" #include "zend_globals_macros.h" // for EG()
#include "zend_optimizer_internal.h" #include "zend_optimizer_internal.h"
#include "zend_sort.h" #include "zend_worklist.h"
static void zend_mark_reachable(zend_op *opcodes, zend_cfg *cfg, zend_basic_block *b) /* {{{ */ static void zend_mark_reachable(zend_op *opcodes, zend_cfg *cfg, zend_basic_block *b) /* {{{ */
{ {

View file

@ -19,6 +19,13 @@
#ifndef ZEND_CFG_H #ifndef ZEND_CFG_H
#define ZEND_CFG_H #define ZEND_CFG_H
#include "zend_portability.h" // for BEGIN_EXTERN_C
#include <stdint.h>
typedef struct _zend_arena zend_arena;
typedef struct _zend_op_array zend_op_array;
/* zend_basic_block.flags */ /* zend_basic_block.flags */
#define ZEND_BB_START (1<<0) /* first block */ #define ZEND_BB_START (1<<0) /* first block */
#define ZEND_BB_FOLLOW (1<<1) /* follows the next block */ #define ZEND_BB_FOLLOW (1<<1) /* follows the next block */