Skip to content

Commit cd4a7c1

Browse files
MaxKellermannGirgias
authored andcommitted
Zend/zend_ini: include cleanup
1 parent 928685e commit cd4a7c1

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

Zend/zend_ini.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,18 @@
1616
+----------------------------------------------------------------------+
1717
*/
1818

19+
#include "zend_ini.h"
1920
#include "zend.h"
2021
#include "zend_sort.h"
2122
#include "zend_API.h"
22-
#include "zend_ini.h"
2323
#include "zend_alloc.h"
2424
#include "zend_operators.h"
2525
#include "zend_strtod.h"
2626
#include "zend_modules.h"
2727
#include "zend_smart_str.h"
28+
2829
#include <ctype.h>
30+
#include <errno.h>
2931

3032
static HashTable *registered_zend_ini_directives;
3133

Zend/zend_ini.h

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,24 @@
1919
#ifndef ZEND_INI_H
2020
#define ZEND_INI_H
2121

22+
#include "zend_portability.h" // for BEGIN_EXTERN_C
23+
#include "zend_types.h" // for zend_result
24+
25+
#include <stdint.h>
26+
2227
#define ZEND_INI_USER (1<<0)
2328
#define ZEND_INI_PERDIR (1<<1)
2429
#define ZEND_INI_SYSTEM (1<<2)
2530

2631
#define ZEND_INI_ALL (ZEND_INI_USER|ZEND_INI_PERDIR|ZEND_INI_SYSTEM)
2732

33+
// forward declarations
34+
typedef struct _zend_file_handle zend_file_handle;
35+
typedef struct _zend_ini_entry zend_ini_entry;
36+
typedef struct _zend_module_entry zend_module_entry;
37+
typedef struct _zend_string zend_string;
38+
typedef struct _zend_array HashTable;
39+
2840
#define ZEND_INI_MH(name) int name(zend_ini_entry *entry, zend_string *new_value, void *mh_arg1, void *mh_arg2, void *mh_arg3, int stage)
2941
#define ZEND_INI_DISP(name) ZEND_COLD void name(zend_ini_entry *ini_entry, int type)
3042

0 commit comments

Comments
 (0)