widl [3/3]: Add newlines to error messages that were missing them
Dan Hipschman
dsh at linux.ucla.edu
Fri Sep 21 18:18:48 CDT 2007
This patch just adds newlines at the end of some error messages that
were 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 17dd700..822d80b 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 4d07fee..12b6a20 100644
--- a/tools/widl/typegen.c
+++ b/tools/widl/typegen.c
@@ -1600,7 +1600,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-patches
mailing list