summaryrefslogtreecommitdiff
path: root/x11-wm/tvtwm/files/patch-ab
diff options
context:
space:
mode:
Diffstat (limited to 'x11-wm/tvtwm/files/patch-ab')
-rw-r--r--x11-wm/tvtwm/files/patch-ab47
1 files changed, 47 insertions, 0 deletions
diff --git a/x11-wm/tvtwm/files/patch-ab b/x11-wm/tvtwm/files/patch-ab
new file mode 100644
index 000000000000..ce4b522b7d6c
--- /dev/null
+++ b/x11-wm/tvtwm/files/patch-ab
@@ -0,0 +1,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)