Dan Hipschman : widl: Add newlines to error messages that are missing them.
Alexandre Julliard
julliard at winehq.org
Wed Oct 3 06:08:14 CDT 2007
Module: wine
Branch: master
Commit: 4c8c425f425907ddb6abf33294000e76e940ca05
URL: http://source.winehq.org/git/wine.git/?a=commit;h=4c8c425f425907ddb6abf33294000e76e940ca05
Author: Dan Hipschman <dsh at linux.ucla.edu>
Date: Tue Oct 2 21:38:31 2007 -0700
widl: Add newlines to error messages that are missing them.
---
tools/widl/parser.y | 4 ++--
tools/widl/typegen.c | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/tools/widl/parser.y b/tools/widl/parser.y
index c4fc2c9..365d546 100644
--- a/tools/widl/parser.y
+++ b/tools/widl/parser.y
@@ -1291,7 +1291,7 @@ static void set_type(var_t *v, type_t *type, int ptr_level, array_dims_t *arr)
v->type->type = ptr_type;
}
else if (!arr)
- error("%s: pointer attribute applied to non-pointer type", v->name);
+ error("%s: pointer attribute applied to non-pointer type\n", v->name);
}
sizeless = FALSE;
@@ -1309,7 +1309,7 @@ static void set_type(var_t *v, type_t *type, int ptr_level, array_dims_t *arr)
error("%s: array dimension must be positive\n", v->name);
if (0xffffffffuL / size < (unsigned long) dim->cval)
- error("%s: total array size is too large", v->name);
+ error("%s: total array size is too large\n", v->name);
else if (0xffffuL < size * dim->cval)
v->type = make_type(RPC_FC_LGFARRAY, v->type);
else
diff --git a/tools/widl/typegen.c b/tools/widl/typegen.c
index 88bb7c9..b5c861c 100644
--- a/tools/widl/typegen.c
+++ b/tools/widl/typegen.c
@@ -1611,7 +1611,7 @@ static void write_struct_members(FILE *file, const type_t *type,
fc = RPC_FC_ALIGNM8;
break;
default:
- error("write_struct_members: cannot align type %d", ft->type);
+ error("write_struct_members: cannot align type %d\n", ft->type);
}
print_file(file, 2, "0x%x,\t/* %s */\n", fc, string_of_type(fc));
offset = (offset + (align - 1)) & ~(align - 1);
More information about the wine-cvs
mailing list