diff options
author | Malcolm Beattie <mbeattie@sable.ox.ac.uk> | 1997-11-27 16:12:15 +0000 |
---|---|---|
committer | Malcolm Beattie <mbeattie@sable.ox.ac.uk> | 1997-11-27 16:12:15 +0000 |
commit | f0bea234ec0a451a052c1e57903238c612bb1c20 (patch) | |
tree | 7f259259819b7b7326cd3521978446ae4bf2bfa2 /win32 | |
parent | 888d0fe0188fdde6c44d0523c70df0dfcccc5bea (diff) | |
parent | eef1cf2a23a873e7d505bb26346d56dd1fe0c960 (diff) | |
download | perl-f0bea234ec0a451a052c1e57903238c612bb1c20.tar.gz |
Integrate win32 branch back into mainline.
p4raw-id: //depot/perl@322
Diffstat (limited to 'win32')
-rw-r--r-- | win32/Makefile | 2 | ||||
-rw-r--r-- | win32/dl_win32.xs | 2 | ||||
-rw-r--r-- | win32/makefile.mk | 6 | ||||
-rw-r--r-- | win32/win32.h | 2 | ||||
-rw-r--r-- | win32/win32iop.h | 2 | ||||
-rw-r--r-- | win32/win32thread.c | 6 | ||||
-rw-r--r-- | win32/win32thread.h | 5 |
7 files changed, 13 insertions, 12 deletions
diff --git a/win32/Makefile b/win32/Makefile index 91a417da2f..e2d3d446c2 100644 --- a/win32/Makefile +++ b/win32/Makefile @@ -52,7 +52,7 @@ RUNTIME = -MD INCLUDES = -I.\include -I. -I.. #PCHFLAGS = -Fp"$(INTDIR)/modules.pch" -YX DEFINES = -DWIN32 -D_CONSOLE $(BUILDOPT) -LOCDEFS = -DPERLDLL $(CORECCOPT) +LOCDEFS = -DPERLDLL -DPERL_CORE $(CORECCOPT) SUBSYS = console !IF "$(RUNTIME)" == "-MD" diff --git a/win32/dl_win32.xs b/win32/dl_win32.xs index 7b227e299c..cf6797e5fe 100644 --- a/win32/dl_win32.xs +++ b/win32/dl_win32.xs @@ -28,7 +28,7 @@ calls. #include "dlutils.c" /* SaveError() etc */ static void -dl_private_init() +dl_private_init(void) { (void)dl_generic_private_init(); } diff --git a/win32/makefile.mk b/win32/makefile.mk index 03788c731e..7bbf0bb426 100644 --- a/win32/makefile.mk +++ b/win32/makefile.mk @@ -55,7 +55,7 @@ CCLIBDIR = $(CCHOME)\lib CC = bcc32 LINK32 = tlink32 LIB32 = tlib -IMPLIB = implib +IMPLIB = implib -c # # Options @@ -64,7 +64,7 @@ RUNTIME = -D_RTLDLL INCLUDES = -I.\include -I. -I.. -I$(CCINCDIR) #PCHFLAGS = -H -H$(INTDIR)\bcmoduls.pch DEFINES = -DWIN32 $(BUILDOPT) -LOCDEFS = -DPERLDLL +LOCDEFS = -DPERLDLL -DPERL_CORE SUBSYS = console LIBC = cw32mti.lib LIBFILES = import32.lib $(LIBC) odbc32.lib odbccp32.lib @@ -97,7 +97,7 @@ RUNTIME = -MD INCLUDES = -I.\include -I. -I.. #PCHFLAGS = -Fp$(INTDIR)\vcmoduls.pch -YX DEFINES = -DWIN32 -D_CONSOLE $(BUILDOPT) -LOCDEFS = -DPERLDLL +LOCDEFS = -DPERLDLL -DPERL_CORE SUBSYS = console .IF "$(RUNTIME)" == "-MD" diff --git a/win32/win32.h b/win32/win32.h index 2e31d0e3ba..d0dde7e53f 100644 --- a/win32/win32.h +++ b/win32/win32.h @@ -151,7 +151,7 @@ typedef char * caddr_t; /* In malloc.c (core address). */ /* #define PERL_SBRK_VIA_MALLOC /**/ #endif -#ifdef PERLDLL +#if defined(PERLDLL) && !defined(PERL_CORE) #define PERL_CORE #endif diff --git a/win32/win32iop.h b/win32/win32iop.h index bd70def18e..533370e99e 100644 --- a/win32/win32iop.h +++ b/win32/win32iop.h @@ -220,7 +220,7 @@ END_EXTERN_C #define getchar win32_getchar #define putchar win32_putchar -#if !defined(MYMALLOC) || !defined(PERLDLL) +#if !defined(MYMALLOC) || !defined(PERL_CORE) #undef malloc #undef calloc #undef realloc diff --git a/win32/win32thread.c b/win32/win32thread.c index 3e63327638..039f8b4b6f 100644 --- a/win32/win32thread.c +++ b/win32/win32thread.c @@ -1,15 +1,15 @@ #include "EXTERN.h" #include "perl.h" -__declspec(thread) struct thread *Perl_current_thread = NULL; +__declspec(thread) struct perl_thread *Perl_current_thread = NULL; void -Perl_setTHR(struct thread *t) +Perl_setTHR(struct perl_thread *t) { Perl_current_thread = t; } -struct thread * +struct perl_thread * Perl_getTHR(void) { return Perl_current_thread; diff --git a/win32/win32thread.h b/win32/win32thread.h index 0d92ffc96f..591184b007 100644 --- a/win32/win32thread.h +++ b/win32/win32thread.h @@ -97,7 +97,7 @@ typedef HANDLE perl_mutex; } \ } STMT_END -#define THR ((struct perl_thread *) TlsGetValue(thr_key)) + #define THREAD_CREATE(t, f) Perl_thread_create(t, f) #define THREAD_POST_CREATE(t) NOOP #define THREAD_RET_TYPE DWORD WINAPI @@ -109,7 +109,7 @@ typedef THREAD_RET_TYPE thread_func_t(void *); START_EXTERN_C #if defined(PERLDLL) && (!defined(__BORLANDC__) || defined(_DLL)) -extern __declspec(thread) struct thread *Perl_current_thread; +extern __declspec(thread) struct perl_thread *Perl_current_thread; #define SET_THR(t) (Perl_current_thread = t) #define THR Perl_current_thread #else @@ -122,6 +122,7 @@ int Perl_thread_create _((struct perl_thread *thr, thread_func_t *fn)); void Perl_set_thread_self _((struct perl_thread *thr)); struct perl_thread *Perl_getTHR _((void)); void Perl_setTHR _((struct perl_thread *t)); + END_EXTERN_C #define INIT_THREADS NOOP |