widl: Some cosmetic fixes in generated code.
This commit is contained in:
parent
0f2a642d70
commit
a488901256
|
@ -233,7 +233,7 @@ static void write_function_stubs(type_t *iface)
|
|||
print_client("_RetVal = *(");
|
||||
write_type(client, def->type, def, def->tname);
|
||||
fprintf(client, " *)_StubMsg.Buffer;\n");
|
||||
fprintf(client, "_StubMsg.Buffer += sizeof(");
|
||||
print_client("_StubMsg.Buffer += sizeof(");
|
||||
write_type(client, def->type, def, def->tname);
|
||||
fprintf(client, ");\n");
|
||||
}
|
||||
|
|
|
@ -326,7 +326,7 @@ static void marshall_copy_arg( var_t *arg )
|
|||
print_proxy( "*(");
|
||||
write_type(proxy, arg->type, arg, arg->tname);
|
||||
fprintf(proxy, " *)_StubMsg.Buffer = %s;\n", arg->name );
|
||||
fprintf(proxy, "_StubMsg.Buffer += sizeof(");
|
||||
print_proxy("_StubMsg.Buffer += sizeof(");
|
||||
write_type(proxy, arg->type, arg, arg->tname);
|
||||
fprintf(proxy, ");\n");
|
||||
break;
|
||||
|
@ -425,7 +425,7 @@ static void unmarshall_copy_arg( var_t *arg )
|
|||
print_proxy( "%s = *(", arg->name );
|
||||
write_type(proxy, arg->type, arg, arg->tname);
|
||||
fprintf(proxy," *)_StubMsg.Buffer;\n");
|
||||
fprintf(proxy, "_StubMsg.Buffer += sizeof(");
|
||||
print_proxy("_StubMsg.Buffer += sizeof(");
|
||||
write_type(proxy, arg->type, arg, arg->tname);
|
||||
fprintf(proxy, ");\n");
|
||||
break;
|
||||
|
@ -604,7 +604,7 @@ static void gen_proxy(type_t *iface, func_t *cur, int idx)
|
|||
print_proxy( "_RetVal = *(" );
|
||||
write_type(proxy, def->type, def, def->tname);
|
||||
fprintf(proxy, " *)_StubMsg.Buffer;\n");
|
||||
fprintf(proxy, "_StubMsg.Buffer += sizeof(");
|
||||
print_proxy("_StubMsg.Buffer += sizeof(");
|
||||
write_type(proxy, def->type, def, def->tname);
|
||||
fprintf(proxy, ");\n");
|
||||
}
|
||||
|
@ -810,7 +810,7 @@ static void gen_stub(type_t *iface, func_t *cur, const char *cas)
|
|||
print_proxy( "*(" );
|
||||
write_type(proxy, def->type, def, def->tname);
|
||||
fprintf(proxy, " *)_StubMsg.Buffer = _RetVal;\n");
|
||||
fprintf(proxy, "_StubMsg.Buffer += sizeof(");
|
||||
print_proxy("_StubMsg.Buffer += sizeof(");
|
||||
write_type(proxy, def->type, def, def->tname);
|
||||
fprintf(proxy, ");\n");
|
||||
}
|
||||
|
@ -822,7 +822,7 @@ static void gen_stub(type_t *iface, func_t *cur, const char *cas)
|
|||
print_proxy("}\n");
|
||||
print_proxy("RpcEndFinally\n");
|
||||
|
||||
print_proxy("_Msg->BufferLength = ((long)_StubMsg.Buffer - (long)_Msg->Buffer);\n");
|
||||
print_proxy("_Msg->BufferLength = _StubMsg.Buffer - (unsigned char *)_Msg->Buffer;\n");
|
||||
indent--;
|
||||
|
||||
print_proxy("}\n");
|
||||
|
|
|
@ -306,7 +306,7 @@ static void write_function_stubs(type_t *iface)
|
|||
print_server("*(");
|
||||
write_type(server, def->type, def, def->tname);
|
||||
fprintf(server, " *)_StubMsg.Buffer = _RetVal;\n");
|
||||
fprintf(server, "_StubMsg.Buffer += sizeof(");
|
||||
print_server("_StubMsg.Buffer += sizeof(");
|
||||
write_type(server, def->type, def, def->tname);
|
||||
fprintf(server, ");\n");
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue