home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / sys / hp / 14027 < prev    next >
Encoding:
Text File  |  1992-12-13  |  2.4 KB  |  98 lines

  1. Xref: sparky comp.sys.hp:14027 comp.windows.x:20174
  2. Newsgroups: comp.sys.hp,comp.windows.x
  3. Path: sparky!uunet!think.com!paperboy.osf.org!dbrooks
  4. From: dbrooks@osf.org (David Brooks)
  5. Subject: Re: HELP NEEDED : tvtwm with hp 700
  6. Message-ID: <1992Dec13.224455.19764@osf.org>
  7. Followup-To: comp.sys.hp,comp.windows.x
  8. Sender: news@osf.org (USENET News System)
  9. Reply-To: dbrooks@osf.org (David Brooks)
  10. Organization: Open Software Foundation
  11. References: <141770007@hpcupt1.cup.hp.com> <1992Dec3.094912.24676@sol.ctr.columbia.edu> <1992Dec12.121026.5907@fct.unl.pt>
  12. Date: Sun, 13 Dec 1992 22:44:55 GMT
  13. Lines: 83
  14.  
  15. In article <1992Dec12.121026.5907@fct.unl.pt> jml@fct.unl.pt writes:
  16. >    I tryed it first using flex and bison and it didn't wotk (but if you
  17. >redirect stdin to the ~/.tvtemrc it will).
  18. >
  19. >    I tryed later using lex and yacc and it did! (Don't ask me why! I did
  20. >not check!)
  21.  
  22. Yes, flex is different from Classic Lex.  It's a problem for OSF/1, as
  23. shipped from us, also.
  24.  
  25. Rummage, rummage...Don't ask me to explain; I can't remember why this
  26. works... 
  27.  
  28. *** /tmp/,RCSt1a02587    Sat Jul 18 11:12:21 1992
  29. --- clients/twm/lex.l    Sat Jul 18 11:11:57 1992
  30. ***************
  31. *** 29,34 ****
  32. --- 29,35 ----
  33.   /***********************************************************************
  34.    *
  35.    * $XConsortium: lex.l,v 1.62 89/12/10 17:46:33 jim Exp $
  36. +  * dbrooks at OSF 7/17/92 fixes for GNU lex (flex)
  37.    *
  38.    * .twmrc lex file
  39.    *
  40. ***************
  41. *** 43,48 ****
  42. --- 44,57 ----
  43.   
  44.   extern int ParseError;
  45.   
  46. + #ifdef FLEX_SCANNER
  47. + int yylineno;
  48. + #undef YY_INPUT
  49. + #define YY_INPUT(buf,result,max_size) { \
  50. +     int c = (*twmInputFunc)(); \
  51. +     result = (c == 0) ? YY_NULL : (buf[0] = c, 1); \
  52. +     }
  53. + #endif
  54.   %}
  55.   
  56.   string                \"([^"]|\\.)*\"
  57. ***************
  58. *** 87,93 ****
  59. --- 96,104 ----
  60.                     ParseError = 1;
  61.                   }
  62.   %%
  63. + #ifndef yywrap
  64.   yywrap() { return(1);}
  65. + #endif
  66.   
  67.   #undef unput
  68.   #undef input
  69. *** /tmp/,RCSt1a19537    Thu Jul 16 14:08:02 1992
  70. --- demos/xgc/lex.l    Thu Jul 16 13:30:37 1992
  71. ***************
  72. *** 10,15 ****
  73. --- 10,19 ----
  74.   #include "gram.h"
  75.   #include "constants.h"
  76.   
  77. + #ifdef FLEX_SCANNER
  78. + int yylineno;
  79. + #endif
  80.   %}
  81.   
  82.   %p                4000
  83. ***************
  84. *** 160,163 ****
  85. --- 164,169 ----
  86.   
  87.   %%
  88.   
  89. + #ifndef yywrap
  90.   yywrap() { return (1); }
  91. + #endif
  92.  
  93. -- 
  94. David Brooks                    dbrooks@osf.org
  95. Open Software Foundation            uunet!osf.org!dbrooks
  96. Allⁿberall und ewig blauen licht die Fernen!  Ewig... ewig... ewig...
  97.