d43b562760
- regen patches
37 lines
740 B
Plaintext
37 lines
740 B
Plaintext
$OpenBSD: patch-lex_l,v 1.1 2002/07/18 21:02:02 naddy Exp $
|
|
--- lex.l.orig Wed Mar 10 21:57:51 1993
|
|
+++ lex.l Thu Jul 18 22:15:15 2002
|
|
@@ -43,6 +43,19 @@ extern char *ProgramName;
|
|
|
|
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,10 +111,10 @@ yywrap() { return(1);}
|
|
#endif
|
|
|
|
#undef unput
|
|
-#undef input
|
|
+/*#undef input*/
|
|
#undef output
|
|
#undef feof
|
|
#define unput(c) twmUnput(c)
|
|
-#define input() (*twmInputFunc)()
|
|
+/*#define input() (*twmInputFunc)()*/
|
|
#define output(c) TwmOutput(c)
|
|
#define feof() (1)
|