Summary: [patch 01/07] get game settings via wrapper
                 Project: Freeciv
            Submitted by: syntron
            Submitted on: Sonntag 05.07.2009 um 22:15
                Category: general
                Severity: 2 - Minor
                Priority: 5 - Normal
                  Status: None
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
        Operating System: None



get game settings via wrapper functions

* cleanup naming:
  - definition: struct setting {};
  - data: struct setting settings[];
  - pointer: struct setting *pset;
  - functions: setting_*()
* remove 'extern' flag from settings
* define (and use) iterating macro for settings

Using '_()' within the setting_*() functions is not
done because the some callers need the untranslated
string (see stdinhand.c:send_server_setting()).

This patch serie includes the following patches:

[patch 01/07] get game settings via wrapper functions
[patch 02/07] use an union in the struct setting
[patch 03/07] simplify validation functions
[patch 04/07] extra functions to check and update settings
[patch 05/07] add settting action callback function
[patch 06/07] move sset_is_to_client() to settings.c
[patch 07/07] load game settings from ruleset file

It supersedes gna13621, gna13805, gna13810

Each step results in a working freeciv version if all
previous patches are applied.


File Attachments:

Date: Sonntag 05.07.2009 um 22:15  Name:
01-get-game-settings-via-wrapper-functions.patch  Size: 39kB   By: syntron



Reply to this item at:


  Nachricht geschickt von/durch Gna!

Freeciv-dev mailing list

Reply via email to