[Freeciv-Dev] [patch #1355] use specnum.h for the server state
Update of patch #1355 (project freeciv): Status: Ready For Test = Done Open/Closed:Open = Closed ___ Follow-up Comment #5: Committed at revisions 16340 (trunk) and 16341 (S2_2). ___ Reply to this item at: http://gna.org/patch/?1355 ___ Message posté via/par Gna! http://gna.org/ ___ Freeciv-dev mailing list Freeciv-dev@gna.org https://mail.gna.org/listinfo/freeciv-dev
[Freeciv-Dev] [patch #1355] use specnum.h for the server state
Update of patch #1355 (project freeciv): Status: In Progress = Ready For Test ___ Follow-up Comment #4: Attached version against current svn. (file #7233) ___ Additional Item Attachment: File name: trunk_S2_2_server_states_specenum.diff Size:2 KB ___ Reply to this item at: http://gna.org/patch/?1355 ___ Message posté via/par Gna! http://gna.org/ ___ Freeciv-dev mailing list Freeciv-dev@gna.org https://mail.gna.org/listinfo/freeciv-dev
[Freeciv-Dev] [patch #1355] use specnum.h for the server state
Follow-up Comment #2, patch #1355 (project freeciv): Why do you changed also clients states? That's not very important, but it useless in this case. OK; so this part can be neglected. I think you should use the registry function secfile_lookup_str_int(), because secfile_lookup_str_default() and secfile_lookup_int_default() exits the server. (Until I finish my patch for registry). secfile_lookup_str_int() exists the server if the section does not exists. The other two functions return the default value if the section does not exists and exit the server only if the section exists but is no string / int ... ___ Reply to this item at: http://gna.org/patch/?1355 ___ Nachricht geschickt von/durch Gna! http://gna.org/ ___ Freeciv-dev mailing list Freeciv-dev@gna.org https://mail.gna.org/listinfo/freeciv-dev
[Freeciv-Dev] [patch #1355] use specnum.h for the server state
Follow-up Comment #3, patch #1355 (project freeciv): secfile_lookup_str_int() exists the server if the section does not exists. The other two functions return the default value if the section does not exists and exit the server only if the section exists but is no string / int ... lol, that's why I don't like the current registry interface. There is also a section_file_lookup() which could be used to know if the section exists or not... ___ Reply to this item at: http://gna.org/patch/?1355 ___ Message posté via/par Gna! http://gna.org/ ___ Freeciv-dev mailing list Freeciv-dev@gna.org https://mail.gna.org/listinfo/freeciv-dev
[Freeciv-Dev] [patch #1355] use specnum.h for the server state
URL: http://gna.org/patch/?1355 Summary: use specnum.h for the server state Project: Freeciv Submitted by: syntron Submitted on: Samstag 31.10.2009 um 23:35 Category: general Priority: 5 - Normal Status: None Privacy: Public Assigned to: None Originator Email: Open/Closed: Open Discussion Lock: Any Planned Release: 2.2.0 ___ Details: * update the savefile to use a string to save and load the server state * also update client state ___ File Attachments: --- Date: Samstag 31.10.2009 um 23:35 Name: event_cache-20091031-2-0001-use-specnum.h-for-the-server-state.diff Size: 3kB By: syntron http://gna.org/patch/download.php?file_id=7187 ___ Reply to this item at: http://gna.org/patch/?1355 ___ Nachricht geschickt von/durch Gna! http://gna.org/ ___ Freeciv-dev mailing list Freeciv-dev@gna.org https://mail.gna.org/listinfo/freeciv-dev
[Freeciv-Dev] [patch #1355] use specnum.h for the server state
Update of patch #1355 (project freeciv): Status:None = In Progress Assigned to:None = pepeto ___ Follow-up Comment #1: Why do you changed also clients states? That's not very important, but it useless in this case. I think you should use the registry function secfile_lookup_str_int(), because secfile_lookup_str_default() and secfile_lookup_int_default() exits the server. (Until I finish my patch for registry). ___ Reply to this item at: http://gna.org/patch/?1355 ___ Message posté via/par Gna! http://gna.org/ ___ Freeciv-dev mailing list Freeciv-dev@gna.org https://mail.gna.org/listinfo/freeciv-dev