URL:
<http://gna.org/patch/?1973>
Summary: Add specenum utilities for registry
Project: Freeciv
Submitted by: pepeto
Submitted on: samedi 18.09.2010 à 12:03
Category: general
Priority: 5 - Normal
Status: Ready For Test
Privacy: Public
Assigned to: pepeto
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Planned Release: 2.3.0
_______________________________________________________
Details:
Added:
* secfile_insert_enum();
* secfile_insert_enum_comment();
* secfile_replace_enum();
* secfile_replace_enum_comment();
* secfile_insert_enum_vec();
* secfile_insert_enum_vec_comment();
* secfile_replace_enum_vec();
* secfile_replace_enum_vec_comment();
* secfile_lookup_enum();
* secfile_lookup_enum_default();
* secfile_lookup_enum_vec();
Those macros handle automatically the type of the enum if defined with
specenum. Plain enum are saved as name, and bitwise enum are saved in the
list of the names separated by '|' (for example "VALUE0|VALUE1|VALUE4").
_______________________________________________________
File Attachments:
-------------------------------------------------------
Date: samedi 18.09.2010 à 12:03 Name: trunk_secfile_specenum.diff Size: 37
ko By: pepeto
<http://gna.org/patch/download.php?file_id=10381>
_______________________________________________________
Reply to this item at:
<http://gna.org/patch/?1973>
_______________________________________________
Message posté via/par Gna!
http://gna.org/
_______________________________________________
Freeciv-dev mailing list
[email protected]
https://mail.gna.org/listinfo/freeciv-dev