File tree 5 files changed +19
-6
lines changed
5 files changed +19
-6
lines changed Original file line number Diff line number Diff line change 14
14
+----------------------------------------------------------------------+
15
15
*/
16
16
17
- #include <zend.h>
18
17
#include "zend_smart_str.h"
19
18
#include "zend_smart_string.h"
19
+ #include "zend_globals_macros.h" // for EG()
20
+ #include "zend_globals.h" // struct _zend_executor_globals
21
+ #include "zend_strtod.h" // for zend_gcvt()
20
22
21
23
#define SMART_STR_OVERHEAD (ZEND_MM_OVERHEAD + _ZSTR_HEADER_SIZE + 1)
22
24
#define SMART_STR_START_SIZE 256
Original file line number Diff line number Diff line change 17
17
#ifndef ZEND_SMART_STR_H
18
18
#define ZEND_SMART_STR_H
19
19
20
- #include <zend.h>
21
- #include "zend_globals.h"
22
20
#include "zend_smart_str_public.h"
23
21
22
+ #include "zend_operators.h" // for zend_print_long_to_buf()
23
+ #include "zend_portability.h" // for BEGIN_EXTERN_C
24
+ #include "zend_string.h"
25
+
26
+ // forward declarations
27
+ typedef struct _zval_struct zval ;
28
+
24
29
BEGIN_EXTERN_C ()
25
30
26
31
ZEND_API void ZEND_FASTCALL smart_str_erealloc (smart_str * str , size_t len );
Original file line number Diff line number Diff line change 17
17
#ifndef ZEND_SMART_STR_PUBLIC_H
18
18
#define ZEND_SMART_STR_PUBLIC_H
19
19
20
+ #include <stddef.h> // for size_t
21
+
22
+ // forward declarations
23
+ typedef struct _zend_string zend_string ;
24
+
20
25
typedef struct {
21
26
/** See smart_str_extract() */
22
27
zend_string * s ;
Original file line number Diff line number Diff line change 20
20
21
21
#include "zend_smart_string_public.h"
22
22
23
- #include <stdlib.h>
24
- #include <zend.h>
23
+ #include "zend_alloc.h" // for pefree()
24
+ #include "zend_operators.h" // for zend_print_long_to_buf()
25
+ #include "zend_portability.h" // for ZEND_FASTCALL
25
26
26
27
/* wrapper */
27
28
Original file line number Diff line number Diff line change 18
18
#ifndef PHP_SMART_STRING_PUBLIC_H
19
19
#define PHP_SMART_STRING_PUBLIC_H
20
20
21
- #include <sys/types .h>
21
+ #include <stddef .h> // for size_t
22
22
23
23
typedef struct {
24
24
char * c ;
You can’t perform that action at this time.
0 commit comments