don't generate lvalue assignment code

svn path=/trunk/; revision=15145
This commit is contained in:
Thomas Bluemel 2005-05-08 18:32:57 +00:00
parent 65305e4968
commit 87bab86c6b
2 changed files with 10 additions and 4 deletions

View file

@ -1,5 +1,11 @@
ChangeLog
2004-05-08 weiden
tools/widl/server.c
Don't generate lvalue assignment code.
2004-05-08 weiden
tools/widl/client.c

View file

@ -638,16 +638,16 @@ static void init_pointers (func_t *func)
{
if (var->type->type == RPC_FC_RP)
{
print_server("(");
print_server("*(");
write_type(server, var->type, NULL, var->tname);
fprintf(server, ")%s = 0;\n", var->name);
fprintf(server, "*)&%s = NULL;\n", var->name);
}
}
else if (var->ptr_level == 1)
{
print_server("(");
print_server("*(");
write_type(server, var->type, NULL, var->tname);
fprintf(server, " __RPC_FAR *)%s = 0;\n", var->name);
fprintf(server, " __RPC_FAR *)&%s = 0;\n", var->name);
}
else if (var->ptr_level > 1)
{