[Warzone-commits] r5489 - in /trunk/src: action.c order.c

2008-07-11 Thread Per I. Mathisen
Author: per Date: Fri Jul 11 11:42:00 2008 New Revision: 5489 URL: http://svn.gna.org/viewcvs/warzone?rev=5489&view=rev Log: Cosmetic improvement Modified: trunk/src/action.c trunk/src/order.c ___ Warzone-commits mailing list Warzone-commits@g

[Warzone-commits] r5490 - in /trunk: build_tools/code-generators/c_structdef_cg.pm build_tools/code-generators/test_code.tpl src/stats-db2.tpl

2008-07-11 Thread Giel van Schijndel
Author: muggenhor Date: Fri Jul 11 13:13:01 2008 New Revision: 5490 URL: http://svn.gna.org/viewcvs/warzone?rev=5490&view=rev Log: Don't add %valprefix to %max Modified: trunk/build_tools/code-generators/c_structdef_cg.pm trunk/build_tools/code-generators/test_code.tpl trunk/src/stats

[Warzone-commits] r5491 - in /trunk/build_tools/code-generators: c_structdef_cg.pm db-lang.pl

2008-07-11 Thread Giel van Schijndel
Author: muggenhor Date: Fri Jul 11 13:17:08 2008 New Revision: 5491 URL: http://svn.gna.org/viewcvs/warzone?rev=5491&view=rev Log: Add a new enum-level directive: %valsuffix which (similar to %valprefix) adds a suffix to al enum's values Modified: trunk/build_tools/code-generators/c_structde

[Warzone-commits] r5492 - /trunk/tools/editworld/src/heightmap.h

2008-07-11 Thread Giel van Schijndel
Author: muggenhor Date: Fri Jul 11 13:48:18 2008 New Revision: 5492 URL: http://svn.gna.org/viewcvs/warzone?rev=5492&view=rev Log: Modify the 'forward declaration name' of COMPONENT_TYPE for EditWorld to still match that of Warzone itself, which got changed in r5485 Modified: trunk/tools/edi

[Warzone-commits] r5493 - /trunk/src/hci.c

2008-07-11 Thread Giel van Schijndel
Author: muggenhor Date: Fri Jul 11 14:41:42 2008 New Revision: 5493 URL: http://svn.gna.org/viewcvs/warzone?rev=5493&view=rev Log: The *real* meaning of HCI Modified: trunk/src/hci.c ___ Warzone-commits mailing list Warzone-commits@gna.org https:/

[Warzone-commits] r5494 - in /trunk/src: projectile.c stats-db.c stats-db2.h stats-db2.tpl stats.c stats.h statsdef.h structure.c

2008-07-11 Thread Giel van Schijndel
Author: muggenhor Date: Fri Jul 11 14:56:22 2008 New Revision: 5494 URL: http://svn.gna.org/viewcvs/warzone?rev=5494&view=rev Log: * Get rid of enumerators INVALID_MOVEMENT and INVALID_WEAPON_EFFECT from enums MOVEMENT_MODEL and WEAPON_EFFECT respectively * Modify getMovementModel's and getWeap

[Warzone-commits] r5497 - /trunk/build_tools/code-generators/c_structdef_cg.pm

2008-07-11 Thread Giel van Schijndel
Author: muggenhor Date: Fri Jul 11 15:30:25 2008 New Revision: 5497 URL: http://svn.gna.org/viewcvs/warzone?rev=5497&view=rev Log: Move the code for generating the forward declaration of the SQLite loading function to a separate function of its own: printLoadFunc Modified: trunk/build_tools/

[Warzone-commits] r5496 - in /trunk/src: stats-db2.h stats-db2.tpl statsdef.h

2008-07-11 Thread Giel van Schijndel
Author: muggenhor Date: Fri Jul 11 15:07:37 2008 New Revision: 5496 URL: http://svn.gna.org/viewcvs/warzone?rev=5496&view=rev Log: Move enums HIT_SIDE, PROP_SIDE and SENSOR_TYPE from statsdef.h to stats-db2.tpl Modified: trunk/src/stats-db2.h trunk/src/stats-db2.tpl trunk/src/statsdef

[Warzone-commits] r5495 - /trunk/build_tools/code-generators/c_structdef_cg.pm

