Skip to content

Commit 72dd94e

Browse files
MaxKellermannGirgias
authored andcommitted
Zend/zend_compile: include cleanup
1 parent 29b2dc8 commit 72dd94e

File tree

2 files changed

+18
-20
lines changed

2 files changed

+18
-20
lines changed

Zend/zend_compile.c

+14-14
Original file line numberDiff line numberDiff line change
@@ -18,23 +18,23 @@
1818
+----------------------------------------------------------------------+
1919
*/
2020

21-
#include <zend_language_parser.h>
22-
#include "zend.h"
23-
#include "zend_attributes.h"
2421
#include "zend_compile.h"
22+
#include "zend_API.h" // for zend_get_object_type()
23+
#include "zend_arena.h"
24+
#include "zend_attributes.h"
2525
#include "zend_constants.h"
26-
#include "zend_llist.h"
27-
#include "zend_API.h"
28-
#include "zend_exceptions.h"
29-
#include "zend_interfaces.h"
30-
#include "zend_virtual_cwd.h"
31-
#include "zend_multibyte.h"
32-
#include "zend_language_scanner.h"
33-
#include "zend_inheritance.h"
34-
#include "zend_vm.h"
3526
#include "zend_enum.h"
36-
#include "zend_observer.h"
37-
#include "zend_call_stack.h"
27+
#include "zend_exceptions.h" // for zend_throw_exception_ex()
28+
#include "zend_globals.h" // struct _zend_compiler_globals
29+
#include "zend_globals_macros.h" // for CG()
30+
#include "zend_inheritance.h" // for zend_do_link_class()
31+
#include "zend_language_parser.h"
32+
#include "zend_language_scanner.h"
33+
#include "zend_list.h" // for zend_init_rsrc_list()
34+
#include "zend_observer.h" // for zend_observer_function_declared_notify()
35+
#include "zend_type_info.h" // for MAY_BE_*
36+
#include "zend_virtual_cwd.h" // for IS_SLASH_P, DEFAULT_SLASH
37+
#include "zend_vm.h" // for ZEND_VM_SET_OPCODE_HANDLER()
3838

3939
#define SET_NODE(target, src) do { \
4040
target ## _type = (src)->op_type; \

Zend/zend_compile.h

+4-6
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,12 @@
2020
#ifndef ZEND_COMPILE_H
2121
#define ZEND_COMPILE_H
2222

23-
#include "zend.h"
23+
#include "zend.h" // for INTERNAL_FUNCTION_PARAMETERS
2424
#include "zend_ast.h"
25+
#include "zend_portability.h" //for ZEND_FASTCALL
26+
#include "zend_types.h" // for zend_uchar
2527

26-
#include <stdarg.h>
27-
28-
#include "zend_llist.h"
28+
#include <stdint.h>
2929

3030
#define SET_UNUSED(op) do { \
3131
op ## _type = IS_UNUSED; \
@@ -758,8 +758,6 @@ struct _zend_execute_data {
758758

759759
#define ZEND_EXTRA_VALUE 1
760760

761-
#include "zend_globals.h"
762-
763761
typedef enum _zend_compile_position {
764762
ZEND_COMPILE_POSITION_AT_SHEBANG = 0,
765763
ZEND_COMPILE_POSITION_AT_OPEN_TAG,

0 commit comments

Comments
 (0)