Control: tags -1 + patch
> > parser.c: In function ‘yyparse’:
> > parser.c:1250:16: error: implicit declaration of function ‘yylex’
> > [-Werror=implicit-function-declaration]
> > 1250 | yychar = yylex ();
> > | ^~~~~
> > parser.y:179:17: error: implicit declaration of function ‘DisplayMessage’
> > [-Werror=implicit-function-declaration]
> > 179 | DisplayMessage("Black wins", False);
> > | ^~~~~~~~~~~~~~
The attached patch should work around this issue.
But it may be a good idea to rewrite some of the code to use a
dedicated include file instead of simply declaring the missing
functions.
Greetings
Roland
--- a/parser.y
+++ b/parser.y
@@ -67,7 +67,10 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
-
+
+extern void DisplayMessage(char *message, int toRemotePlayer);
+extern int yylex (void);
+
enum { False, True };
static void yyerror();