Skip to content

Commit 4d9adc1

Browse files
committed
Zend/zend_attributes: include cleanup
1 parent 4264342 commit 4d9adc1

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

Zend/zend_attributes.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,9 @@
1717
+----------------------------------------------------------------------+
1818
*/
1919

20-
#include "zend.h"
21-
#include "zend_API.h"
2220
#include "zend_attributes.h"
21+
#include "zend_API.h" // needed by zend_attributes_arginfo.h
2322
#include "zend_attributes_arginfo.h"
24-
#include "zend_exceptions.h"
2523
#include "zend_smart_str.h"
2624

2725
ZEND_API zend_class_entry *zend_ce_attribute;

Zend/zend_attributes.h

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,13 @@
2020
#ifndef ZEND_ATTRIBUTES_H
2121
#define ZEND_ATTRIBUTES_H
2222

23+
#include "zend.h" // for struct _zend_class_entry
24+
#include "zend_compile.h" // for ZEND_USER_CLASS
25+
#include "zend_portability.h" // for BEGIN_EXTERN_C
26+
#include "zend_types.h" // for zval
27+
28+
#include <stdint.h>
29+
2330
#define ZEND_ATTRIBUTE_TARGET_CLASS (1<<0)
2431
#define ZEND_ATTRIBUTE_TARGET_FUNCTION (1<<1)
2532
#define ZEND_ATTRIBUTE_TARGET_METHOD (1<<2)
@@ -37,6 +44,9 @@
3744
#define ZEND_ATTRIBUTE_SIZE(argc) \
3845
(sizeof(zend_attribute) + sizeof(zend_attribute_arg) * (argc) - sizeof(zend_attribute_arg))
3946

47+
typedef struct _zend_class_constant zend_class_constant;
48+
typedef struct _zend_property_info zend_property_info;
49+
4050
BEGIN_EXTERN_C()
4151

4252
extern ZEND_API zend_class_entry *zend_ce_attribute;

0 commit comments

Comments
 (0)