diff options
-rw-r--r-- | writemain.SH | 2 | ||||
-rw-r--r-- | xsutils.c | 5 |
2 files changed, 3 insertions, 4 deletions
diff --git a/writemain.SH b/writemain.SH index 400329f5f1..ac1c5aaf45 100644 --- a/writemain.SH +++ b/writemain.SH @@ -77,7 +77,7 @@ xs_init(pTHX) EOP if test X"$args" != "X" ; then - echo " const char file[] = __FILE__;" + echo " static const char file[] = __FILE__;" echo " dXSUB_SYS;" ai='' @@ -43,11 +43,11 @@ PERL_XS_EXPORT_C void XS_attributes_bootstrap(pTHX_ CV *cv); * version checks in these bootstrap calls are optional. */ +static const char file[] = __FILE__; + void Perl_boot_core_xsutils(pTHX) { - const char file[] = __FILE__; - newXS("attributes::bootstrap", XS_attributes_bootstrap, file); } @@ -162,7 +162,6 @@ XS(XS_attributes_bootstrap) { dVAR; dXSARGS; - const char file[] = __FILE__; if( items > 1 ) Perl_croak(aTHX_ "Usage: attributes::bootstrap $module"); |