Ticket #1148 (closed patch: done)
Implement "clone" method for CallSignature
Reported by: | flh | Owned by: | |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | core | Version: | trunk |
Severity: | medium | Keywords: | callsignature |
Cc: | Language: | ||
Patch status: | applied | Platform: | all |
Description
Currently, CallSignature relies on the default clone method, which does not work as expected: when cloning a CallSignature, it looses all its stored parameters.
The attached patch implements clone for CallSignature: it duplicates the argument list (but not the arguments themselves), and all other attributes of CallSignature.
It also fixes a small bug in hash creation in CallSignature: the hash is made of pointers to Pcc_cell, but the hash is created as a hash of PMCs, which prevents cloning.
New test for clone included.
Attachments
Change History
Note: See
TracTickets for help on using
tickets.