mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 10:04:49 +00:00
don't generate lvalue assignment code
svn path=/trunk/; revision=15145
This commit is contained in:
parent
65305e4968
commit
87bab86c6b
2 changed files with 10 additions and 4 deletions
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue