summaryrefslogtreecommitdiff
path: root/Zend
diff options
context:
space:
mode:
Diffstat (limited to 'Zend')
-rw-r--r--Zend/zend_alloc.c3
-rw-r--r--Zend/zend_config.w32.h11
-rw-r--r--Zend/zend_hash.c6
-rw-r--r--Zend/zend_ini.c3
-rw-r--r--Zend/zend_llist.h2
-rw-r--r--Zend/zend_mm.c2
-rw-r--r--Zend/zend_operators.c7
-rw-r--r--Zend/zend_static_allocator.c2
8 files changed, 8 insertions, 28 deletions
diff --git a/Zend/zend_alloc.c b/Zend/zend_alloc.c
index c93317e75b..3c6b7f6596 100644
--- a/Zend/zend_alloc.c
+++ b/Zend/zend_alloc.c
@@ -17,9 +17,6 @@
+----------------------------------------------------------------------+
*/
-
-#include <stdlib.h>
-
#include "zend.h"
#include "zend_alloc.h"
#include "zend_globals.h"
diff --git a/Zend/zend_config.w32.h b/Zend/zend_config.w32.h
index e7c393d9e2..f13aa0684f 100644
--- a/Zend/zend_config.w32.h
+++ b/Zend/zend_config.w32.h
@@ -21,6 +21,13 @@
#ifndef ZEND_CONFIG_W32_H
#define ZEND_CONFIG_W32_H
+#define HAVE_ALLOCA 1
+#define HAVE_LIMITS_H 1
+#define _CRTDBG_MAP_ALLOC
+
+#include <malloc.h>
+#include <stdlib.h>
+#include <crtdbg.h>
#include <string.h>
#include <windows.h>
@@ -29,10 +36,6 @@
typedef unsigned long ulong;
typedef unsigned int uint;
-#define HAVE_ALLOCA 1
-#define HAVE_LIMITS_H 1
-#include <malloc.h>
-
#undef HAVE_KILL
#define HAVE_GETPID 1
/* #define HAVE_ALLOCA_H 1 */
diff --git a/Zend/zend_hash.c b/Zend/zend_hash.c
index 77b4caa656..079069175b 100644
--- a/Zend/zend_hash.c
+++ b/Zend/zend_hash.c
@@ -20,12 +20,6 @@
#include "zend.h"
-#include <stdio.h>
-
-#ifdef HAVE_STDLIB_H
-# include <stdlib.h>
-#endif
-
#define HANDLE_NUMERIC(key, length, func) { \
register char *tmp=key; \
\
diff --git a/Zend/zend_ini.c b/Zend/zend_ini.c
index e15ab704c3..42e28379cc 100644
--- a/Zend/zend_ini.c
+++ b/Zend/zend_ini.c
@@ -16,9 +16,6 @@
+----------------------------------------------------------------------+
*/
-
-#include <stdlib.h>
-
#include "zend.h"
#include "zend_qsort.h"
#include "zend_API.h"
diff --git a/Zend/zend_llist.h b/Zend/zend_llist.h
index 075c9cd83f..6fddbb2d92 100644
--- a/Zend/zend_llist.h
+++ b/Zend/zend_llist.h
@@ -21,8 +21,6 @@
#ifndef ZEND_LLIST_H
#define ZEND_LLIST_H
-#include <stdlib.h>
-
typedef struct _zend_llist_element {
struct _zend_llist_element *next;
struct _zend_llist_element *prev;
diff --git a/Zend/zend_mm.c b/Zend/zend_mm.c
index 99bf05d771..22850aadf2 100644
--- a/Zend/zend_mm.c
+++ b/Zend/zend_mm.c
@@ -17,8 +17,6 @@
+----------------------------------------------------------------------+
*/
-#include <stdlib.h>
-#include <string.h>
#include "zend.h"
#include "zend_mm.h"
diff --git a/Zend/zend_operators.c b/Zend/zend_operators.c
index 1eae6c036a..2e8d79e522 100644
--- a/Zend/zend_operators.c
+++ b/Zend/zend_operators.c
@@ -17,13 +17,6 @@
+----------------------------------------------------------------------+
*/
-
-#include <stdio.h>
-#include <errno.h>
-#include <stdlib.h>
-#include <ctype.h>
-#include <math.h>
-
#include "zend.h"
#include "zend_operators.h"
#include "zend_variables.h"
diff --git a/Zend/zend_static_allocator.c b/Zend/zend_static_allocator.c
index afa0cc08bc..e7e7a3689c 100644
--- a/Zend/zend_static_allocator.c
+++ b/Zend/zend_static_allocator.c
@@ -16,7 +16,7 @@
+----------------------------------------------------------------------+
*/
-#include <stdlib.h>
+//#include <stdlib.h>
#include "zend_static_allocator.h"