[Freeciv-Dev] [bug #13803] [Patch] Start position cleanup and extension

2009-06-28 Thread Madeline Book
URL: http://gna.org/bugs/?13803 Summary: [Patch] Start position cleanup and extension Project: Freeciv Submitted by: mbook Submitted on: Sunday 06/28/2009 at 06:07 Category: editor Severity: 3 - Normal

[Freeciv-Dev] (PR#40833) [update] Re: Bug report for Freeciv version 2.1.9 gui-gtk-2.0

2009-06-28 Thread Michał Borsuk
URL: http://bugs.freeciv.org/Ticket/Display.html?id=40833 (gdb) bt full #0 0xb7f5b430 in __kernel_vsyscall () No symbol table info available. #1 0xb77916d0 in raise () from /lib/tls/i686/cmov/libc.so.6 No symbol table info available. #2 0xb7793098 in abort () from

[Freeciv-Dev] [bug #13770] Emphasize OOP for path finding code

2009-06-28 Thread pepeto
Follow-up Comment #1, bug #13770 (project freeciv): Added macro pf_map_iterate_move_costs to iterate only the move cost, which should work faster than pf_map_iterate_positions, especially in the AI code. Also, added the functions pf_*_map_iterate_until(), which prevents to iterate the whole map

[Freeciv-Dev] [bug #13804] remove unused function prototype report_server_options()

2009-06-28 Thread Matthias Pfafferodt
URL: http://gna.org/bugs/?13804 Summary: remove unused function prototype report_server_options() Project: Freeciv Submitted by: syntron Submitted on: Sonntag 28.06.2009 um 14:16 Category: general

[Freeciv-Dev] [bug #13805] [patch] change call by id (int) to call by reference (struct settings_s)

2009-06-28 Thread Matthias Pfafferodt
URL: http://gna.org/bugs/?13805 Summary: [patch] change call by id (int) to call by reference (struct settings_s) Project: Freeciv Submitted by: syntron Submitted on: Sonntag 28.06.2009 um 14:21 Category: general

[Freeciv-Dev] [bug #13804] remove unused function prototype report_server_options()

2009-06-28 Thread Marko Lindqvist
Update of bug #13804 (project freeciv): Assigned to:None = cazfi ___ Reply to this item at: http://gna.org/bugs/?13804 ___ Message sent

[Freeciv-Dev] [bug #13807] [patch] define the settings within a function

2009-06-28 Thread Matthias Pfafferodt
URL: http://gna.org/bugs/?13807 Summary: [patch] define the settings within a function Project: Freeciv Submitted by: syntron Submitted on: Sonntag 28.06.2009 um 17:31 Category: general Severity: 2 -

[Freeciv-Dev] [bug #13805] [patch] change call by id (int) to call by reference (struct settings_s)

2009-06-28 Thread Madeline Book
Update of bug #13805 (project freeciv): Assigned to:None = mbook ___ Follow-up Comment #1: This patch is good, but you can reduce references to the global variable 'settings' even more

[Freeciv-Dev] [bug #13805] [patch] change call by id (int) to call by reference (struct settings_s)

2009-06-28 Thread Madeline Book
Follow-up Comment #2, bug #13805 (project freeciv): In case you want git to use your public name and email address (instead of using information from the local machine), use git config --global user.name Your Name Comes Here git config --global user.email y...@yourdomain.example.com to set

[Freeciv-Dev] [bug #13807] [patch] define the settings within a function

2009-06-28 Thread Madeline Book
Update of bug #13807 (project freeciv): Assigned to:None = mbook ___ Reply to this item at: http://gna.org/bugs/?13807 ___ Message sent

[Freeciv-Dev] [bug #13807] [patch] define the settings within a function

2009-06-28 Thread Madeline Book
Follow-up Comment #1, bug #13807 (project freeciv): I'm not sure that we need to get rid of the static 'settings' array and use dynamic memory for settings, since even with your approach there will still be at least one variable global to the settings.c file. If you are worried that you cannot

[Freeciv-Dev] [bug #13805] [patch] change call by id (int) to call by reference (struct settings_s)

2009-06-28 Thread Matthias Pfafferodt
Follow-up Comment #3, bug #13805 (project freeciv): This patch is good, but you can reduce references to the global variable 'settings' even more by using helper functions to get a setting pointer from a setting id: So ideally there would be _no_ global variable settings but helper

[Freeciv-Dev] [bug #13807] [patch] define the settings within a function

2009-06-28 Thread Matthias Pfafferodt
Follow-up Comment #3, bug #13807 (project freeciv): If you are worried that you cannot use static initializers with unions, you need not be, since you can use the syntax: union foo { int i; const char *s; bool b; }; union foo f1 = { .b = TRUE }; union foo f2 = { .s = hi };

[Freeciv-Dev] [bug #13670] [Patch] Option to generate manual pages from custom ruleset

2009-06-28 Thread Marko Lindqvist
Update of bug #13670 (project freeciv): Category:None = general Status:None = Fixed Assigned to:None = cazfi Open/Closed:

[Freeciv-Dev] [bug #13807] [patch] define the settings within a function

2009-06-28 Thread Madeline Book
Follow-up Comment #4, bug #13807 (project freeciv): This will help! The 'static initializers' error message was the reason for me to try it with a function. Is an union portable to win, ...? Struct/union initializers are part of the c language (but not c++ apparently), so it should work with

[Freeciv-Dev] [bug #13810] [patch] use unions to save the game settings

2009-06-28 Thread Matthias Pfafferodt
URL: http://gna.org/bugs/?13810 Summary: [patch] use unions to save the game settings Project: Freeciv Submitted by: syntron Submitted on: Sonntag 28.06.2009 um 22:07 Category: general Severity: 2 - Minor

[Freeciv-Dev] [bug #13810] [patch] use unions to save the game settings

2009-06-28 Thread pepeto
Follow-up Comment #1, bug #13810 (project freeciv): Why not using the union like: union { struct { bool *value; const bool default_value; const bool_validate_func_t validate; } boolean; struct { int *value; const int default_value; const int min_value; const int

[Freeciv-Dev] [bug #13810] [patch] use unions to save the game settings

2009-06-28 Thread Madeline Book
Update of bug #13810 (project freeciv): Assigned to:None = mbook ___ Reply to this item at: http://gna.org/bugs/?13810 ___ Message sent

[Freeciv-Dev] [bug #13810] [patch] use unions to save the game settings

2009-06-28 Thread Madeline Book
Follow-up Comment #3, bug #13810 (project freeciv): It looks really better and understandable to me. More over, it should take the minimal size of the whole structure, and not an addition of all of them. I agree with pepeto, the union of structs would probably make more sense, since what we

[Freeciv-Dev] [bug #13810] [patch] use unions to save the game settings

2009-06-28 Thread Madeline Book
Follow-up Comment #4, bug #13810 (project freeciv): static inline bool setting_boolval(conct struct setting_s *op) That should be const of course. I'm also not sure about the naming scheme, since with the full setting_ prefix this makes it a little awkward to use in expressions. Perhaps just

[Freeciv-Dev] [bug #13811] [Patch] string vector

2009-06-28 Thread pepeto
URL: http://gna.org/bugs/?13811 Summary: [Patch] string vector Project: Freeciv Submitted by: pepeto Submitted on: Monday 06/29/2009 at 02:47 Category: general Severity: 2 - Minor

[Freeciv-Dev] [bug #13811] [Patch] string vector

2009-06-28 Thread Madeline Book
Update of bug #13811 (project freeciv): Assigned to:None = mbook ___ Reply to this item at: http://gna.org/bugs/?13811 ___ Message sent