#!/usr/bin/perl -w
-
#
-# Generate overload.h
+# Unconditionally regenerate:
+#
+# overload.h
+# overload.c
+# lib/overload/numbers.pm
+#
+# from information stored in the DATA section of this file.
+#
# This allows the order of overloading constants to be changed.
-#
+#
+# Accepts the standard regen_lib -q and -v args.
+#
+# This script is normally invoked from regen.pl.
BEGIN {
# Get function prototypes
@enums
#;
-{ my \$i; our %names = map { \$_ => ++\$i } \@names }
+{ my \$i = 0; our %names = map { \$_ => \$i++ } \@names }
-{ my \$i; our %enums = map { \$_ => ++\$i } \@enums }
+{ my \$i = 0; our %enums = map { \$_ => \$i++ } \@enums }
EOF
}
concat (.
concat_ass (.=
smart (~~
+ftest (-X
# Note: Perl_Gv_AMupdate() assumes that DESTROY is the last entry
DESTROY DESTROY