charmxi: Write syntax error messages to stderr, not stdout
authorPhil Miller <mille121@illinois.edu>
Mon, 27 Jun 2011 00:01:11 +0000 (17:01 -0700)
committerPhil Miller <mille121@illinois.edu>
Mon, 27 Jun 2011 00:01:11 +0000 (17:01 -0700)
src/xlat-i/xi-grammar.tab.C
src/xlat-i/xi-grammar.y

index 7c3b453be75cc5fa14d9b9f92e70f6c8765ca6f2..03e4679ac8076f04b354806250ebfb632dad5516 100644 (file)
@@ -4450,7 +4450,7 @@ yyreturn:
 
 void yyerror(const char *mesg)
 {
-    std::cout << cur_file<<":"<<lineno<<": Charmxi syntax error> "
+    std::cerr << cur_file<<":"<<lineno<<": Charmxi syntax error> "
              << mesg << std::endl;
 }
 
index 50dfb8bcd2143ede7c006825ebd158a53bfd4715..9a0dd4b29e9a954680084b30a81d547c27d5c9f9 100644 (file)
@@ -1099,6 +1099,6 @@ HashIFDefComment: HASHIFDEF Name
 %%
 void yyerror(const char *mesg)
 {
-    std::cout << cur_file<<":"<<lineno<<": Charmxi syntax error> "
+    std::cerr << cur_file<<":"<<lineno<<": Charmxi syntax error> "
              << mesg << std::endl;
 }