2008-07-11 Thread Giel van Schijndel
Author: muggenhor Date: Fri Jul 11 15:06:02 2008 New Revision: 5495 URL: http://svn.gna.org/viewcvs/warzone?rev=5495&view=rev Log: Don't use a default value for %valprefix when either %valprefix or %valsuffix has been specified Modified: trunk/build_tools/code-generators/c_structdef_cg.pm

[Warzone-commits] r5498 - in /trunk/build_tools/code-generators: c_structdef_cg.pm db-lang.pl test_code.tpl

2008-07-11 Thread Giel van Schijndel
Author: muggenhor Date: Fri Jul 11 16:02:17 2008 New Revision: 5498 URL: http://svn.gna.org/viewcvs/warzone?rev=5498&view=rev Log: * Add new %macro, %macroprefix and %macrosuffix directives to the mini database schema meta language * Generate macro definitions similar to our current "inheritanc

[Warzone-commits] r5500 - in /trunk/src: stats-db2.h stats-db2.tpl statsdef.h structuredef.h

2008-07-11 Thread Giel van Schijndel
Author: muggenhor Date: Fri Jul 11 16:52:45 2008 New Revision: 5500 URL: http://svn.gna.org/viewcvs/warzone?rev=5500&view=rev Log: Move the definition of macro STATS_BASE and the struct BASE_STATS (which was created using the contents of the macro) from statsdef.h into a single definition in sta

[Warzone-commits] r5499 - in /trunk/build_tools/code-generators: c_sqliteload_cg.pm c_structdef_cg.pm

2008-07-11 Thread Giel van Schijndel
Author: muggenhor Date: Fri Jul 11 16:48:39 2008 New Revision: 5499 URL: http://svn.gna.org/viewcvs/warzone?rev=5499&view=rev Log: Add copies of strings declared with the "string" type in the struct definitions; thus have the structs take ownership of these strings (they're allocated with strdup

[Warzone-commits] r5501 - in /trunk/build_tools/code-generators: c_sqliteload_cg.pm c_structdef_cg.pm db-lang.pl sql_tabledef_cg.pm

2008-07-11 Thread Giel van Schijndel
Author: muggenhor Date: Fri Jul 11 17:30:32 2008 New Revision: 5501 URL: http://svn.gna.org/viewcvs/warzone?rev=5501&view=rev Log: Add a transition type "UDWORD" to the mini database schema meta language Modified: trunk/build_tools/code-generators/c_sqliteload_cg.pm trunk/build_tools/code

[Warzone-commits] r5502 - /trunk/build_tools/code-generators/c_structdef_cg.pm

2008-07-11 Thread Giel van Schijndel
Author: muggenhor Date: Fri Jul 11 17:33:48 2008 New Revision: 5502 URL: http://svn.gna.org/viewcvs/warzone?rev=5502&view=rev Log: Declare UDWORDs as UDWORD in the C code (doh!) not as unsigned int... Modified: trunk/build_tools/code-generators/c_structdef_cg.pm

[Warzone-commits] r5503 - in /trunk/src: cmddroiddef.h design.c droid.c game.c hci.c intdisplay.c oprint.c research.c researchdef.h stats-db.c stats-db2.h stats-db2.tpl stats-db2.tpl.struct.h stats.c

2008-07-11 Thread Giel van Schijndel
Author: muggenhor Date: Fri Jul 11 17:37:46 2008 New Revision: 5503 URL: http://svn.gna.org/viewcvs/warzone?rev=5503&view=rev Log: * Rename macro COMPONENT_STATS and struct COMP_BASE_STATS to STATS_COMPONENT and COMPONENT_STATS respectively * Move the definition of macro STATS_COMPONENT and the

[Warzone-commits] r5504 - /trunk/src/droid.c

2008-07-11 Thread Per I. Mathisen
Author: per Date: Fri Jul 11 18:30:06 2008 New Revision: 5504 URL: http://svn.gna.org/viewcvs/warzone?rev=5504&view=rev Log: Sanity check that structure production by droids have a target in unitUpdateBuild(). Modified: trunk/src/droid.c ___ Warz

[Warzone-commits] r5505 - in /trunk/build_tools/code-generators: c_structdef_cg.pm db-lang.pl

2008-07-11 Thread Giel van Schijndel
Author: muggenhor Date: Fri Jul 11 18:41:59 2008 New Revision: 5505 URL: http://svn.gna.org/viewcvs/warzone?rev=5505&view=rev Log: Add a new %nomacro directive to prevent macro definition of a struct and its children if the parent of that struct has a %macro directive Modified: trunk/build_t

