summaryrefslogtreecommitdiff
path: root/cpp/src/IcePack/Parser.cpp
diff options
context:
space:
mode:
authorMarc Laukien <marc@zeroc.com>2001-09-03 00:26:54 +0000
committerMarc Laukien <marc@zeroc.com>2001-09-03 00:26:54 +0000
commit45dce7b649d5e7b0e41e1e36d5a8054977dda0a2 (patch)
tree7514176e655ea4aa0ac81dea9a246aec5025c119 /cpp/src/IcePack/Parser.cpp
parentlittle endian (diff)
downloadice-45dce7b649d5e7b0e41e1e36d5a8054977dda0a2.tar.bz2
ice-45dce7b649d5e7b0e41e1e36d5a8054977dda0a2.tar.xz
ice-45dce7b649d5e7b0e41e1e36d5a8054977dda0a2.zip
fixes
Diffstat (limited to 'cpp/src/IcePack/Parser.cpp')
-rw-r--r--cpp/src/IcePack/Parser.cpp14
1 files changed, 10 insertions, 4 deletions
diff --git a/cpp/src/IcePack/Parser.cpp b/cpp/src/IcePack/Parser.cpp
index 1f3febedad8..da7cb9be577 100644
--- a/cpp/src/IcePack/Parser.cpp
+++ b/cpp/src/IcePack/Parser.cpp
@@ -216,9 +216,12 @@ IcePack::Parser::error(const char* s)
{
if (!yycommands && !isatty(fileno(yyin)))
{
- cerr << _currentFile << ':' << _currentLine << ' ';
+ cerr << _currentFile << ':' << _currentLine << ": " << s << endl;
+ }
+ else
+ {
+ cerr << "error: " << s << endl;
}
- cerr << "error: " << s << endl;
yynerrs++;
}
@@ -233,9 +236,12 @@ IcePack::Parser::warning(const char* s)
{
if (!yycommands && !isatty(fileno(yyin)))
{
- cerr << _currentFile << ':' << _currentLine << ' ';
+ cerr << _currentFile << ':' << _currentLine << ": warning: " << s << endl;
+ }
+ else
+ {
+ cerr << "warning: " << s << endl;
}
- cerr << "warning: " << s << endl;
}
void