summaryrefslogtreecommitdiff
path: root/cpp/src/Slice/Parser.cpp
diff options
context:
space:
mode:
authorMatthew Newhook <matthew@zeroc.com>2009-01-14 09:59:23 -0330
committerMatthew Newhook <matthew@zeroc.com>2009-01-14 09:59:23 -0330
commitf8a2a5c47bcc31192d618de6833e9663c9feb5ac (patch)
tree53e877985e264c38f958d0165a8f6970cbcc11e7 /cpp/src/Slice/Parser.cpp
parenthttp://bugzilla.zeroc.com/bugzilla/show_bug.cgi?id=3640 - If slice2java error... (diff)
downloadice-f8a2a5c47bcc31192d618de6833e9663c9feb5ac.tar.bz2
ice-f8a2a5c47bcc31192d618de6833e9663c9feb5ac.tar.xz
ice-f8a2a5c47bcc31192d618de6833e9663c9feb5ac.zip
http://bugzilla.zeroc.com/bugzilla/show_bug.cgi?id=3517 ; translator stdout/stderr.
Diffstat (limited to 'cpp/src/Slice/Parser.cpp')
-rw-r--r--cpp/src/Slice/Parser.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/cpp/src/Slice/Parser.cpp b/cpp/src/Slice/Parser.cpp
index 866a580373a..5d682503ec3 100644
--- a/cpp/src/Slice/Parser.cpp
+++ b/cpp/src/Slice/Parser.cpp
@@ -4714,7 +4714,7 @@ Slice::Operation::attributes() const
}
if(i == 2)
{
- cout << definitionContext()->filename() << ":" << line()
+ cerr << definitionContext()->filename() << ":" << line()
<< ": warning: invalid freeze metadata for operation" << endl;
}
else
@@ -4736,7 +4736,7 @@ Slice::Operation::attributes() const
{
if(result != 0 && (i == int(Supports) || i == int(Never)))
{
- cout << definitionContext()->filename() << ":" << line()
+ cerr << definitionContext()->filename() << ":" << line()
<< ": warning: invalid freeze metadata for operation" << endl;
}
else
@@ -4751,7 +4751,7 @@ Slice::Operation::attributes() const
if(i == 4)
{
- cout << definitionContext()->filename() << ":" << line()
+ cerr << definitionContext()->filename() << ":" << line()
<< ": warning: invalid freeze metadata for operation" << endl;
//
@@ -5170,9 +5170,9 @@ Slice::Unit::error(const char* s)
string file = currentFile();
if(!file.empty())
{
- cout << file << ':' << _currentLine << ": ";
+ cerr << file << ':' << _currentLine << ": ";
}
- cout << s << endl;
+ cerr << s << endl;
_errors++;
}
@@ -5188,9 +5188,9 @@ Slice::Unit::warning(const char* s) const
string file = currentFile();
if(!file.empty())
{
- cout << file << ':' << _currentLine << ": ";
+ cerr << file << ':' << _currentLine << ": ";
}
- cout << "warning: " << s << endl;
+ cerr << "warning: " << s << endl;
}
void