Ticket #1148 (closed patch: done)

Opened 12 years ago

Last modified 12 years ago

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


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.


callsignature_clone.patch Download (3.7 KB) - added by flh 12 years ago.

Change History

Changed 12 years ago by flh

Changed 12 years ago by dukeleto

  • status changed from new to closed
  • component changed from none to core
  • patch changed from new to applied
  • platform set to all
  • keywords callsignature added
  • resolution set to done

Applied as r42844, thanks!

Note: See TracTickets for help on using tickets.