Module Name:    src
Committed By:   christos
Date:           Mon Jun  5 18:59:21 UTC 2017

Modified Files:
        src/external/gpl2/dtc/dist: dtc-parser.y

Log Message:
Make this compatible with byacc


To generate a diff of this commit:
cvs rdiff -u -r1.1.1.1 -r1.2 src/external/gpl2/dtc/dist/dtc-parser.y

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/gpl2/dtc/dist/dtc-parser.y
diff -u src/external/gpl2/dtc/dist/dtc-parser.y:1.1.1.1 src/external/gpl2/dtc/dist/dtc-parser.y:1.2
--- src/external/gpl2/dtc/dist/dtc-parser.y:1.1.1.1	Fri Dec  4 07:30:05 2015
+++ src/external/gpl2/dtc/dist/dtc-parser.y	Mon Jun  5 14:59:21 2017
@@ -24,7 +24,11 @@
 #include "srcpos.h"
 
 extern int yylex(void);
+#ifndef YYBYACC
 extern void yyerror(char const *s);
+#else
+#include "dtc-parser.h"
+#endif
 #define ERROR(loc, ...) \
 	do { \
 		srcpos_error((loc), "Error", __VA_ARGS__); \
@@ -471,7 +475,14 @@ subnode:
 
 %%
 
+#ifndef YYBYACC
 void yyerror(char const *s)
 {
 	ERROR(&yylloc, "%s", s);
 }
+#else
+void yyerror(YYLTYPE *loc, char const *s)
+{
+	ERROR(loc, "%s", s);
+}
+#endif

Reply via email to