summaryrefslogtreecommitdiff
path: root/perl.h
diff options
context:
space:
mode:
authorGurusamy Sarathy <gsar@cpan.org>2000-02-29 15:31:56 +0000
committerGurusamy Sarathy <gsar@cpan.org>2000-02-29 15:31:56 +0000
commit06d860507700419d9cf04cbf3dc2f06c906c546d (patch)
tree8cf20c308c4beb843b67663140aa6724ac74587d /perl.h
parent1b1e14d34a33bfe0df591910cafcab54421ca8a8 (diff)
downloadperl-06d860507700419d9cf04cbf3dc2f06c906c546d.tar.gz
more adjustments needed for change#5342 under use5005threads
p4raw-link: @5342 on //depot/perl: ba869debd80c55cfae8e9d4de0991d62f9efcb9b p4raw-id: //depot/perl@5351
Diffstat (limited to 'perl.h')
-rw-r--r--perl.h33
1 files changed, 17 insertions, 16 deletions
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