dtc: move declaration of yyerror
yyerror() is used by both dtc-parser.y and dtc-lexer.l, so move the declaration to srcpos.h. Signed-off-by: Milton Miller <miltonm@bga.com>
This commit is contained in:
parent
81fda8a6f1
commit
6d7b222430
2 changed files with 1 additions and 1 deletions
|
@ -26,7 +26,6 @@
|
||||||
#include "srcpos.h"
|
#include "srcpos.h"
|
||||||
|
|
||||||
int yylex(void);
|
int yylex(void);
|
||||||
void yyerror(char const *);
|
|
||||||
cell_t cell_from_string(char *s, unsigned int base);
|
cell_t cell_from_string(char *s, unsigned int base);
|
||||||
|
|
||||||
extern struct boot_info *the_boot_info;
|
extern struct boot_info *the_boot_info;
|
||||||
|
|
1
srcpos.h
1
srcpos.h
|
@ -62,6 +62,7 @@ typedef struct YYLTYPE {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
extern void yyerror(char const *);
|
||||||
|
|
||||||
extern int srcpos_filenum;
|
extern int srcpos_filenum;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue