diff options
author | Artur Bergman <sky@nanisky.com> | 2001-08-27 15:16:42 +0000 |
---|---|---|
committer | Artur Bergman <sky@nanisky.com> | 2001-08-27 15:16:42 +0000 |
commit | 4d1ff10ffec86208b0da135b87c76b89e61c866e (patch) | |
tree | 741ba054917367001dce29e674a1e99c8fa229d3 /wince | |
parent | eb9ee3dc93112029ee3de6fd047d54576a1f1a1f (diff) | |
download | perl-4d1ff10ffec86208b0da135b87c76b89e61c866e.tar.gz |
Changes USE_THREADS to USE_5005THREADS in the entire source.
Thanks to H. Merijn Brand for the patch.
Some of the comments and or guards might be removable in perl.h now.
p4raw-id: //depot/perl@11758
Diffstat (limited to 'wince')
-rw-r--r-- | wince/config.h | 2 | ||||
-rw-r--r-- | wince/config_H.ce | 2 | ||||
-rw-r--r-- | wince/win32.h | 10 | ||||
-rw-r--r-- | wince/win32thread.c | 6 | ||||
-rw-r--r-- | wince/win32thread.h | 4 | ||||
-rw-r--r-- | wince/wincesck.c | 2 |
6 files changed, 13 insertions, 13 deletions
diff --git a/wince/config.h b/wince/config.h index 77e2dded4f..356f77b777 100644 --- a/wince/config.h +++ b/wince/config.h @@ -3220,7 +3220,7 @@ /*#define USE_5005THREADS /**/ /*#define USE_ITHREADS /**/ #if defined(USE_5005THREADS) && !defined(USE_ITHREADS) -#define USE_THREADS /* until src is revised*/ +#define USE_5005THREADS /* until src is revised*/ #endif /*#define OLD_PTHREADS_API /**/ /*#define USE_REENTRANT_API /**/ diff --git a/wince/config_H.ce b/wince/config_H.ce index 35643b9089..e39045ff11 100644 --- a/wince/config_H.ce +++ b/wince/config_H.ce @@ -2985,7 +2985,7 @@ /*#define USE_5005THREADS /**/ /*#define USE_ITHREADS /**/ #if defined(USE_5005THREADS) && !defined(USE_ITHREADS) -#define USE_THREADS /* until src is revised*/ +#define USE_5005THREADS /* until src is revised*/ #endif /*#define OLD_PTHREADS_API /**/ diff --git a/wince/win32.h b/wince/win32.h index 5ffe5dc4e2..a6544c6c93 100644 --- a/wince/win32.h +++ b/wince/win32.h @@ -384,11 +384,11 @@ struct thread_intern { # endif }; -#ifdef USE_THREADS +#ifdef USE_5005THREADS # ifndef USE_DECLSPEC_THREAD # define HAVE_THREAD_INTERN # endif /* !USE_DECLSPEC_THREAD */ -#endif /* USE_THREADS */ +#endif /* USE_5005THREADS */ #define HAVE_INTERP_INTERN typedef struct { @@ -408,7 +408,7 @@ struct interp_intern { child_tab * pseudo_children; #endif void * internal_host; -#ifndef USE_THREADS +#ifndef USE_5005THREADS struct thread_intern thr_intern; #endif }; @@ -428,7 +428,7 @@ struct interp_intern { #define w32_pseudo_child_pids (w32_pseudo_children->pids) #define w32_pseudo_child_handles (w32_pseudo_children->handles) #define w32_internal_host (PL_sys_intern.internal_host) -#ifdef USE_THREADS +#ifdef USE_5005THREADS # define w32_strerror_buffer (thr->i.Wstrerror_buffer) # define w32_getlogin_buffer (thr->i.Wgetlogin_buffer) # define w32_crypt_buffer (thr->i.Wcrypt_buffer) @@ -440,7 +440,7 @@ struct interp_intern { # define w32_crypt_buffer (PL_sys_intern.thr_intern.Wcrypt_buffer) # define w32_servent (PL_sys_intern.thr_intern.Wservent) # define w32_init_socktype (PL_sys_intern.thr_intern.Winit_socktype) -#endif /* USE_THREADS */ +#endif /* USE_5005THREADS */ /* UNICODE<>ANSI translation helpers */ /* Use CP_ACP when mode is ANSI */ diff --git a/wince/win32thread.c b/wince/win32thread.c index 39354474e7..51b33d59eb 100644 --- a/wince/win32thread.c +++ b/wince/win32thread.c @@ -16,7 +16,7 @@ __declspec(thread) void *PL_current_context = NULL; void Perl_set_context(void *t) { -#if defined(USE_THREADS) || defined(USE_ITHREADS) +#if defined(USE_5005THREADS) || defined(USE_ITHREADS) # ifdef USE_DECLSPEC_THREAD Perl_current_context = t; # else @@ -30,7 +30,7 @@ Perl_set_context(void *t) void * Perl_get_context(void) { -#if defined(USE_THREADS) || defined(USE_ITHREADS) +#if defined(USE_5005THREADS) || defined(USE_ITHREADS) # ifdef USE_DECLSPEC_THREAD return Perl_current_context; # else @@ -44,7 +44,7 @@ Perl_get_context(void) #endif } -#ifdef USE_THREADS +#ifdef USE_5005THREADS void Perl_init_thread_intern(struct perl_thread *athr) { diff --git a/wince/win32thread.h b/wince/win32thread.h index c930bfa342..adae6180e7 100644 --- a/wince/win32thread.h +++ b/wince/win32thread.h @@ -156,7 +156,7 @@ extern __declspec(thread) void *PL_current_context; #define PERL_SET_CONTEXT(t) Perl_set_context(t) #endif -#if defined(USE_THREADS) +#if defined(USE_5005THREADS) struct perl_thread; int Perl_thread_create (struct perl_thread *thr, thread_func_t *fn); void Perl_set_thread_self (struct perl_thread *thr); @@ -164,7 +164,7 @@ void Perl_init_thread_intern (struct perl_thread *t); #define SET_THREAD_SELF(thr) Perl_set_thread_self(thr) -#endif /* USE_THREADS */ +#endif /* USE_5005THREADS */ END_EXTERN_C diff --git a/wince/wincesck.c b/wince/wincesck.c index 3756ea75f8..64a1cab0c5 100644 --- a/wince/wincesck.c +++ b/wince/wincesck.c @@ -62,7 +62,7 @@ XCE_EXPORT struct protoent *xcegetprotobynumber(int number); #define TO_SOCKET(X) (X) -#ifdef USE_THREADS +#ifdef USE_5005THREADS #define StartSockets() \ STMT_START { \ if (!wsock_started) \ |