diff --git a/parse_misc.cc b/parse_misc.cc index 2de0dfee1..6f636296e 100644 --- a/parse_misc.cc +++ b/parse_misc.cc @@ -39,6 +39,10 @@ std::ostream& operator << (std::ostream&o, const YYLTYPE&loc) return o; } +void VLwarn(const char*msg) +{ + cerr << yylloc.text << ":" << yylloc.first_line << ": " << msg << endl; +} void VLerror(const char*msg) { diff --git a/parse_misc.h b/parse_misc.h index d02902013..05c35fb01 100644 --- a/parse_misc.h +++ b/parse_misc.h @@ -59,6 +59,7 @@ extern int VLlex(); extern void VLerror(const char*msg); extern void VLerror(const YYLTYPE&loc, const char*msg, ...) __attribute__((format(printf,2,3))); #define yywarn VLwarn +extern void VLwarn(const char*msg); extern void VLwarn(const YYLTYPE&loc, const char*msg); extern void destroy_lexor();