• Rob Shearman's avatar
    widl: Fix optimisation for writing out ref pointers to simple structs and base types. · cc51c30a
    Rob Shearman authored
    The optimisation in write_remoting_arg for sizing, marshalling,
    unmarshalling and freeing ref pointers to base types directly was
    broken in d458a599 and caused
    unnecessary calls to pointer marshalling functions.
    
    The same was true for a similar optimisation for simple structures
    where their size can be pre-calculated, freeing omitted and the
    NdrSimpleStructMarshall/Unmarshall functions called directly instead
    of calling NdrPointerMarshall/Unmarshall first.
    
    Fix this by looking at the type of the referrent instead of the type
    of the pointer, making sure to not classify user types as simple
    structures.
    
    Additionally remove some dead code that would never be executed
    because the code is in an RPC_FC_RP case, inside a !is_ptr if block
    (and RPC_FC_RP is a pointer type).
    cc51c30a
Name
Last commit
Last update
..
Makefile.in Loading commit data...
client.c Loading commit data...
expr.c Loading commit data...
expr.h Loading commit data...
hash.c Loading commit data...
hash.h Loading commit data...
header.c Loading commit data...
header.h Loading commit data...
parser.h Loading commit data...
parser.l Loading commit data...
parser.y Loading commit data...
proxy.c Loading commit data...
server.c Loading commit data...
typegen.c Loading commit data...
typegen.h Loading commit data...
typelib.c Loading commit data...
typelib.h Loading commit data...
typelib_struct.h Loading commit data...
utils.c Loading commit data...
utils.h Loading commit data...
widl.c Loading commit data...
widl.h Loading commit data...
widl.man.in Loading commit data...
widltypes.h Loading commit data...
write_msft.c Loading commit data...