]> granicus.if.org Git - php/commitdiff
make win32 debug output more verbose
authorHarald Radi <phanto@php.net>
Wed, 7 Aug 2002 14:47:42 +0000 (14:47 +0000)
committerHarald Radi <phanto@php.net>
Wed, 7 Aug 2002 14:47:42 +0000 (14:47 +0000)
14 files changed:
TSRM/TSRM.c
TSRM/TSRM.h
TSRM/tsrm_config.w32.h
TSRM/tsrm_config_common.h
TSRM/tsrm_win32.c
TSRM/tsrm_win32.h
Zend/zend_alloc.c
Zend/zend_config.w32.h
Zend/zend_hash.c
Zend/zend_ini.c
Zend/zend_llist.h
Zend/zend_mm.c
Zend/zend_operators.c
Zend/zend_static_allocator.c

index 6af686b0356c91fc1ecf80b9f44ec66e078e1973..f391a8c40b15d3b8a7f0047b54047ec026934994 100644 (file)
@@ -15,7 +15,6 @@
 #ifdef ZTS
 
 #include <stdio.h>
-#include <stdlib.h>
 
 #if HAVE_STDARG_H
 #include <stdarg.h>
index fb8b4347f9938cda2ee671f7315a9cbbe505d340..d13a4fd1cfe9b378334245e1d6533d934497d7bd 100644 (file)
@@ -20,6 +20,7 @@
 
 #ifdef WIN32
 # define TSRM_WIN32
+# include "tsrm_config.w32.h"
 #endif
 
 #ifdef TSRM_WIN32
index 405d8c7c8f301150399fcf9f0e6e9be08354470c..712b714ae790c57d0698a63bc9e5795c9ad30f86 100644 (file)
@@ -3,6 +3,11 @@
 
 #define HAVE_UTIME 1
 #define HAVE_ALLOCA 1
+#define _CRTDBG_MAP_ALLOC
+
+#include <malloc.h>
+#include <stdlib.h>
+#include <crtdbg.h>
 
 #undef inline
 #ifdef ZEND_WIN32_FORCE_INLINE
index 6c220fa008dab3fd1f8868289d9dcbc37d4567aa..7ba86e70adcb06d2886fdc88931eaabb5a42ca2a 100644 (file)
 # include <sys/param.h>
 #endif
 
-#ifdef TSRM_WIN32
-#include <malloc.h>
-#endif
-
 /* AIX requires this to be the first thing in the file.  */
 #ifndef __GNUC__
 # if HAVE_ALLOCA_H
index 09999af69e500af561a29b9f8ec093cddbfcc53a..691443a243f16061c4eb0817e580197729f8fe9a 100644 (file)
@@ -18,7 +18,6 @@
 
 /* $Id$ */
 
-#include <stdlib.h>
 #include <stdio.h>
 #include <fcntl.h>
 #include <io.h>
@@ -28,7 +27,6 @@
 #include "TSRM.h"
 
 #ifdef TSRM_WIN32
-#include <windows.h>
 #include "tsrm_win32.h"
 
 #ifdef ZTS
index 7931beafc49d4ab826c3d145497dafd45721f97e..5e6ec7ece794f1cb0839b14572bbe68f4897954e 100644 (file)
@@ -22,8 +22,6 @@
 #define TSRM_WIN32_H
 
 #include "TSRM.h"
-
-#ifdef TSRM_WIN32
 #include <windows.h>
 
 struct ipc_perm {
@@ -73,8 +71,6 @@ typedef struct {
 # define TWG(v) (win32_globals.v)
 #endif
 
-#endif
-
 #define IPC_PRIVATE    0
 #define IPC_CREAT      00001000
 #define IPC_EXCL       00002000
index c93317e75b51337715fde3840cb46d87eae7b0cf..3c6b7f6596b7255d70d1cfe47d8945c360e71571 100644 (file)
@@ -17,9 +17,6 @@
    +----------------------------------------------------------------------+
 */
 
-
-#include <stdlib.h>
-
 #include "zend.h"
 #include "zend_alloc.h"
 #include "zend_globals.h"
index e7c393d9e2af55ae6d1430cffaf4241a53d88a00..f13aa0684f9e2219a6bb54fed285f32fa692ad72 100644 (file)
 #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>
 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 */
index 77b4caa65685d9c1ef8b417741e330be821e7cda..079069175bc83e120386908f22631e0fd58c467d 100644 (file)
 
 #include "zend.h"
 
-#include <stdio.h>
-
-#ifdef HAVE_STDLIB_H
-# include <stdlib.h>
-#endif
-
 #define HANDLE_NUMERIC(key, length, func) {                                                                                            \
        register char *tmp=key;                                                                                                                         \
                                                                                                                                                                                \
index e15ab704c3fc7c330b53084f193938adb0b040d1..42e28379cc170460f507d03e7be9d83e258557cf 100644 (file)
@@ -16,9 +16,6 @@
    +----------------------------------------------------------------------+
 */
 
-
-#include <stdlib.h>
-
 #include "zend.h"
 #include "zend_qsort.h"
 #include "zend_API.h"
index 075c9cd83f86832ea351c3ff5ca29b7f4b619190..6fddbb2d92839abd62ccfaf1841f799ad5ecf746 100644 (file)
@@ -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;
index 99bf05d7710c2e1ce4f5b44012d37a6d6b357225..22850aadf2134e3c49934e84cfb2469d54a821db 100644 (file)
@@ -17,8 +17,6 @@
    +----------------------------------------------------------------------+
 */
 
-#include <stdlib.h>
-#include <string.h>
 #include "zend.h"
 #include "zend_mm.h"
 
index 1eae6c036aa1ec410ea09cd381f59f27d7cbe5f7..2e8d79e52262e403a9951dd3e62326d6e71f92d2 100644 (file)
    +----------------------------------------------------------------------+
 */
 
-
-#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"
index afa0cc08bcfa3f7ec0cb3a6f806fc9882ded20c0..e7e7a3689ce3141860017809af2b080b8fd3b8e0 100644 (file)
@@ -16,7 +16,7 @@
    +----------------------------------------------------------------------+
 */
 
-#include <stdlib.h>
+//#include <stdlib.h>
 
 #include "zend_static_allocator.h"