Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit e6a9142

Browse files
Zend/zend_{operators,variables}: include cleanup
1 parent d21b0c1 commit e6a9142

File tree

5 files changed

+12
-11
lines changed

5 files changed

+12
-11
lines changed

‎Zend/zend.c‎

Lines changed: 1 addition & 0 deletions
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‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,8 @@
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"
2624
#include "zend_globals.h"
2725
#include "zend_list.h"
@@ -30,6 +28,8 @@
3028
#include "zend_exceptions.h"
3129
#include "zend_closures.h"
3230

31+
#include <ctype.h>
32+
3333
#include <locale.h>
3434
#ifdef HAVE_LANGINFO_H
3535
# include <langinfo.h>

‎Zend/zend_operators.h‎

Lines changed: 6 additions & 7 deletions
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‎

Lines changed: 1 addition & 1 deletion
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‎

Lines changed: 1 addition & 0 deletions
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)

AltStyle によって変換されたページ (->オリジナル) /