#48245: Inline tileset_tile_width() and friends Open Date: 2023-06-15 07:39 Last Update: 2023-10-07 17:20 URL for this Ticket: https://osdn.net//projects/freeciv/ticket/48245 RSS feed for this Ticket: https://osdn.net/ticket/ticket_rss.php?group_id=12505&tid=48245 --------------------------------------------------------------------- Last Changes/Comment on this Ticket: 2023-10-07 17:20 Updated by: cazfi Comment: struct tileset is defined only inside tilespec.c, so cannot access its members in inline functions on tilespec.h. --------------------------------------------------------------------- Ticket Status: Reporter: cazfi Owner: (None) Type: Patches Status: Open Priority: 5 - Medium MileStone: 3.0.9 Component: Client common Severity: 5 - Medium Resolution: None --------------------------------------------------------------------- Ticket details: Client constantly (the values are not even passed on function calls, but each called function does this on their own) uses simple getters tileset_tile_width() and tileset_tile_height(). We ought to avoid function call overhead with those. -- 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/48245 RSS feed for this Ticket: https://osdn.net/ticket/ticket_rss.php?group_id=12505&tid=48245