Make parser_free() be called slightly later,
[p5sagit/p5-mst-13.2.git] / regcomp.pl
index 14c2eb7..38c346c 100644 (file)
@@ -157,10 +157,14 @@ while (++$ind <= $lastregop) {
 print OUT <<EOP;
 };
 
+#endif /* REG_COMP_C */
+
 /* reg_name[] - Opcode/state names in string form, for debugging */
 
-#ifdef DEBUGGING
-const char * reg_name[] = {
+#ifndef DOINIT
+EXTCONST char * PL_reg_name[];
+#else
+EXTCONST char * PL_reg_name[] = {
 EOP
 
 $ind = 0;
@@ -181,12 +185,7 @@ while (++$ind <= $tot) {
 
 print OUT <<EOP;
 };
-#endif /* DEBUGGING */
-#else
-#ifdef DEBUGGING
-extern const char * reg_name[];
-#endif
-#endif /* REG_COMP_C */
+#endif /* DOINIT */
 
 /* ex: set ro: */
 EOP