diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 2003-04-21 06:50:42 +0000 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2003-04-21 06:50:42 +0000 |
commit | 15b61c98f82f3010e6eaa852f9fa5251de9e6dd9 (patch) | |
tree | 073b799410f4cafab1a06a8fc9b49724fa898d08 /config_h.SH | |
parent | 953b749f4ea4a5f29351e7df3dcbb34b53f42d22 (diff) | |
download | perl-15b61c98f82f3010e6eaa852f9fa5251de9e6dd9.tar.gz |
Introduce two new Configure symbols:
[1] d_faststdio = d_stdstdio && d_stdio_ptr_lval &&
(d_stdio_cnt_lval || d_stdio_ptr_lval_sets_cnt)
[2] usefaststdio = do we use fast stdio if we have it?
For 5.[68], we do. For anything else, we don't.
(At least, unless otherwise instructed by -Dusefaststdio.)
This means that for bleadperl we no more use stdio, but instead
default to perlio: the effect of PERLIO=perlio, in other words.
(PERLIO=stdio will still switch to using stdio.)
This change may endanger extensions using FILE*-- but if we are
to migrate fully to perlio, better start swallowing the poison now.
For maintperl, the usefaststdio still defaults to yes.
p4raw-id: //depot/perl@19286
Diffstat (limited to 'config_h.SH')
-rw-r--r-- | config_h.SH | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/config_h.SH b/config_h.SH index da9a6c2bde..fea578d325 100644 --- a/config_h.SH +++ b/config_h.SH @@ -2360,6 +2360,12 @@ sed <<!GROK!THIS! >$CONFIG_H -e 's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 's!^#un */ #$d_dlsymun DLSYM_NEEDS_UNDERSCORE /**/ +/* HAS_FAST_STDIO: + * This symbol, if defined, indicates that the "fast stdio" + * is available to manipulate the stdio buffers directly. + */ +#$d_faststdio HAS_FAST_STDIO /**/ + /* HAS_FCHDIR: * This symbol, if defined, indicates that the fchdir routine is * available to change directory using a file descriptor. @@ -3316,6 +3322,14 @@ sed <<!GROK!THIS! >$CONFIG_H -e 's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 's!^#un #$use64bitall USE_64_BIT_ALL /**/ #endif +/* USE_FAST_STDIO: + * This symbol, if defined, indicates that Perl should + * be built to use 'fast stdio'. + */ +#ifndef USE_FAST_STDIO +#$usefaststdio USE_FAST_STDIO /**/ +#endif + /* USE_LARGE_FILES: * This symbol, if defined, indicates that large file support * should be used when available. |