develooper Front page | perl.perl5.porters | Postings from January 2001

[patch] static-ize XS()

Thread Next
From:
Doug MacEachern
Date:
January 1, 2001 11:43
Subject:
[patch] static-ize XS()
Message ID:
Pine.LNX.4.10.10101011142590.3379-100000@mojo.covalent.net
any reason XS() functions should not be static?  the only one dlsym()
needs to see is boot_$module_name.  the patch also protoypes the boot_
function (i'm compiling with various -W's including -Werror)

--- lib/ExtUtils/xsubpp~	Wed Nov 29 06:44:31 2000
+++ lib/ExtUtils/xsubpp	Mon Jan  1 11:42:20 2001
@@ -1183,7 +1183,7 @@
 
     # print function header
     print Q<<"EOF";
-#XS(XS_${Full_func_name})
+#static XS(XS_${Full_func_name})
 #[[
 #    dXSARGS;
 EOF
@@ -1502,6 +1502,7 @@
 EOF
 
 print Q<<"EOF";
+#XS(boot_$Module_cname);
 #XS(boot_$Module_cname)
 EOF
 


Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About