blob: ce4b522b7d6c3a1a49186c83c2d5560aeb84968c (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
*** lex.l.orig Wed Mar 10 20:57:51 1993
--- lex.l Mon Dec 5 08:06:40 1994
***************
*** 43,48 ****
--- 43,61 ----
extern int ParseError;
+ #undef YY_INPUT
+ #define YY_INPUT(buf,result,max_size) \
+ { \
+ int res = (*twmInputFunc)(); \
+ if (res == NULL) \
+ result = YY_NULL; \
+ else \
+ { \
+ buf[0] = res; \
+ result = 1; \
+ } \
+ }
+
%}
string \"([^"]|\\.)*\"
***************
*** 98,107 ****
#endif
#undef unput
! #undef input
#undef output
#undef feof
#define unput(c) twmUnput(c)
! #define input() (*twmInputFunc)()
#define output(c) TwmOutput(c)
#define feof() (1)
--- 111,120 ----
#endif
#undef unput
! /*#undef input*/
#undef output
#undef feof
#define unput(c) twmUnput(c)
! /*#define input() (*twmInputFunc)()*/
#define output(c) TwmOutput(c)
#define feof() (1)
|