Negating an unsigned value generates warnings for some compilers, so
[p5sagit/p5-mst-13.2.git] / perlvars.h
index 35af2dc..0c4319b 100644 (file)
@@ -67,7 +67,7 @@ PERLVAR(Gsigfpe_saved,        Sighandler_t)
 PERLVAR(Gsv_placeholder, SV)
 
 #ifndef PERL_MICRO
-PERLVARI(Gcsighandlerp,        Sighandler_t, &Perl_csighandler)        /* Pointer to C-level sighandler */
+PERLVARI(Gcsighandlerp,        Sighandler_t, Perl_csighandler) /* Pointer to C-level sighandler */
 #endif
 
 #ifndef PERL_USE_SAFE_PUTENV
@@ -124,4 +124,11 @@ PERLVARI(Gop_seq, UV, 0) /* dump.c */
 PERLVAR(Gtimesbase, struct tms)
 #endif
 
+/* allocate a unique index to every module that calls MY_CXT_INIT */
 
+#ifdef PERL_IMPLICIT_CONTEXT
+# ifdef USE_ITHREADS
+PERLVAR(Gmy_ctx_mutex, perl_mutex)
+# endif
+PERLVARI(Gmy_cxt_index, int, 0)
+#endif