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

Re: [patch] static-ize XS()

Thread Previous | Thread Next
From:
Doug MacEachern
Date:
January 1, 2001 15:22
Subject:
Re: [patch] static-ize XS()
Message ID:
Pine.LNX.4.10.10101011523560.3379-100000@mojo.covalent.net
On Mon, 1 Jan 2001, Nick Ing-Simmons wrote:
 
> Yes at least two:
>   A. the B::C compiler expects to be be able to init data structures
>      with their names.
>   B. Some of us (e.g. Tk) call XS functions from other files

ok, this patch shouldn't break anything.

--- lib/ExtUtils/xsubpp~	Wed Nov 29 06:44:31 2000
+++ lib/ExtUtils/xsubpp	Mon Jan  1 15:16:34 2001
@@ -1183,6 +1183,7 @@
 
     # print function header
     print Q<<"EOF";
+#XS(XS_${Full_func_name}); /* prototype to pass -Wmissing-prototypes */
 #XS(XS_${Full_func_name})
 #[[
 #    dXSARGS;
@@ -1502,6 +1503,7 @@
 EOF
 
 print Q<<"EOF";
+#XS(boot_$Module_cname); /* prototype to pass -Wmissing-prototypes */
 #XS(boot_$Module_cname)
 EOF
 


Thread Previous | 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