PL_debug = atoi(s+1);
for (s++; isDIGIT(*s); s++) ;
}
-#if defined(EBCDIC) || defined(VMS)
+#ifdef EBCDIC
if (DEBUG_p_TEST_ && ckWARN_d(WARN_DEBUGGING))
Perl_warner(aTHX_ packWARN(WARN_DEBUGGING),
"-Dp not implemented on this platform\n");
#include "EXTERN.h"
#define PERL_IN_PERLY_C
#include "perl.h"
-#if defined(EBCDIC) || defined(VMS)
+#ifdef EBCDIC
#undef YYDEBUG
#endif
#define dep() deprecate_old("\"do\" to call subroutines")
#include "EXTERN.h"
#define PERL_IN_PERLY_C
#include "perl.h"
-#if defined(EBCDIC) || defined(VMS)
+#ifdef EBCDIC
#undef YYDEBUG
#endif
#define dep() deprecate("\"do\" to call subroutines")
-*** perly.c.orig ma 25 maalis 17.32.52 2002
---- perly.c ma 25 maalis 17.32.53 2002
+*** perly.c.orig Tue Mar 26 01:38:52 2002
+--- perly.c Tue Mar 26 01:38:54 2002
***************
*** 1,5 ****
#ifndef lint
#line 16 "perly.y"
***************
*** 9,15 ****
- #if defined(EBCDIC) || defined(VMS)
+ #ifdef EBCDIC
#undef YYDEBUG
#endif
! #define dep() deprecate("\"do\" to call subroutines")
/* stuff included here to make perly_c.diff apply better */
--- 9,15 ----
- #if defined(EBCDIC) || defined(VMS)
+ #ifdef EBCDIC
#undef YYDEBUG
#endif
! #define dep() deprecate_old("\"do\" to call subroutines")
#include "EXTERN.h"
#define PERL_IN_PERLY_C
#include "perl.h"
-#if defined(EBCDIC) || defined(VMS)
+#ifdef EBCDIC
#undef YYDEBUG
#endif
#define dep() deprecate_old("\"do\" to call subroutines")
ysave->oldyylval = yylval;
#if YYDEBUG
+ {
+ register int saved_errno = errno;
+#ifdef VMS
+ register int saved_vaxc_errno = vaxc$errno;
+#else
+ register int saved_vaxc_errno = 0;
+#endif
if ((yys = getenv("YYDEBUG")))
{
yyn = *yys;
if (yyn >= '0' && yyn <= '9')
yydebug = yyn - '0';
}
- else SETERRNO(0,SS$_NORMAL);
+ else SETERRNO(saved_errno,saved_vaxc_errno);
+ }
#endif
yynerrs = 0;
$_ = "# ifndef getenv\n$_# endif\n";
}
elsif ( /getenv\("YYDEBUG"\)/ ) {
+ $_ = " {\n register int saved_errno = errno;\n"
+ . "#ifdef VMS\n register int saved_vaxc_errno = vaxc\$errno;\n"
+ . "#else\n register int saved_vaxc_errno = 0;\n#endif\n" . $_;
# Reset the "error" status if an optional lookup fails
while (not /^\s+\}/) { print COUT; $_ = <C>; }
- $_ .= "\telse SETERRNO(0,SS\$_NORMAL);\n";
+ $_ .= " else SETERRNO(saved_errno,saved_vaxc_errno);\n }\n";
}
else {
# add the dEXT tag to definitions of global vars, so we'll insert