[Freeciv-tickets] [freeciv] #41115: Counter getter functions

Back to archive index
OSDN Ticket System norep****@osdn*****
Sun Sep 26 11:18:29 JST 2021


#41115: Counter getter functions

  Open Date: 2021-01-07 22:46
Last Update: 2021-09-26 05:18

URL for this Ticket:
    https://osdn.net//projects/freeciv/ticket/41115
RSS feed for this Ticket:
    https://osdn.net/ticket/ticket_rss.php?group_id=12505&tid=41115

---------------------------------------------------------------------

Last Changes/Comment on this Ticket:
2021-09-26 05:18 Updated by: cazfi

Comment:

+/* utility */
+#include "fcintl.h"
What this is needed for? I don't see translated strings added.
+struct counter *counter_by_id (int id)
There should be no space between function name and '(' Same for all the function declarations and calls.
+      return counters_cityindex;
+      break;
Break is not needed after return.

---------------------------------------------------------------------
Ticket Status:

      Reporter: cazfi
         Owner: kvilhaugsvik
          Type: Patches
        Status: Open [Owner assigned]
      Priority: 5 - Medium
     MileStone: 3.2.0
     Component: General
      Severity: 5 - Medium
    Resolution: None
---------------------------------------------------------------------

Ticket details:

These functions will be needed for building anything on counters module:
struct counter *counter_by_id(int id)
int counter_id(struct counter *pcount)
struct counter *counter_by_rule_name(const char *name)
const char *counter_rule_name(struct counter *pcount)
int counter_index(struct counter *pcount)
struct counter *counter_by_index(int index, enum counter_target target)

-- 
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/41115
RSS feed for this Ticket:
    https://osdn.net/ticket/ticket_rss.php?group_id=12505&tid=41115



More information about the Freeciv-tickets mailing list
Back to archive index