For newer versions of Bison, the declaration of our calib_yyparse()
function in "lib/libinternal.h" clashes with that in the generated
"lib/calib_yacc.h".
Remove the declarations of calib_yyerror() and calib_yyparse() from
"lib/libinternal.h" and declare them in "lib/calib_yacc.c".
#include <math.h>
#include <string.h>
#include <stdlib.h>
-#include "calib_yacc.h"
-#include "calib_lex.h"
#define YYERROR_VERBOSE
#define YYPARSE_PARAM parse_arg
#define YYLEX_PARAM priv(YYPARSE_PARAM)->yyscanner
+#include "calib_yacc.h"
+#include "calib_lex.h"
+
enum polynomial_direction
{
POLYNOMIAL_TO_PHYS,
return priv.parsed_file;
}
+static void yyerror(const char *s)
+{
+ fprintf(stderr, "%s\n", s);
+}
+
%}
%pure_parser
%%
-void calib_yyerror(char *s)
-{
- fprintf(stderr, "%s\n", s);
-}
-
int comedi_get_rangetype(comedi_t *it,unsigned int subdevice,unsigned int chan);
#define YY_DECL int calib_yylex(YYSTYPE *calib_lvalp, yyscan_t yyscanner)
-void calib_yyerror(char *s);
-int calib_yyparse(void *parse_arg);
#endif