File xboard-4.2.7-flex.patch of Package xboard

--- parser.l
+++ parser.l
@@ -80,15 +80,13 @@
 #undef YY_INPUT
 #define YY_INPUT(buf, result, max_size) my_yy_input(buf, &result, max_size)
 #undef YY_DECL
-#define YY_DECL                     \
-    int _yylex YY_PROTO((void));    \
-    int yylex YY_PROTO((void))      \
-    {                               \
-	int result = _yylex();      \
-	yy_text = (char *) yytext;  \
-	return(result);             \
-    }                               \
-    int _yylex YY_PROTO((void))
+#define YY_DECL int _yylex (void)
+int yylex (void)
+{
+    int result = _yylex();
+    yy_text = (char *) yytext;
+    return(result);
+}
 #else
 /* This is lex */
 #undef input
@@ -855,9 +853,9 @@
 */
 int yyoffset()
 {
-    int pos = yy_c_buf_p - yy_current_buffer->yy_ch_buf;
+    int pos = yy_c_buf_p - YY_CURRENT_BUFFER->yy_ch_buf;
 
-    return(ftell(yy_current_buffer->yy_input_file) -
+    return(ftell(YY_CURRENT_BUFFER->yy_input_file) -
          yy_n_chars + pos);
 }