Newsgroups: comp.lang.c
Path: utzoo!henry
From: henry@utzoo.uucp (Henry Spencer)
Subject: Re: File descriptors and streams and copying thereof.
Message-ID: <1989Apr16.020350.1131@utzoo.uucp>
Organization: U of Toronto Zoology
References: <1672@fig.bbn.com> <10222@ihlpb.ATT.COM>
Date: Sun, 16 Apr 89 02:03:50 GMT

In article <10222@ihlpb.ATT.COM> gregg@ihlpb.ATT.COM (Wonderly) writes:
>> Robert wants to have yyparse() read from a different file.  We did a
>> go-round on this a couple of months ago.  The answer is to provide your
>> own routine named input():
>
>The external symbol, yyin, is a (FILE *) which lex uses to read from.  Yyin
>is initialized with (stdin), so you can just change it to whatever stream you
>need, and then change it back.

We did a go-round on that too a couple of months ago.  Although it's very
attractive, yyin is **NOT** a documented part of the user interface
of lex and hence its use is not portable.
-- 
Welcome to Mars!  Your         |     Henry Spencer at U of Toronto Zoology
passport and visa, comrade?    | uunet!attcan!utzoo!henry henry@zoo.toronto.edu