[Warzone-commits] r5506 - in /trunk/src: stats-db2.h stats-db2.tpl statsdef.h

2008-07-11 Thread Giel van Schijndel
Author: muggenhor Date: Fri Jul 11 19:53:41 2008 New Revision: 5506 URL: http://svn.gna.org/viewcvs/warzone?rev=5506&view=rev Log: Move the definition of struct PROPULSION_STATS from statsdef.h into a single definition in stats-db2.tpl Modified: trunk/src/stats-db2.h trunk/src/stats-db2.

[Warzone-commits] r5507 - in /trunk/src: ai.c order.c

2008-07-11 Thread Per I. Mathisen
Author: per Date: Fri Jul 11 19:57:25 2008 New Revision: 5507 URL: http://svn.gna.org/viewcvs/warzone?rev=5507&view=rev Log: Fix bug that made droids seemingly explode randomly during the game. The cause was that they would pursue the enemy on another person's computer, but not on yours. Now your

[Warzone-commits] r5508 - /trunk/Doxyfile

2008-07-11 Thread Giel van Schijndel
Author: muggenhor Date: Fri Jul 11 20:27:00 2008 New Revision: 5508 URL: http://svn.gna.org/viewcvs/warzone?rev=5508&view=rev Log: Don't include stats-db2.tpl.struct.h, which is used when generating stats-db2.h, in the Doxygen docs Modified: trunk/Doxyfile _

[Warzone-commits] r5509 - in /trunk/src: functiondef.h stats-db2.h stats-db2.tpl stats.c statsdef.h structuredef.h

2008-07-11 Thread Giel van Schijndel
Author: muggenhor Date: Fri Jul 11 21:40:49 2008 New Revision: 5509 URL: http://svn.gna.org/viewcvs/warzone?rev=5509&view=rev Log: Move the definitions of structs SENSOR_STATS, ECM_STATS, REPAIR_STATS and CONSTRUCT_STATS from statsdef.h into a single definition in stats-db2.tpl Modified: tru

[Warzone-commits] r5510 - /trunk/build_tools/code-generators/db-lang.pl

2008-07-11 Thread Giel van Schijndel
Author: muggenhor Date: Fri Jul 11 23:48:34 2008 New Revision: 5510 URL: http://svn.gna.org/viewcvs/warzone?rev=5510&view=rev Log: Give errors when encountering unmatched struct-level and enum-level directives Modified: trunk/build_tools/code-generators/db-lang.pl __

[Warzone-commits] r5511 - in /trunk/build_tools/code-generators: c_sqliteload_cg.pm c_structdef_cg.pm db-lang.pl sql_tabledef_cg.pm

2008-07-11 Thread Giel van Schijndel
Author: muggenhor Date: Fri Jul 11 23:53:10 2008 New Revision: 5511 URL: http://svn.gna.org/viewcvs/warzone?rev=5511&view=rev Log: Accept all of ([US]D?WORD|[US]BYTE) as "transition" types in the mini database schema meta language Modified: trunk/build_tools/code-generators/c_sqliteload_cg.p

[Warzone-commits] r5512 - in /trunk/src: stats-db2.h stats-db2.tpl statsdef.h structuredef.h

2008-07-11 Thread Giel van Schijndel
Author: muggenhor Date: Sat Jul 12 00:03:38 2008 New Revision: 5512 URL: http://svn.gna.org/viewcvs/warzone?rev=5512&view=rev Log: Move the definition of struct WEAPON_STATS from statsdef.h to stats-db2.tpl Modified: trunk/src/stats-db2.h trunk/src/stats-db2.tpl trunk/src/statsdef.h

[Warzone-commits] r5513 - in /trunk/build_tools/code-generators: c_structdef_cg.pm db-lang.pl sql_tabledef_cg.pm

2008-07-11 Thread Giel van Schijndel
Author: muggenhor Date: Sat Jul 12 00:14:09 2008 New Revision: 5513 URL: http://svn.gna.org/viewcvs/warzone?rev=5513&view=rev Log: Attach line numbers to the AST of field declarations, and use it when reporting field-related errors Modified: trunk/build_tools/code-generators/c_structdef_cg.p