summaryrefslogtreecommitdiff
path: root/xsutils.c
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2006-05-02 17:46:38 +0000
committerNicholas Clark <nick@ccl4.org>2006-05-02 17:46:38 +0000
commita4c98449d8cced0a413461ab2ba6c8c9f74b5530 (patch)
treed3b9936b0583fb7be25db8a4d904a8768b344f66 /xsutils.c
parent885ffcb307023fbe2047bd0c0e016f18bebc1fb3 (diff)
downloadperl-a4c98449d8cced0a413461ab2ba6c8c9f74b5530.tar.gz
*static* pointers to newXSUB(), dammit!
p4raw-id: //depot/perl@28066
Diffstat (limited to 'xsutils.c')
-rw-r--r--xsutils.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/xsutils.c b/xsutils.c
index 94d765243c..86fb0aae6a 100644
--- a/xsutils.c
+++ b/xsutils.c
@@ -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");