home *** CD-ROM | disk | FTP | other *** search
- Xref: sparky comp.sys.hp:14027 comp.windows.x:20174
- Newsgroups: comp.sys.hp,comp.windows.x
- Path: sparky!uunet!think.com!paperboy.osf.org!dbrooks
- From: dbrooks@osf.org (David Brooks)
- Subject: Re: HELP NEEDED : tvtwm with hp 700
- Message-ID: <1992Dec13.224455.19764@osf.org>
- Followup-To: comp.sys.hp,comp.windows.x
- Sender: news@osf.org (USENET News System)
- Reply-To: dbrooks@osf.org (David Brooks)
- Organization: Open Software Foundation
- References: <141770007@hpcupt1.cup.hp.com> <1992Dec3.094912.24676@sol.ctr.columbia.edu> <1992Dec12.121026.5907@fct.unl.pt>
- Date: Sun, 13 Dec 1992 22:44:55 GMT
- Lines: 83
-
- In article <1992Dec12.121026.5907@fct.unl.pt> jml@fct.unl.pt writes:
- > I tryed it first using flex and bison and it didn't wotk (but if you
- >redirect stdin to the ~/.tvtemrc it will).
- >
- > I tryed later using lex and yacc and it did! (Don't ask me why! I did
- >not check!)
-
- Yes, flex is different from Classic Lex. It's a problem for OSF/1, as
- shipped from us, also.
-
- Rummage, rummage...Don't ask me to explain; I can't remember why this
- works...
-
- *** /tmp/,RCSt1a02587 Sat Jul 18 11:12:21 1992
- --- clients/twm/lex.l Sat Jul 18 11:11:57 1992
- ***************
- *** 29,34 ****
- --- 29,35 ----
- /***********************************************************************
- *
- * $XConsortium: lex.l,v 1.62 89/12/10 17:46:33 jim Exp $
- + * dbrooks at OSF 7/17/92 fixes for GNU lex (flex)
- *
- * .twmrc lex file
- *
- ***************
- *** 43,48 ****
- --- 44,57 ----
-
- extern int ParseError;
-
- + #ifdef FLEX_SCANNER
- + int yylineno;
- + #undef YY_INPUT
- + #define YY_INPUT(buf,result,max_size) { \
- + int c = (*twmInputFunc)(); \
- + result = (c == 0) ? YY_NULL : (buf[0] = c, 1); \
- + }
- + #endif
- %}
-
- string \"([^"]|\\.)*\"
- ***************
- *** 87,93 ****
- --- 96,104 ----
- ParseError = 1;
- }
- %%
- + #ifndef yywrap
- yywrap() { return(1);}
- + #endif
-
- #undef unput
- #undef input
- *** /tmp/,RCSt1a19537 Thu Jul 16 14:08:02 1992
- --- demos/xgc/lex.l Thu Jul 16 13:30:37 1992
- ***************
- *** 10,15 ****
- --- 10,19 ----
- #include "gram.h"
- #include "constants.h"
-
- + #ifdef FLEX_SCANNER
- + int yylineno;
- + #endif
- +
- %}
-
- %p 4000
- ***************
- *** 160,163 ****
- --- 164,169 ----
-
- %%
-
- + #ifndef yywrap
- yywrap() { return (1); }
- + #endif
-
- --
- David Brooks dbrooks@osf.org
- Open Software Foundation uunet!osf.org!dbrooks
- Allⁿberall und ewig blauen licht die Fernen! Ewig... ewig... ewig...
-