From: Ben Cox (thoth@uiuc.edu)
Date: 06/01/92


From: thoth@uiuc.edu (Ben Cox)
Subject: Re: flex bug?
Date: Mon, 1 Jun 1992 20:25:27 GMT

jarmo@ksvltd.fi (Jarmo Raiha) writes:

>According to my manuals too.
>But - they don't say that input wouldn't modify what yytext is pointing at.

They imply it though...

>My ATT lex has yytext as an separate array, but flex's yytext is
>a pointer to it's input buffer.

>Depending on the flex's input buffer state , input might move
>parts of it or modify it. (If I remember correct)

Well, I guess the workaround, then, is to copy yytext before the
input()...