Skip to content

Commit

Permalink
dtc: move declaration of yyerror
Browse files Browse the repository at this point in the history
yyerror() is used by both dtc-parser.y and dtc-lexer.l, so move
the declaration to srcpos.h.

Signed-off-by: Milton Miller <[email protected]>
  • Loading branch information
Milton Miller authored and Jon Loeliger committed Jul 7, 2007
1 parent 81fda8a commit 6d7b222
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 0 additions & 1 deletion dtc-parser.y
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
#include "srcpos.h"

int yylex(void);
void yyerror(char const *);
cell_t cell_from_string(char *s, unsigned int base);

extern struct boot_info *the_boot_info;
Expand Down
1 change: 1 addition & 0 deletions srcpos.h
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ typedef struct YYLTYPE {



extern void yyerror(char const *);

extern int srcpos_filenum;

Expand Down

0 comments on commit 6d7b222

Please sign in to comment.