Re: [patch] static-ize XS()
Doug MacEachern [Mon, 1 Jan 2001 15:26:01 +0000 (07:26 -0800)]
Message-ID: <Pine.LNX.4.10.10101011523560.3379-100000@mojo.covalent.net>

Provide prototypes for the XS functions.

p4raw-id: //depot/perl@8309

lib/ExtUtils/xsubpp

index bb8f3aa..2093633 100755 (executable)
@@ -1183,6 +1183,7 @@ while (fetch_para()) {
 
     # 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 @@ print Q<<"EOF";
 EOF
 
 print Q<<"EOF";
+#XS(boot_$Module_cname); /* prototype to pass -Wmissing-prototypes */
 #XS(boot_$Module_cname)
 EOF