File tree 4 files changed +21
-16
lines changed
4 files changed +21
-16
lines changed Original file line number Diff line number Diff line change 21
21
#ifndef ZEND_ALLOC_H
22
22
#define ZEND_ALLOC_H
23
23
24
+ #include "zend_portability.h"
24
25
#include "zend_result.h"
25
26
26
27
#include <stdio.h>
27
28
28
29
#include "../TSRM/TSRM.h"
29
- #include "zend.h"
30
30
31
31
#ifndef ZEND_MM_ALIGNMENT
32
32
# error "ZEND_MM_ALIGNMENT was not defined during configure"
Original file line number Diff line number Diff line change 16
16
+----------------------------------------------------------------------+
17
17
*/
18
18
19
+ #include "zend_string.h"
19
20
#include "zend.h"
20
21
#include "zend_globals.h"
21
22
#include "zend_rc_debug.h"
Original file line number Diff line number Diff line change 19
19
#ifndef ZEND_STRING_H
20
20
#define ZEND_STRING_H
21
21
22
- #include "zend .h"
22
+ #include "zend_alloc .h"
23
23
#include "zend_char.h"
24
+ #include "zend_portability.h"
25
+ #include "zend_refcounted.h"
26
+
27
+ /* string flags (zval.value->gc.u.flags) */
28
+ #define IS_STR_CLASS_NAME_MAP_PTR GC_PROTECTED /* refcount is a map_ptr offset of class_entry */
29
+ #define IS_STR_INTERNED GC_IMMUTABLE /* interned string */
30
+ #define IS_STR_PERSISTENT GC_PERSISTENT /* allocated using malloc */
31
+ #define IS_STR_PERMANENT (1<<8) /* relives request boundary */
32
+ #define IS_STR_VALID_UTF8 (1<<9) /* valid UTF-8 according to PCRE */
33
+
34
+ typedef struct _zend_string zend_string ;
35
+
36
+ struct _zend_string {
37
+ zend_refcounted_h gc ;
38
+ zend_ulong h ; /* hash value */
39
+ size_t len ;
40
+ char val [1 ];
41
+ };
24
42
25
43
BEGIN_EXTERN_C ()
26
44
Original file line number Diff line number Diff line change @@ -331,13 +331,6 @@ struct _zval_struct {
331
331
} u2 ;
332
332
};
333
333
334
- struct _zend_string {
335
- zend_refcounted_h gc ;
336
- zend_ulong h ; /* hash value */
337
- size_t len ;
338
- char val [1 ];
339
- };
340
-
341
334
typedef struct _Bucket {
342
335
zval val ;
343
336
zend_ulong h ; /* hash value (or numeric index) */
@@ -627,13 +620,6 @@ static zend_always_inline uint8_t zval_get_type(const zval* pz) {
627
620
628
621
#define IS_CONSTANT_AST_EX (IS_CONSTANT_AST | (IS_TYPE_REFCOUNTED << Z_TYPE_FLAGS_SHIFT))
629
622
630
- /* string flags (zval.value->gc.u.flags) */
631
- #define IS_STR_CLASS_NAME_MAP_PTR GC_PROTECTED /* refcount is a map_ptr offset of class_entry */
632
- #define IS_STR_INTERNED GC_IMMUTABLE /* interned string */
633
- #define IS_STR_PERSISTENT GC_PERSISTENT /* allocated using malloc */
634
- #define IS_STR_PERMANENT (1<<8) /* relives request boundary */
635
- #define IS_STR_VALID_UTF8 (1<<9) /* valid UTF-8 according to PCRE */
636
-
637
623
/* array flags */
638
624
#define IS_ARRAY_IMMUTABLE GC_IMMUTABLE
639
625
#define IS_ARRAY_PERSISTENT GC_PERSISTENT
You can’t perform that action at this time.
0 commit comments