develooper Front page | perl.perl5.porters | Postings from April 2003

Re: perlio now really the default in blead

Thread Previous | Thread Next
From:
Nick Ing-Simmons
Date:
April 23, 2003 08:24
Subject:
Re: perlio now really the default in blead
Message ID:
20030423152358.2344.6@bactrian.elixent.com
Jarkko Hietaniemi <jhi@iki.fi> writes:
>So far Perl has been using the 'fast stdio' tricks if they have been
>available (meaning that Configure has been able to snoop the structure
>of the stdio buffers enough).  Yes, stdio has still been used even in
>this era of brave new perlio.  I now (change #19286) introduced two
>new Configure variables and a new policy with them.
>
>	d_faststdio
>		 d_stdstdio && d_stdio_ptr_lval &&
>		(d_stdio_cnt_lval || d_stdio_ptr_lval_sets_cnt)
>		 or in "C":
>		 USE_STDIO_PTR && STDIO_PTR_LVALUE &&
>		(STDIO_CNT_LVALUE || STDIO_PTR_LVAL_SETS_CNT)
>
>	usefaststdio
>		If we have 'fast stdio', shall we use it?
>		For pre-blead (like, say, maint), the answer is 'no',
>		because of backward compatibility.  For blead, the answer
>		is 'yes', use 'perlio'.  

That seems to be backwards.


>THIS CHANGE MAY BREAK THINGS.
>		Especially XS code may crash and burn because of FILE*
>		in typemaps or directly in the code.
>		This change is effectively the same as PERLIO=perlio.
>		(PERLIO=stdio will still command Perl to use stdio,
>		if we have 'fast stdio', that is.)
>
>I have not yet tried to propagate this change to non-Configure lands,
>let's first see how this thing flies.
-- 
Nick Ing-Simmons
http://www.ni-s.u-net.com/


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