[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: %option stdinit
From: |
John W. Millaway |
Subject: |
Re: %option stdinit |
Date: |
Thu, 7 Mar 2002 00:33:13 -0800 (PST) |
> Info page states:
> `stdinit'
> if unset (i.e., `%option nostdinit') initializes `yyin' and
> `yyout' to nil `FILE' pointers, instead of `stdin' and `stdout'.
>
You are correct. That paragraph is unclear. However, it has been clarified in
the current manual. Here is an excerpt from the manual currently distributed
with flex:
stdinit
if set (i.e., %option stdinit) initializes yyin and
yyout to stdin and stdout, instead of the default
of nil. Some existing lex programs depend on this
behavior, even though it is not compliant with ANSI
C, which does not require stdin and stdout to be
compile-time constant. In a reentrant scanner,
however, this is not a problem since initialization
is performed in `yylex_init' at runtime.
__________________________________________________
Do You Yahoo!?
Try FREE Yahoo! Mail - the world's greatest free email!
http://mail.yahoo.com/