X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=overload.c;h=909a0ee529adcb5c8b0e1462314f94e2efcfbcec;hb=482aa6ffeb230a1cea9d05e9eb425b3d7fc09217;hp=eaaef2154e49ab17f390450d900a9862e5d5d746;hpb=82af65938b18604bedb1e907fce033a213303aaf;p=p5sagit%2Fp5-mst-13.2.git diff --git a/overload.c b/overload.c index eaaef21..909a0ee 100644 --- a/overload.c +++ b/overload.c @@ -15,7 +15,7 @@ #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] = { 2, 4, 4, @@ -82,10 +82,11 @@ const U8 PL_AMG_namelens[NofAMmeth] = { 2, 3, 3, + 3, 7 }; -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 @@ -157,5 +158,6 @@ char * const PL_AMG_names[NofAMmeth] = { "(.", "(.=", "(~~", + "(-X", "DESTROY" };