]> granicus.if.org Git - flex/commitdiff
Documented YY_INTERACTIVE.
authorVern Paxson <vern@ee.lbl.gov>
Fri, 26 Nov 1993 16:09:06 +0000 (16:09 +0000)
committerVern Paxson <vern@ee.lbl.gov>
Fri, 26 Nov 1993 16:09:06 +0000 (16:09 +0000)
flex.1

diff --git a/flex.1 b/flex.1
index bbb4bfc313dc4ec61ad40d4f3da5ea5e4d489b08..31bf7a85dd3298640200cce2cd51d3c5c062e875 100644 (file)
--- a/flex.1
+++ b/flex.1
@@ -2466,7 +2466,18 @@ reads up to
 characters into
 .B buf
 and returns the number of characters read.  To indicate end-of-input,
-return 0 characters.
+return 0 characters.  Note that "interactive" scanners (see the
+.B \-B
+and
+.B \-I
+flags) define the macro
+.B YY_INTERACTIVE.
+If you redefine
+.B LexerInput()
+and need to take different actions depending on whether or not
+the scanner might be scanning an interactive input source, you can
+test for the presence of this name via
+.B #ifdef.
 .TP
 .B
 virtual void LexerOutput( const char* buf, int size )