[Crosstoolchain-logs] [device-tree-compiler] 111/357: dtc: move declaration of yyerror

Hector Oron zumbi at moszumanska.debian.org
Thu Dec 8 17:05:56 UTC 2016


This is an automated email from the git hooks/post-receive script.

zumbi pushed a commit to branch upstream/1.3.x
in repository device-tree-compiler.

commit 6d7b22243045dc514b5ea6c004fc50af8581ed9b
Author: Milton Miller <miltonm at bga.com>
Date:   Sat Jul 7 01:18:47 2007 -0500

    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 at bga.com>
---
 dtc-parser.y | 1 -
 srcpos.h     | 1 +
 2 files changed, 1 insertion(+), 1 deletion(-)

diff --git a/dtc-parser.y b/dtc-parser.y
index 39d9dac..15caf5a 100644
--- a/dtc-parser.y
+++ b/dtc-parser.y
@@ -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;
diff --git a/srcpos.h b/srcpos.h
index bc5b525..ce7ab5b 100644
--- a/srcpos.h
+++ b/srcpos.h
@@ -62,6 +62,7 @@ typedef struct YYLTYPE {
 
 
 
+extern void yyerror(char const *);
 
 extern int srcpos_filenum;
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/crosstoolchain/device-tree-compiler.git



More information about the Crosstoolchain-logs mailing list