X-Git-Url: https://git.cworth.org/git?p=ttt;a=blobdiff_plain;f=src%2Fttt-client.c;h=e68f70ca5cbde835021b053814eec7098ec22ff4;hp=7797090a49b17d94d8467c9c0718c3b49bd78fcc;hb=5ae1f2d980cc2bc30138c3e13d04f4e068f34911;hpb=4dd4255d58b2b4704d404264fc03e0e154d9987c diff --git a/src/ttt-client.c b/src/ttt-client.c index 7797090..e68f70c 100644 --- a/src/ttt-client.c +++ b/src/ttt-client.c @@ -20,15 +20,15 @@ */ #include "ttt-client.h" - -#define YY_DECL int yylex (yyscan_t yyscanner, ttt_token_t *token) - #include "ttt-error.h" -#include "ttt-lex.h" #include "ttt-server.h" #include "ttt-socket.h" #include "ttt-token.h" +#define YY_DECL int yylex (yyscan_t yyscanner, ttt_token_t *token) +#include "ttt-lex.h" +YY_DECL; + struct _ttt_client { pthread_mutex_t mutex; pthread_t thread; @@ -731,3 +731,9 @@ ttt_client_get_num_wins (ttt_client_t *client) { return client->num_wins; } + +/* This is just to keep the compiler quiet about a function declared + * static but never defined. Just an annoying bug in flex's output. */ +static int yy_init_globals (yyscan_t yyscanner) {return 0;} +void use_yy_init_globals (void); +void use_yy_init_globals (void) {yyscan_t scan; yy_init_globals(scan);}