Skip to content

Commit 694ec1d

Browse files
MaxKellermannGirgias
authored andcommitted
Zend/zend_{operators,variables}: include cleanup
1 parent 6b34de8 commit 694ec1d

File tree

5 files changed

+14
-11
lines changed

5 files changed

+14
-11
lines changed

Zend/zend.c

+1
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
#include "zend_observer.h"
3737
#include "zend_fibers.h"
3838
#include "zend_call_stack.h"
39+
#include "zend_strtod.h"
3940
#include "Optimizer/zend_optimizer.h"
4041

4142
static size_t global_map_ptr_last = 0;

Zend/zend_operators.c

+5-3
Original file line numberDiff line numberDiff line change
@@ -18,18 +18,20 @@
1818
+----------------------------------------------------------------------+
1919
*/
2020

21-
#include <ctype.h>
22-
23-
#include "zend.h"
2421
#include "zend_operators.h"
22+
#include "zend.h"
2523
#include "zend_variables.h"
24+
#include "zend_objects.h" // for zend_objects_new()
2625
#include "zend_globals.h"
26+
#include "zend_multiply.h" // for ZEND_SIGNED_MULTIPLY_LONG()
2727
#include "zend_list.h"
2828
#include "zend_API.h"
2929
#include "zend_strtod.h"
3030
#include "zend_exceptions.h"
3131
#include "zend_closures.h"
3232

33+
#include <ctype.h>
34+
3335
#include <locale.h>
3436
#ifdef HAVE_LANGINFO_H
3537
# include <langinfo.h>

Zend/zend_operators.h

+6-7
Original file line numberDiff line numberDiff line change
@@ -21,20 +21,19 @@
2121
#ifndef ZEND_OPERATORS_H
2222
#define ZEND_OPERATORS_H
2323

24-
#include <errno.h>
24+
#include "zend_hash.h" // for zend_hash_num_elements()
25+
#include "zend_object_handlers.h" // for struct _zend_object_handlers
26+
#include "zend_portability.h" // for BEGIN_EXTERN_
27+
#include "zend_types.h" // for zend_result
28+
#include "zend_string.h" // for zend_string_copy()
29+
2530
#include <math.h>
26-
#include <assert.h>
2731
#include <stddef.h>
2832

2933
#ifdef HAVE_IEEEFP_H
3034
#include <ieeefp.h>
3135
#endif
3236

33-
#include "zend_portability.h"
34-
#include "zend_strtod.h"
35-
#include "zend_multiply.h"
36-
#include "zend_object_handlers.h"
37-
3837
#define LONG_SIGN_MASK ZEND_LONG_MIN
3938

4039
BEGIN_EXTERN_C()

Zend/zend_variables.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
+----------------------------------------------------------------------+
1919
*/
2020

21-
#include <stdio.h>
21+
#include "zend_variables.h"
2222
#include "zend.h"
2323
#include "zend_API.h"
2424
#include "zend_ast.h"

Zend/zend_variables.h

+1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
#ifndef ZEND_VARIABLES_H
2222
#define ZEND_VARIABLES_H
2323

24+
#include "zend_hash.h" // for zend_array_dup()
2425
#include "zend_types.h"
2526
#include "zend_gc.h"
2627

0 commit comments

Comments
 (0)