Module: wine Branch: master Commit: 5f7886925db80cfe93aea89b4b3d604ab62e1cc8 URL: http://source.winehq.org/git/wine.git/?a=commit;h=5f7886925db80cfe93aea89b4b...
Author: Michael Karcher wine@mkarcher.dialup.fu-berlin.de Date: Thu Jan 8 00:21:18 2009 +0100
widl: Make write_base_type take a format char instead of a type desc ptr.
---
tools/widl/typegen.c | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/tools/widl/typegen.c b/tools/widl/typegen.c index dfcb31e..d3d5cb3 100644 --- a/tools/widl/typegen.c +++ b/tools/widl/typegen.c @@ -776,11 +776,11 @@ void write_procformatstring(FILE *file, const statement_list_t *stmts, type_pred print_file(file, indent, "\n"); }
-static int write_base_type(FILE *file, const type_t *type, unsigned int *typestring_offset) +static int write_base_type(FILE *file, unsigned char fc, unsigned int *typestring_offset) { - if (is_base_type(type->type)) + if (is_base_type(fc)) { - print_file(file, 2, "0x%02x,\t/* %s */\n", type->type, string_of_type(type->type)); + print_file(file, 2, "0x%02x,\t/* %s */\n", fc, string_of_type(fc)); *typestring_offset += 1; return 1; } @@ -1306,7 +1306,7 @@ static void write_member_type(FILE *file, const type_t *cont, print_file(file, 2, "0x%x,\t/* %s */\n", fc, string_of_type(fc)); *tfsoff += 1; } - else if (!write_base_type(file, type, tfsoff)) + else if (!write_base_type(file, type->type, tfsoff)) error("Unsupported member type 0x%x\n", type->type); }