Commit ba533617 authored by Alexandre Julliard's avatar Alexandre Julliard

widl: Use the real argument names in the C method macros.

parent 2cba11aa
......@@ -578,23 +578,21 @@ static void write_method_macro(const type_t *iface, const char *name)
var_t *def = cur->def;
if (!is_callas(def->attrs)) {
const var_t *arg;
int argc = 0;
int c;
if (cur->args) LIST_FOR_EACH_ENTRY( arg, cur->args, const var_t, entry ) argc++;
fprintf(header, "#define %s_", name);
write_name(header,def);
fprintf(header, "(p");
for (c=0; c<argc; c++)
fprintf(header, ",%c", c+'a');
fprintf(header, "(This");
if (cur->args)
LIST_FOR_EACH_ENTRY( arg, cur->args, const var_t, entry )
fprintf(header, ",%s", arg->name);
fprintf(header, ") ");
fprintf(header, "(p)->lpVtbl->");
fprintf(header, "(This)->lpVtbl->");
write_name(header, def);
fprintf(header, "(p");
for (c=0; c<argc; c++)
fprintf(header, ",%c", c+'a');
fprintf(header, "(This");
if (cur->args)
LIST_FOR_EACH_ENTRY( arg, cur->args, const var_t, entry )
fprintf(header, ",%s", arg->name);
fprintf(header, ")\n");
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment