clear warnings

This commit is contained in:
anon 2024-09-15 02:29:35 +02:00
parent 31cfdc7d31
commit 33e8be5a45
2 changed files with 5 additions and 3 deletions

View File

@ -1,8 +1,6 @@
%{
#include "tbsp.yy.h"
void yyerror(const char * const s, ...);
extern char * language;
extern char * top;
extern char * verbatim;
@ -27,6 +25,8 @@
#include <kvec.h>
typedef kvec_t(rule_t) rule_vector_t;
extern rule_vector_t rules;
extern void yyerror(const char * const s, ...);
}
%code provides {
void tbsp_tab_init(void);

View File

@ -1,5 +1,7 @@
%{
%top{
#define _GNU_SOURCE
}
%{
#include <stdio.h>
#include <string.h>