Skip to content

Commit 99c90db

Browse files
author
Harald Radi
committed
make win32 debug output more verbose
1 parent a77c0a1 commit 99c90db

14 files changed

+14
-39
lines changed

TSRM/TSRM.c

-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
#ifdef ZTS
1616

1717
#include <stdio.h>
18-
#include <stdlib.h>
1918

2019
#if HAVE_STDARG_H
2120
#include <stdarg.h>

TSRM/TSRM.h

+1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020

2121
#ifdef WIN32
2222
# define TSRM_WIN32
23+
# include "tsrm_config.w32.h"
2324
#endif
2425

2526
#ifdef TSRM_WIN32

TSRM/tsrm_config.w32.h

+5
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@
33

44
#define HAVE_UTIME 1
55
#define HAVE_ALLOCA 1
6+
#define _CRTDBG_MAP_ALLOC
7+
8+
#include <malloc.h>
9+
#include <stdlib.h>
10+
#include <crtdbg.h>
611

712
#undef inline
813
#ifdef ZEND_WIN32_FORCE_INLINE

TSRM/tsrm_config_common.h

-4
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,6 @@
1414
# include <sys/param.h>
1515
#endif
1616

17-
#ifdef TSRM_WIN32
18-
#include <malloc.h>
19-
#endif
20-
2117
/* AIX requires this to be the first thing in the file. */
2218
#ifndef __GNUC__
2319
# if HAVE_ALLOCA_H

TSRM/tsrm_win32.c

-2
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818

1919
/* $Id$ */
2020

21-
#include <stdlib.h>
2221
#include <stdio.h>
2322
#include <fcntl.h>
2423
#include <io.h>
@@ -28,7 +27,6 @@
2827
#include "TSRM.h"
2928

3029
#ifdef TSRM_WIN32
31-
#include <windows.h>
3230
#include "tsrm_win32.h"
3331

3432
#ifdef ZTS

TSRM/tsrm_win32.h

-4
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,6 @@
2222
#define TSRM_WIN32_H
2323

2424
#include "TSRM.h"
25-
26-
#ifdef TSRM_WIN32
2725
#include <windows.h>
2826

2927
struct ipc_perm {
@@ -73,8 +71,6 @@ typedef struct {
7371
# define TWG(v) (win32_globals.v)
7472
#endif
7573

76-
#endif
77-
7874
#define IPC_PRIVATE 0
7975
#define IPC_CREAT 00001000
8076
#define IPC_EXCL 00002000

Zend/zend_alloc.c

-3
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,6 @@
1717
+----------------------------------------------------------------------+
1818
*/
1919

20-
21-
#include <stdlib.h>
22-
2320
#include "zend.h"
2421
#include "zend_alloc.h"
2522
#include "zend_globals.h"

Zend/zend_config.w32.h

+7-4
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,13 @@
2121
#ifndef ZEND_CONFIG_W32_H
2222
#define ZEND_CONFIG_W32_H
2323

24+
#define HAVE_ALLOCA 1
25+
#define HAVE_LIMITS_H 1
26+
#define _CRTDBG_MAP_ALLOC
27+
28+
#include <malloc.h>
29+
#include <stdlib.h>
30+
#include <crtdbg.h>
2431

2532
#include <string.h>
2633
#include <windows.h>
@@ -29,10 +36,6 @@
2936
typedef unsigned long ulong;
3037
typedef unsigned int uint;
3138

32-
#define HAVE_ALLOCA 1
33-
#define HAVE_LIMITS_H 1
34-
#include <malloc.h>
35-
3639
#undef HAVE_KILL
3740
#define HAVE_GETPID 1
3841
/* #define HAVE_ALLOCA_H 1 */

Zend/zend_hash.c

-6
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,6 @@
2020

2121
#include "zend.h"
2222

23-
#include <stdio.h>
24-
25-
#ifdef HAVE_STDLIB_H
26-
# include <stdlib.h>
27-
#endif
28-
2923
#define HANDLE_NUMERIC(key, length, func) { \
3024
register char *tmp=key; \
3125
\

Zend/zend_ini.c

-3
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,6 @@
1616
+----------------------------------------------------------------------+
1717
*/
1818

19-
20-
#include <stdlib.h>
21-
2219
#include "zend.h"
2320
#include "zend_qsort.h"
2421
#include "zend_API.h"

Zend/zend_llist.h

-2
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,6 @@
2121
#ifndef ZEND_LLIST_H
2222
#define ZEND_LLIST_H
2323

24-
#include <stdlib.h>
25-
2624
typedef struct _zend_llist_element {
2725
struct _zend_llist_element *next;
2826
struct _zend_llist_element *prev;

Zend/zend_mm.c

-2
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@
1717
+----------------------------------------------------------------------+
1818
*/
1919

20-
#include <stdlib.h>
21-
#include <string.h>
2220
#include "zend.h"
2321
#include "zend_mm.h"
2422

Zend/zend_operators.c

-7
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,6 @@
1717
+----------------------------------------------------------------------+
1818
*/
1919

20-
21-
#include <stdio.h>
22-
#include <errno.h>
23-
#include <stdlib.h>
24-
#include <ctype.h>
25-
#include <math.h>
26-
2720
#include "zend.h"
2821
#include "zend_operators.h"
2922
#include "zend_variables.h"

Zend/zend_static_allocator.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
+----------------------------------------------------------------------+
1717
*/
1818

19-
#include <stdlib.h>
19+
//#include <stdlib.h>
2020

2121
#include "zend_static_allocator.h"
2222

0 commit comments

Comments
 (0)