URL:
<http://gna.org/bugs/?13867>
Summary: [patch 01/07] get game settings via wrapper
functions
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
Release:
Operating System: None
_______________________________________________________
Details:
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
<http://gna.org/bugs/download.php?file_id=6135>
_______________________________________________________
Reply to this item at:
<http://gna.org/bugs/?13867>
_______________________________________________
Nachricht geschickt von/durch Gna!
http://gna.org/
_______________________________________________
Freeciv-dev mailing list
[email protected]
https://mail.gna.org/listinfo/freeciv-dev