Skip to content

Commit 1250ca5

Browse files
committed
Zend/zend_inheritance: include cleanup
1 parent d8a21e7 commit 1250ca5

File tree

2 files changed

+18
-11
lines changed

2 files changed

+18
-11
lines changed

Zend/zend_inheritance.c

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -17,20 +17,19 @@
1717
+----------------------------------------------------------------------+
1818
*/
1919

20-
#include "zend.h"
21-
#include "zend_arena.h"
22-
#include "zend_API.h"
23-
#include "zend_compile.h"
24-
#include "zend_execute.h"
2520
#include "zend_inheritance.h"
26-
#include "zend_interfaces.h"
27-
#include "zend_smart_str.h"
28-
#include "zend_operators.h"
29-
#include "zend_exceptions.h"
30-
#include "zend_enum.h"
21+
#include "zend_API.h" // for zend_get_object_type_uc()
22+
#include "zend_arena.h"
3123
#include "zend_attributes.h"
24+
#include "zend_compile.h"
3225
#include "zend_constants.h"
26+
#include "zend_enum.h"
27+
#include "zend_exceptions.h"
28+
#include "zend_execute.h" // for zend_lookup_class_ex()
29+
#include "zend_interfaces.h" // for zend_ce_stringable
30+
#include "zend_globals.h" // for CG()
3331
#include "zend_observer.h"
32+
#include "zend_smart_str.h"
3433

3534
ZEND_API zend_class_entry* (*zend_inheritance_cache_get)(zend_class_entry *ce, zend_class_entry *parent, zend_class_entry **traits_and_interfaces) = NULL;
3635
ZEND_API zend_class_entry* (*zend_inheritance_cache_add)(zend_class_entry *ce, zend_class_entry *proto, zend_class_entry *parent, zend_class_entry **traits_and_interfaces, HashTable *dependencies) = NULL;

Zend/zend_inheritance.h

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,15 @@
2020
#ifndef ZEND_INHERITANCE_H
2121
#define ZEND_INHERITANCE_H
2222

23-
#include "zend.h"
23+
#include "zend_portability.h" // for BEGIN_EXTERN_C
24+
25+
#include <stdbool.h>
26+
27+
typedef struct _zend_class_entry zend_class_entry;
28+
typedef union _zend_function zend_function;
29+
typedef struct _zend_string zend_string;
30+
typedef struct _zval_struct zval;
31+
typedef struct _zend_array HashTable;
2432

2533
BEGIN_EXTERN_C()
2634

0 commit comments

Comments
 (0)