This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
DEBUG_LEAKING_SCALARS could use the value of a freed PL_op
[perl5.git] / intrpvar.h
index ee805e6..3159b28 100644 (file)
@@ -29,8 +29,8 @@ PERLVAR(Iwarnhook,    SV *)
 /* switches */
 PERLVAR(Iminus_c,      bool)
 PERLVAR(Ipatchlevel,   SV *)
-PERLVAR(Ilocalpatches, char **)
-PERLVARI(Isplitstr,    char *, " ")
+PERLVAR(Ilocalpatches, const char **)
+PERLVARI(Isplitstr,    const char *, " ")
 PERLVAR(Ipreprocess,   bool)
 PERLVAR(Iminus_n,      bool)
 PERLVAR(Iminus_p,      bool)
@@ -243,7 +243,7 @@ PERLVARI(Imaxo,     int,    MAXO)           /* maximum number of ops */
 PERLVAR(Iosname,       char *)         /* operating system */
 
 /* For binary compatibility with older versions only */
-PERLVARI(Ish_path_compat,      char *, SH_PATH)/* full path of shell */
+PERLVARI(Ish_path_compat,      const char *,   SH_PATH)/* full path of shell */
 
 PERLVAR(Isighandlerp,  Sighandler_t)
 
@@ -288,7 +288,7 @@ PERLVAR(Isv_no,             SV)
 PERLVAR(Isv_yes,       SV)
 
 #ifdef CSH
-PERLVARI(Icshname,     char *, CSH)
+PERLVARI(Icshname,     const char *,   CSH)
 PERLVARI(Icshlen,      I32,    0)
 #endif
 
@@ -530,6 +530,11 @@ PERLVARI(Irehash_seed, UV, 0)              /* 582 hash initializer */
 
 PERLVARI(Irehash_seed_set, bool, FALSE)        /* 582 hash initialized? */
 
+/* These two variables are needed to preserve 5.8.x bincompat because we can't
+   change function prototypes of two exported functions.  Probably should be
+   taken out of blead soon, and relevant prototypes changed.  */
+PERLVARI(Ifdscript, int, -1)   /* fd for script */
+PERLVARI(Isuidscript, int, -1) /* fd for suid script */
 /* New variables must be added to the very end, before this comment,
  * for binary compatibility (the offsets of the old members must not change).
  * (Don't forget to add your variable also to perl_clone()!)