#45020: req_copy() Open Date: 2022-07-05 03:48 Last Update: 2022-12-14 02:52 URL for this Ticket: https://osdn.net//projects/freeciv/ticket/45020 RSS feed for this Ticket: https://osdn.net/ticket/ticket_rss.php?group_id=12505&tid=45020 --------------------------------------------------------------------- Last Changes/Comment on this Ticket: 2022-12-14 02:52 Updated by: cazfi * Status Update from Closed to Open * Resolution Update from Fixed to None * Milestone Update from 3.2.0 to 3.1.0-beta1 Comment: This will be needed for S3_1 too, for #46266. Include also fix #45709. --------------------------------------------------------------------- Ticket Status: Reporter: cazfi Owner: cazfi Type: Patches Status: Open [Owner assigned] Priority: 5 - Medium MileStone: 3.1.0-beta1 Component: General Severity: 5 - Medium Resolution: None --------------------------------------------------------------------- Ticket details: I would need to create a temporary copy of a requirement struct. With the current content it would be possible to just assign (or memcpy() ) the content, but in case that's not going to work in the future (e.g. pointers contained in the struct) I think it's better to introduce req_copy() function for this. -- Ticket information of Freeciv project Freeciv Project is hosted on OSDN Project URL: https://osdn.net/projects/freeciv/ OSDN: https://osdn.net URL for this Ticket: https://osdn.net/projects/freeciv/ticket/45020 RSS feed for this Ticket: https://osdn.net/ticket/ticket_rss.php?group_id=12505&tid=45020