This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Make PL_AMG_names and PL_AMG_namelens static
[perl5.git] / overload.pl
index da1f91b..69808c6 100644 (file)
@@ -70,7 +70,7 @@ print $c <<'EOF';
 #define AMG_id2name(id) (PL_AMG_names[id]+1)
 #define AMG_id2namelen(id) (PL_AMG_namelens[id]-1)
 
-const U8 PL_AMG_namelens[NofAMmeth] = {
+static const U8 PL_AMG_namelens[NofAMmeth] = {
 EOF
 
 my $last = pop @names;
@@ -82,7 +82,7 @@ print $c <<"EOT";
     $lastlen
 };
 
-const char * const PL_AMG_names[NofAMmeth] = {
+static const char * const PL_AMG_names[NofAMmeth] = {
   /* Names kept in the symbol table.  fallback => "()", the rest has
      "(" prepended.  The only other place in perl which knows about
      this convention is AMG_id2name (used for debugging output and