Skip to content

Commit 9b7b320

Browse files
committed
Zend/zend_alloc: include cleanup
In the C file, include the header first so missing #includes are detected by the compiler, and use lighter header dependencies in the header, to speed up compile times.
1 parent 47bfb40 commit 9b7b320

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

Zend/zend_alloc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@
5151
* with more specialized routines when the requested size is known.
5252
*/
5353

54-
#include "zend.h"
5554
#include "zend_alloc.h"
55+
#include "zend.h"
5656
#include "zend_globals.h"
5757
#include "zend_operators.h"
5858
#include "zend_multiply.h"

Zend/zend_alloc.h

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,8 @@
2121
#ifndef ZEND_ALLOC_H
2222
#define ZEND_ALLOC_H
2323

24-
#include <stdio.h>
25-
26-
#include "../TSRM/TSRM.h"
27-
#include "zend.h"
24+
#include "zend_portability.h" // for BEGIN_EXTERN_C
25+
#include "zend_types.h" // for zend_result
2826

2927
#ifndef ZEND_MM_ALIGNMENT
3028
# error "ZEND_MM_ALIGNMENT was not defined during configure"

0 commit comments

Comments
 (0)