G From:	CSBVAX::MRGATE!info-vax-request@kl.sri.com@SMTP 15-MAY-1988 11:44  To:	ARISIA::EVERHART
 Subj:	flex    U Received: from ucbvax.Berkeley.EDU by KL.SRI.COM with TCP; Tue 10 May 88 22:40:09-PDT , Received: by ucbvax.Berkeley.EDU (5.59/1.28)( 	id AA03918; Tue, 10 May 88 20:41:41 PDT9 Received: from USENET by ucbvax.Berkeley.EDU with netnews . 	for info-vax@kl.sri.com (info-vax@kl.sri.com); 	(contact usenet@ucbvax.Berkeley.EDU if you have questions)  Date: 10 May 88 20:21:17 GMT- From: naucse!jdc@arizona.edu  (John Campbell) 8 Organization: Northern Arizona University, Flagstaff, AZ
 Subject: flex  Message-Id: <690@naucse.UUCP> # Sender: info-vax-request@kl.sri.com  To: info-vax@kl.sri.com   E Well I just finished making flex (Fast lex from Vern Paxson) work on  D VMS.  The reason for this posting is to raise a 'C' question and to % let people know flex will run on VMS.    The 'C' question: %   Flex has the following global line:   %      FILE *yyin=stdin, *yyout=stdout;   I   which does not work at compile time on VMS.  In other words, it appears K   the compiler does not treat stdin as a constant--it's value is known only I   at run-time.  (VMS stdio.h says "extern noshare FILE *stdin;.) To work  -   around this I had to concote a fake main():       FILE *yyin, *yyout;      main()       {%         yyin = stdin; yyout = stdout;    I   Question: Is my compiler deficient?  Is the initialization done in flex    suppose to work in ANSI C?      Flex on VMS:L   For those interested, the following changes were done to make flex work onN   VMS: 1) 2 macro names > 31 characters where changed, 2) some file names wereK   corrected to fit the VMS file system, 3) the yyin problem mentioned above L   was worked around, 4) bzero was defined as OTS$MOVEC5, and 5) unlink() was   replaced with delete().    F   If there is enough interest I can post a SEARCH for VMS (300 lines) I   indicating how the original was changed.  I'm afraid my port is only a  K   start toward folding VMS support back into the original.  Anyone wanting  M   to improve on my effort is more than welcome, but I fear the unix community ?   may be less than sympathetic to those of us stuck on VMS :-).    D MUCH THANKS TO VERN PAXSON, KEVIN GONG, VAN JACOBSON, ET.AL.!!!!!!   --  3 	John Campbell               ...!arizona!naucse!jdc   3 	unix?  Sure send me a dozen, all different colors. 