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:
Milton Miller 2007-07-07 01:18:47 -05:00 committed by Jon Loeliger
parent 81fda8a6f1
commit 6d7b222430
2 changed files with 1 additions and 1 deletions

View file

@ -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;

View file

@ -62,6 +62,7 @@ typedef struct YYLTYPE {
extern void yyerror(char const *);
extern int srcpos_filenum; extern int srcpos_filenum;