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

Re: [patch] static-ize XS()

Thread Previous
From:
Jarkko Hietaniemi
Date:
January 4, 2001 12:51
Subject:
Re: [patch] static-ize XS()
Message ID:
20010104145043.H22803@chaos.wustl.edu
On Mon, Jan 01, 2001 at 03:26:01PM -0800, Doug MacEachern wrote:
> 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.

I have heard those words so many times, often uttered by myself,
that I no more believe them :-)  But thanks, applied.

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

-- 
$jhi++; # http://www.iki.fi/jhi/
        # There is this special biologist word we use for 'stable'.
        # It is 'dead'. -- Jack Cohen

Thread Previous


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