up patchlevel &c
[p5sagit/p5-mst-13.2.git] / byterun.h
index 0e10b63..3aac6fa 100644 (file)
--- a/byterun.h
+++ b/byterun.h
@@ -1,5 +1,5 @@
 /*
- *      Copyright (c) 1996, 1997 Malcolm Beattie
+ *      Copyright (c) 1996-1999 Malcolm Beattie
  *
  *      You may distribute under the terms of either the GNU General Public
  *      License or the Artistic License, as specified in the README file.
@@ -15,19 +15,8 @@ struct bytestream {
     int (*fread)(char *, size_t, size_t, void*);
     void (*freadpv)(U32, void*);
 };
-void freadpv _((U32, void *));
-void byterun _((struct bytestream));
-#else
-void byterun _((FILE *));
 #endif /* INDIRECT_BGET_MACROS */
 
-#ifndef PATCHLEVEL
-#include "patchlevel.h"
-#endif
-#if PATCHLEVEL < 4 || (PATCHLEVEL == 4 && SUBVERSION < 50)
-#define dTHR extern int errno
-#endif
-
 enum {
     INSN_RET,                  /* 0 */
     INSN_LDSV,                 /* 1 */
@@ -145,10 +134,11 @@ enum {
     INSN_COP_SEQ,                      /* 113 */
     INSN_COP_ARYBASE,                  /* 114 */
     INSN_COP_LINE,                     /* 115 */
-    INSN_MAIN_START,                   /* 116 */
-    INSN_MAIN_ROOT,                    /* 117 */
-    INSN_CURPAD,                       /* 118 */
-    MAX_INSN = 118
+    INSN_COP_WARNINGS,                 /* 116 */
+    INSN_MAIN_START,                   /* 117 */
+    INSN_MAIN_ROOT,                    /* 118 */
+    INSN_CURPAD,                       /* 119 */
+    MAX_INSN = 119
 };
 
 enum {
@@ -185,8 +175,9 @@ EXT int optype_size[]
 #endif /* DOINIT */
 ;
 
-EXT SV * specialsv_list[4]
-#ifdef DOINIT
-= { Nullsv, &sv_undef, &sv_yes, &sv_no }
-#endif /* DOINIT */
-;
+#define INIT_SPECIALSV_LIST STMT_START { \
+       PL_specialsv_list[0] = Nullsv; \
+       PL_specialsv_list[1] = &PL_sv_undef; \
+       PL_specialsv_list[2] = &PL_sv_yes; \
+       PL_specialsv_list[3] = &PL_sv_no; \
+    } STMT_END