wrc: Add a trailing '\n' to the error() calls.
Francois Gouget
fgouget at free.fr
Fri Jan 27 07:08:22 CST 2012
---
error() works like Wine's other tracing and error reporting functions
and does not append a '\n'. So our messages must include a trailing
'\n'.
tools/wrc/genres.c | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/tools/wrc/genres.c b/tools/wrc/genres.c
index d6e641f..edf4823 100644
--- a/tools/wrc/genres.c
+++ b/tools/wrc/genres.c
@@ -287,13 +287,13 @@ static int parse_accel_string( const string_t *key, int flags )
(key->str.cstr[0] >= '0' && key->str.cstr[0] <= '9')))
{
print_location( &key->loc );
- error("VIRTKEY code is not equal to ascii value");
+ error("VIRTKEY code is not equal to ascii value\n");
}
if(key->str.cstr[0] == '^' && (flags & WRC_AF_CONTROL) != 0)
{
print_location( &key->loc );
- error("Cannot use both '^' and CONTROL modifier");
+ error("Cannot use both '^' and CONTROL modifier\n");
}
else if(key->str.cstr[0] == '^')
{
@@ -301,7 +301,7 @@ static int parse_accel_string( const string_t *key, int flags )
if(keycode >= ' ')
{
print_location( &key->loc );
- error("Control-code out of range");
+ error("Control-code out of range\n");
}
}
else
@@ -314,12 +314,12 @@ static int parse_accel_string( const string_t *key, int flags )
(key->str.wstr[0] >= '0' && key->str.wstr[0] <= '9')))
{
print_location( &key->loc );
- error("VIRTKEY code is not equal to ascii value");
+ error("VIRTKEY code is not equal to ascii value\n");
}
if(key->str.wstr[0] == '^' && (flags & WRC_AF_CONTROL) != 0)
{
print_location( &key->loc );
- error("Cannot use both '^' and CONTROL modifier");
+ error("Cannot use both '^' and CONTROL modifier\n");
}
else if(key->str.wstr[0] == '^')
{
@@ -327,7 +327,7 @@ static int parse_accel_string( const string_t *key, int flags )
if(keycode >= ' ')
{
print_location( &key->loc );
- error("Control-code out of range");
+ error("Control-code out of range\n");
}
}
else
--
1.7.7.3
More information about the wine-patches
mailing list