From 06d860507700419d9cf04cbf3dc2f06c906c546d Mon Sep 17 00:00:00 2001 From: Gurusamy Sarathy Date: Tue, 29 Feb 2000 15:31:56 +0000 Subject: more adjustments needed for change#5342 under use5005threads p4raw-link: @5342 on //depot/perl: ba869debd80c55cfae8e9d4de0991d62f9efcb9b p4raw-id: //depot/perl@5351 --- perl.h | 33 +++++++++++++++++---------------- 1 file changed, 17 insertions(+), 16 deletions(-) (limited to 'perl.h') diff --git a/perl.h b/perl.h index 30961c501f..f5dfacc0d0 100644 --- a/perl.h +++ b/perl.h @@ -1731,14 +1731,6 @@ typedef pthread_key_t perl_key; # define PERL_GET_INTERP (PL_curinterp) #endif -#ifndef PERL_SET_CONTEXT -# define PERL_SET_CONTEXT(i) PERL_SET_INTERP(i) -#endif - -#ifndef PERL_GET_CONTEXT -# define PERL_GET_CONTEXT PERL_GET_INTERP -#endif - #if defined(PERL_IMPLICIT_CONTEXT) && !defined(PERL_GET_THX) # ifdef USE_THREADS # define PERL_GET_THX ((struct perl_thread *)PERL_GET_CONTEXT) @@ -1754,14 +1746,6 @@ typedef pthread_key_t perl_key; # define PERL_SET_THX(t) PERL_SET_CONTEXT(t) #endif -#ifndef PERL_GET_THX -# define PERL_GET_THX ((void*)NULL) -#endif - -#ifndef PERL_SET_THX -# define PERL_SET_THX(t) NOOP -#endif - #ifndef SVf # ifdef CHECK_FORMAT # define SVf "p" @@ -3125,6 +3109,23 @@ typedef struct am_table_short AMTS; #define printf PerlIO_stdoutf #endif +/* if these never got defined, they need defaults */ +#ifndef PERL_SET_CONTEXT +# define PERL_SET_CONTEXT(i) PERL_SET_INTERP(i) +#endif + +#ifndef PERL_GET_CONTEXT +# define PERL_GET_CONTEXT PERL_GET_INTERP +#endif + +#ifndef PERL_GET_THX +# define PERL_GET_THX ((void*)NULL) +#endif + +#ifndef PERL_SET_THX +# define PERL_SET_THX(t) NOOP +#endif + #ifndef PERL_SCRIPT_MODE #define PERL_SCRIPT_MODE "r" #endif -- cgit v1.2.1