Nikolay Sivov : widl: Emit default argument values for cpp methods.
Alexandre Julliard
julliard at winehq.org
Thu Jul 26 15:34:58 CDT 2012
Module: wine
Branch: master
Commit: d54e9603b5f4ad385904dab75743ec25f539df58
URL: http://source.winehq.org/git/wine.git/?a=commit;h=d54e9603b5f4ad385904dab75743ec25f539df58
Author: Nikolay Sivov <nsivov at codeweavers.com>
Date: Thu Jul 26 15:20:50 2012 +0400
widl: Emit default argument values for cpp methods.
---
tools/widl/header.c | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/tools/widl/header.c b/tools/widl/header.c
index 454b523..f19929a 100644
--- a/tools/widl/header.c
+++ b/tools/widl/header.c
@@ -876,6 +876,13 @@ void write_args(FILE *h, const var_list_t *args, const char *name, int method, i
else fprintf(h, ",");
}
write_type_decl(h, arg->type, arg->name);
+ if (method == 2) {
+ const expr_t *expr = get_attrp(arg->attrs, ATTR_DEFAULTVALUE);
+ if (expr) {
+ fprintf(h, " = ");
+ write_expr( h, expr, 0, 1, NULL, NULL, "" );
+ }
+ }
count++;
}
if (do_indent) indentation--;
More information about the wine-cvs
mailing list