[Warzone-commits] r5453 - in /trunk: build_tools/code-generators/test_code.tpl src/oprint.c src/research.c src/researchdef.h src/stats-db.c src/stats.c src/stats.h src/statsdef.h src/structure.c src/s

2008-07-09 Thread Giel van Schijndel
Author: muggenhor Date: Wed Jul 9 20:28:37 2008 New Revision: 5453 URL: http://svn.gna.org/viewcvs/warzone?rev=5453view=rev Log: Remove all TECH_LEVEL related cruft from the code as it's read from the stats files but unused throughout the rest of the code. Read into a temporary dummy variable

[Warzone-commits] r5455 - in /trunk/src: oprint.c stats-db.c stats.c statsdef.h

2008-07-09 Thread Giel van Schijndel
Author: muggenhor Date: Wed Jul 9 21:07:20 2008 New Revision: 5455 URL: http://svn.gna.org/viewcvs/warzone?rev=5455view=rev Log: Remove `systemPoints` from the code as it's never used. It's loaded in from the stats files but unused throughout the rest of the code. Read into a temporary dummy

[Warzone-commits] r5458 - /trunk/build_tools/code-generators/test_code.tpl

2008-07-09 Thread Giel van Schijndel
Author: muggenhor Date: Wed Jul 9 21:17:19 2008 New Revision: 5458 URL: http://svn.gna.org/viewcvs/warzone?rev=5458view=rev Log: Add a field to hold a component's body points (COMPONENT now fully matches COMPONENT_STATS from statsdef.h) Modified:

[Warzone-commits] r5459 - /trunk/src/stats.c

2008-07-09 Thread Giel van Schijndel
Author: muggenhor Date: Wed Jul 9 22:43:24 2008 New Revision: 5459 URL: http://svn.gna.org/viewcvs/warzone?rev=5459view=rev Log: Fix a compile error; forgot to declare variable dummyVal in r5454 Modified: trunk/src/stats.c ___ Warzone-commits

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

2008-07-09 Thread Giel van Schijndel
Author: muggenhor Date: Wed Jul 9 22:47:17 2008 New Revision: 5460 URL: http://svn.gna.org/viewcvs/warzone?rev=5460view=rev Log: Add a new field type to the mini database scheme meta language: C-only-field * This is a dummy type that causes the rest of the line to be included literally in the

[Warzone-commits] r5462 - /trunk/src/statsdef.h

2008-07-09 Thread Giel van Schijndel
Author: muggenhor Date: Wed Jul 9 23:02:13 2008 New Revision: 5462 URL: http://svn.gna.org/viewcvs/warzone?rev=5462view=rev Log: Don't #include stats-db2.h as it doesn't exist (is a testing file in my working copy) Modified: trunk/src/statsdef.h

[Warzone-commits] r5461 - /trunk/src/statsdef.h

2008-07-09 Thread Giel van Schijndel
Author: muggenhor Date: Wed Jul 9 23:00:09 2008 New Revision: 5461 URL: http://svn.gna.org/viewcvs/warzone?rev=5461view=rev Log: Declare propulsionType as PROPULSION_TYPE (enum) instead of UBYTE in PROPULSION_STATS (struct) Modified: trunk/src/statsdef.h

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

2008-07-08 Thread Giel van Schijndel
Author: muggenhor Date: Tue Jul 8 13:37:23 2008 New Revision: 5419 URL: http://svn.gna.org/viewcvs/warzone?rev=5419view=rev Log: Don't store the name of the struct we inherit from in the inherit field, instead store a reference to that struct Modified:

[Warzone-commits] r5404 - in /trunk/src: action.c ai.c combat.c display.c display3d.c droid.c droid.h fpath.c geometry.c move.c multisync.c order.c projectile.c scriptfuncs.c structure.c

2008-07-07 Thread Giel van Schijndel
Author: muggenhor Date: Mon Jul 7 12:15:00 2008 New Revision: 5404 URL: http://svn.gna.org/viewcvs/warzone?rev=5404view=rev Log: Rename function vtolDroid to isVtolDroid: * This name more clearly describes what it does: determine whether the given droid has VTOL propulsion Modified:

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

2008-07-07 Thread Giel van Schijndel
Author: muggenhor Date: Mon Jul 7 14:31:06 2008 New Revision: 5406 URL: http://svn.gna.org/viewcvs/warzone?rev=5406view=rev Log: vtolHappy: move the body-health check outside of the weapon check Modified: trunk/src/droid.c ___ Warzone-commits

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

2008-07-07 Thread Giel van Schijndel
Author: muggenhor Date: Mon Jul 7 14:44:00 2008 New Revision: 5407 URL: http://svn.gna.org/viewcvs/warzone?rev=5407view=rev Log: Fix a bug introduced in r5406: * VTOLs didn't ever become happy again (i.e. where marked as fully armed and healed) Modified: trunk/src/droid.c

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

2008-07-07 Thread Giel van Schijndel
Author: muggenhor Date: Mon Jul 7 14:47:04 2008 New Revision: 5408 URL: http://svn.gna.org/viewcvs/warzone?rev=5408view=rev Log: Improve readability/maintainability of function vtolHappy by using an array of bools instead of abusing a bitmask Modified: trunk/src/droid.c

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

2008-07-07 Thread Giel van Schijndel
Author: muggenhor Date: Mon Jul 7 14:51:57 2008 New Revision: 5409 URL: http://svn.gna.org/viewcvs/warzone?rev=5409view=rev Log: Further cleanup/refactor vtolHappy: * Trash the bool-array (previously bitmask) code * Simply return false as soon as we've determined a VTOL isn't happy (i.e.

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

2008-07-07 Thread Giel van Schijndel
Author: muggenhor Date: Mon Jul 7 14:21:26 2008 New Revision: 5405 URL: http://svn.gna.org/viewcvs/warzone?rev=5405view=rev Log: vtolHappy (what IDIOT wrote this btw??): only construct a bitmask once to increase readability/maintainability Modified: trunk/src/droid.c

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

2008-07-07 Thread Giel van Schijndel
Author: muggenhor Date: Mon Jul 7 14:58:18 2008 New Revision: 5410 URL: http://svn.gna.org/viewcvs/warzone?rev=5410view=rev Log: Did I say vtolHappy was somewhat error prone? * Fix a bug in r5409 where I accidentily reversed the weapon-reloaded logic * Merge two nested if-statements Modified:

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

2008-07-07 Thread Giel van Schijndel
Author: muggenhor Date: Mon Jul 7 15:11:27 2008 New Revision: 5411 URL: http://svn.gna.org/viewcvs/warzone?rev=5411view=rev Log: * ASSERT that VTOL weapon droids have more than zero weapons * Allow non-weapon VTOL droids to be passed into vtolHappy (e.g. sensor, construction, etc.): this

[Warzone-commits] r5395 - /trunk/src/structure.h

2008-07-06 Thread Giel van Schijndel
Author: muggenhor Date: Sun Jul 6 13:28:01 2008 New Revision: 5395 URL: http://svn.gna.org/viewcvs/warzone?rev=5395view=rev Log: Turn the assert()s in the CHECK_STRUCTURE macro into ASSERTs so that we can see *which* assert failed Modified: trunk/src/structure.h

[Warzone-commits] r5396 - in /branches/2.1: ./ src/structure.h

2008-07-06 Thread Giel van Schijndel
Author: muggenhor Date: Sun Jul 6 13:39:12 2008 New Revision: 5396 URL: http://svn.gna.org/viewcvs/warzone?rev=5396view=rev Log: Merged revision r5395 into the 2.1 branch via svnmerge from trunk r5395 | muggenhor | 2008-07-06 13:28:01 +0200 (zo, 06 jul 2008) | 1 line Turn the

[Warzone-commits] r5398 - /branches/2.1/

2008-07-06 Thread Giel van Schijndel
Author: muggenhor Date: Sun Jul 6 14:47:20 2008 New Revision: 5398 URL: http://svn.gna.org/viewcvs/warzone?rev=5398view=rev Log: Blocked revisions r5358:5376, r5379:5381 and r5383 from backporting to the 2.1 branch via svnmerge from trunk Modified: branches/2.1/ (props changed)

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

2008-07-04 Thread Giel van Schijndel
Author: muggenhor Date: Fri Jul 4 14:50:58 2008 New Revision: 5379 URL: http://svn.gna.org/viewcvs/warzone?rev=5379view=rev Log: In the %field hash store the field-qualifiers as an array instead of storing only a single qualifier. This will allow for adding multiple qualifiers to the same

[Warzone-commits] r5380 - /trunk/build_tools/code-generators/test_code.tpl

2008-07-04 Thread Giel van Schijndel
Author: muggenhor Date: Fri Jul 4 14:51:06 2008 New Revision: 5380 URL: http://svn.gna.org/viewcvs/warzone?rev=5380view=rev Log: Line out the field names correctly with the rest of the struct definitions Modified: trunk/build_tools/code-generators/test_code.tpl

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

2008-07-04 Thread Giel van Schijndel
Author: muggenhor Date: Fri Jul 4 14:51:09 2008 New Revision: 5381 URL: http://svn.gna.org/viewcvs/warzone?rev=5381view=rev Log: Add a new field qualifier to the meta database schema language: * optional which specfies that the given field is optional and can thus be NULL. * Only allow this

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

2008-07-04 Thread Giel van Schijndel
Author: muggenhor Date: Fri Jul 4 15:53:09 2008 New Revision: 5383 URL: http://svn.gna.org/viewcvs/warzone?rev=5383view=rev Log: Add some basic syntax/semantics checking to the parser of the database schema meta language. Modified: trunk/build_tools/code-generators/db-lang.pl

[Warzone-commits] r5391 - /trunk/lib/exceptionhandler/exceptionhandler.c

2008-07-04 Thread Giel van Schijndel
Author: muggenhor Date: Sat Jul 5 00:41:33 2008 New Revision: 5391 URL: http://svn.gna.org/viewcvs/warzone?rev=5391view=rev Log: Move the code to spawn GDB, and arrange for a communication pipe, to a separate function: execGdb Modified: trunk/lib/exceptionhandler/exceptionhandler.c

[Warzone-commits] r5389 - /trunk/lib/exceptionhandler/exceptionhandler.c

2008-07-04 Thread Giel van Schijndel
Author: muggenhor Date: Sat Jul 5 00:41:17 2008 New Revision: 5389 URL: http://svn.gna.org/viewcvs/warzone?rev=5389view=rev Log: Refactor function gdbExtendedBacktrace: * return as soon as an error condition is detected, thus preventing the need for deep nested if-branches. * Add some

[Warzone-commits] r5390 - /trunk/lib/exceptionhandler/exceptionhandler.c

2008-07-04 Thread Giel van Schijndel
Author: muggenhor Date: Sat Jul 5 00:41:25 2008 New Revision: 5390 URL: http://svn.gna.org/viewcvs/warzone?rev=5390view=rev Log: * Deal with a failure of exeve() by writing a debug message indicating that it failed and terminating the child of our fork() * Flush the write end of the pipe

[Warzone-commits] r5388 - /trunk/lib/exceptionhandler/exceptionhandler.c

2008-07-04 Thread Giel van Schijndel
Author: muggenhor Date: Sat Jul 5 00:41:07 2008 New Revision: 5388 URL: http://svn.gna.org/viewcvs/warzone?rev=5388view=rev Log: Move the code that provides GDB backtraces in a function of its own to refactor it later (i.e. get rid of the deep if-branch nesting) Modified:

[Warzone-commits] r5384 - /trunk/lib/exceptionhandler/exceptionhandler.c

2008-07-04 Thread Giel van Schijndel
Author: muggenhor Date: Sat Jul 5 00:40:20 2008 New Revision: 5384 URL: http://svn.gna.org/viewcvs/warzone?rev=5384view=rev Log: Factor out the code to retrieve absolute program paths and move it into a separate function of its own: fetchProgramPath Modified:

[Warzone-commits] r5356 - /trunk/src/keymap.c

2008-07-03 Thread Giel van Schijndel
Author: muggenhor Date: Thu Jul 3 16:57:18 2008 New Revision: 5356 URL: http://svn.gna.org/viewcvs/warzone?rev=5356view=rev Log: Provide a more useful error message than Weirdy action on keymap processing. Instead print the enum-number which we used to switch on. Modified:

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

2008-07-03 Thread Giel van Schijndel
Author: muggenhor Date: Thu Jul 3 20:45:32 2008 New Revision: 5358 URL: http://svn.gna.org/viewcvs/warzone?rev=5358view=rev Log: Add a code generator for my database meta-language This code generator is still in a prototyping phase. It'll probably get rewritten entirely. Added:

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

2008-07-03 Thread Giel van Schijndel
Author: muggenhor Date: Thu Jul 3 20:55:17 2008 New Revision: 5360 URL: http://svn.gna.org/viewcvs/warzone?rev=5360view=rev Log: Don't process the set field type as a field qualifier. Instead rename and modify preProcessQualifiers and postProcessQualifiers to preProcessField and

[Warzone-commits] r5361 - /trunk/build_tools/code-generators/sql_tabledef_cg.pm

2008-07-03 Thread Giel van Schijndel
Author: muggenhor Date: Thu Jul 3 20:55:26 2008 New Revision: 5361 URL: http://svn.gna.org/viewcvs/warzone?rev=5361view=rev Log: Rewrite SQL table generator for new parser architecture Modified: trunk/build_tools/code-generators/sql_tabledef_cg.pm

[Warzone-commits] r5362 - in /trunk/build_tools/code-generators: test_code test_code.tpl

2008-07-03 Thread Giel van Schijndel
Author: muggenhor Date: Thu Jul 3 20:56:34 2008 New Revision: 5362 URL: http://svn.gna.org/viewcvs/warzone?rev=5362view=rev Log: Rename test_code to test_code.tpl Added: trunk/build_tools/code-generators/test_code.tpl - copied unchanged from r5361,

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

2008-07-03 Thread Giel van Schijndel
Author: muggenhor Date: Thu Jul 3 21:04:00 2008 New Revision: 5363 URL: http://svn.gna.org/viewcvs/warzone?rev=5363view=rev Log: Add file headers and leaders to generated files Give the code generators the opportunity to print something at the start and the end of the file. E.g. header guards

[Warzone-commits] r5364 - /trunk/build_tools/code-generators/sql_tabledef_cg.pm

2008-07-03 Thread Giel van Schijndel
Author: muggenhor Date: Thu Jul 3 21:04:10 2008 New Revision: 5364 URL: http://svn.gna.org/viewcvs/warzone?rev=5364view=rev Log: Only auto-increment the ID for the base class Don't add an AUTOINCREMENT clause to the PRIMARY KEY, ID column if it we're not working on the abstract base class.

[Warzone-commits] r5365 - /trunk/build_tools/code-generators/sql_selectdef_cg.pm

2008-07-03 Thread Giel van Schijndel
Author: muggenhor Date: Thu Jul 3 21:05:43 2008 New Revision: 5365 URL: http://svn.gna.org/viewcvs/warzone?rev=5365view=rev Log: Add a code generator for SQL SELECT statements Add a new code generator for the database mini-meta-language. It creates SQL SELECT statements that use INNER JOINs to

[Warzone-commits] r5372 - /trunk/build_tools/code-generators/sql_selectdef_cg.pm

2008-07-03 Thread Giel van Schijndel
Author: muggenhor Date: Thu Jul 3 22:03:38 2008 New Revision: 5372 URL: http://svn.gna.org/viewcvs/warzone?rev=5372view=rev Log: Generate multi-line SELECT statements instead of single-line ones Modified: trunk/build_tools/code-generators/sql_selectdef_cg.pm

[Warzone-commits] r5373 - /trunk/build_tools/code-generators/sql_selectdef_cg.pm

2008-07-03 Thread Giel van Schijndel
Author: muggenhor Date: Thu Jul 3 22:07:58 2008 New Revision: 5373 URL: http://svn.gna.org/viewcvs/warzone?rev=5373view=rev Log: Don't fetch the primary key, as we probably don't need it Modified: trunk/build_tools/code-generators/sql_selectdef_cg.pm

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

2008-07-03 Thread Giel van Schijndel
Author: muggenhor Date: Thu Jul 3 23:51:23 2008 New Revision: 5374 URL: http://svn.gna.org/viewcvs/warzone?rev=5374view=rev Log: Don't print directly from the code generators, instead append to an output string for printing at a later time. Modified:

[Warzone-commits] r5375 - /trunk/build_tools/code-generators/sql_tabledef_cg.pm

2008-07-03 Thread Giel van Schijndel
Author: muggenhor Date: Fri Jul 4 00:14:41 2008 New Revision: 5375 URL: http://svn.gna.org/viewcvs/warzone?rev=5375view=rev Log: Fix a syntax error introduced in r5374 Modified: trunk/build_tools/code-generators/sql_tabledef_cg.pm ___

[Warzone-commits] r5353 - /trunk/lib/script/script_lexer.l

2008-07-02 Thread Giel van Schijndel
Author: muggenhor Date: Wed Jul 2 13:29:19 2008 New Revision: 5353 URL: http://svn.gna.org/viewcvs/warzone?rev=5353view=rev Log: Merge lexer rules for the script_lexer that match different forms of the same token (e.g. upper/lower case variants) Modified: trunk/lib/script/script_lexer.l

[Warzone-commits] r5327 - /trunk/lib/sound/cdaudio.c

2008-06-25 Thread Giel van Schijndel
Author: muggenhor Date: Wed Jun 25 15:56:17 2008 New Revision: 5327 URL: http://svn.gna.org/viewcvs/warzone?rev=5327view=rev Log: Slight refactoring of cdAudio_PlayTrack to use a switch on the enum, instead of an if, if-else structure Modified: trunk/lib/sound/cdaudio.c

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

2008-06-23 Thread Giel van Schijndel
Author: muggenhor Date: Mon Jun 23 23:16:23 2008 New Revision: 5314 URL: http://svn.gna.org/viewcvs/warzone?rev=5314view=rev Log: * Add an ASSERT to trap a corner case which I don't think ever occurs. The info from this ASSERT is needed for a proper (and fully educated) fix of bug #11865. Thus

[Warzone-commits] r5305 - in /trunk/lib/betawidget: geom.c geom.h vector.c vector.h widget.c widget.h

2008-06-22 Thread Giel van Schijndel
Author: muggenhor Date: Mon Jun 23 01:28:34 2008 New Revision: 5305 URL: http://svn.gna.org/viewcvs/warzone?rev=5305view=rev Log: * Only use TABs for indentation, not for alignment * No whitespace on the end of lines Modified: trunk/lib/betawidget/geom.c trunk/lib/betawidget/geom.h

[Warzone-commits] r5285 - /trunk/src/levels.c

2008-06-21 Thread Giel van Schijndel
Author: muggenhor Date: Sat Jun 21 19:32:03 2008 New Revision: 5285 URL: http://svn.gna.org/viewcvs/warzone?rev=5285view=rev Log: * Make the level parser state enum a typedef (LEVELPARSER_STATE) * When lev_error() gets called do __not__ ASSERT, use debug(LOG_ERROR, ... instead as the return

[Warzone-commits] r5289 - /trunk/.gitignore

2008-06-21 Thread Giel van Schijndel
Author: muggenhor Date: Sat Jun 21 20:34:30 2008 New Revision: 5289 URL: http://svn.gna.org/viewcvs/warzone?rev=5289view=rev Log: Do not ignore /configure.ac in the .gitignore file Modified: trunk/.gitignore ___ Warzone-commits mailing list

[Warzone-commits] r5290 - /trunk/configure.ac

2008-06-21 Thread Giel van Schijndel
Author: muggenhor Date: Sat Jun 21 20:34:51 2008 New Revision: 5290 URL: http://svn.gna.org/viewcvs/warzone?rev=5290view=rev Log: Add --disable-sound to the configure script, to disable sound at compile time Modified: trunk/configure.ac ___

[Warzone-commits] r5292 - /trunk/lib/sound/playlist.c

2008-06-21 Thread Giel van Schijndel
Author: muggenhor Date: Sat Jun 21 23:51:26 2008 New Revision: 5292 URL: http://svn.gna.org/viewcvs/warzone?rev=5292view=rev Log: Only iterator over the linked list `songList` once to determine the end. Then store a pointer to the last -next pointer and use it to append to the list instead.

[Warzone-commits] r5293 - /trunk/lib/sound/playlist.c

2008-06-21 Thread Giel van Schijndel
Author: muggenhor Date: Sat Jun 21 23:51:29 2008 New Revision: 5293 URL: http://svn.gna.org/viewcvs/warzone?rev=5293view=rev Log: Slight refactoring to return as soon as possible, thus not damaging code-readability by large amounts of scope-nesting (specifically if-branches) Modified:

[Warzone-commits] r5251 - /trunk/src/structure.c

2008-06-13 Thread Giel van Schijndel
Author: muggenhor Date: Fri Jun 13 14:22:41 2008 New Revision: 5251 URL: http://svn.gna.org/viewcvs/warzone?rev=5251view=rev Log: Use a pun on the whole Shakespear quote (original is: By the pricking of my thumbs, something wicked this way comes.): By the picking of these code-bombs, something

[Warzone-commits] r5227 - /branches/2.1/pkg/dpkg/changelog /branches/2.1/win32/warzone2100.rc /tags/2.1_beta3/pkg/dpkg/changelog /tags/2.1_beta3/win32/warzone2100.rc /trunk/pkg/dpkg/changelog /trunk/w

2008-06-07 Thread Giel van Schijndel
Author: muggenhor Date: Sat Jun 7 14:26:03 2008 New Revision: 5227 URL: http://svn.gna.org/viewcvs/warzone?rev=5227view=rev Log: * Update Debian changelog * Fix win32 version info * We live in 2008 now... * Use 2.0.993.0 instead of 2.0.3.0 for 2.1 beta3 (the same scheme was used for beta1

[Warzone-commits] r5226 - /tags/2.1_beta3/autorevision.conf

2008-06-07 Thread Giel van Schijndel
Author: muggenhor Date: Sat Jun 7 14:11:33 2008 New Revision: 5226 URL: http://svn.gna.org/viewcvs/warzone?rev=5226view=rev Log: Update autorevision.conf to point to the tag's directory Modified: tags/2.1_beta3/autorevision.conf ___

[Warzone-commits] r5211 - /trunk/lib/framework/debug.c

2008-06-04 Thread Giel van Schijndel
Author: muggenhor Date: Wed Jun 4 19:50:40 2008 New Revision: 5211 URL: http://svn.gna.org/viewcvs/warzone?rev=5211view=rev Log: Use WZ_DECL_UNUSED for the data parameter of debug_callback_win32debug to squelch the warning about it being unused Modified: trunk/lib/framework/debug.c

[Warzone-commits] r5212 - /trunk/lib/sqlite3/physfs_vfs.c

2008-06-04 Thread Giel van Schijndel
Author: muggenhor Date: Wed Jun 4 21:50:50 2008 New Revision: 5212 URL: http://svn.gna.org/viewcvs/warzone?rev=5212view=rev Log: Use WZ_DECL_UNUSED to squelch warnings about unused parameters in the PhysicsFS SQLite-VFS implementation Modified: trunk/lib/sqlite3/physfs_vfs.c

[Warzone-commits] r5203 - /trunk/src/stats-db.c

2008-05-29 Thread Giel van Schijndel
Author: muggenhor Date: Thu May 29 12:18:23 2008 New Revision: 5203 URL: http://svn.gna.org/viewcvs/warzone?rev=5203view=rev Log: Abort (i.e. return false) when failing to find the column's numbers by looking them up using their names Modified: trunk/src/stats-db.c

[Warzone-commits] r5204 - /trunk/src/stats-db.c

2008-05-29 Thread Giel van Schijndel
Author: muggenhor Date: Thu May 29 12:18:31 2008 New Revision: 5204 URL: http://svn.gna.org/viewcvs/warzone?rev=5204view=rev Log: Prefetch the column numbers for the WEAPON_STATS only once * Changes O(n * m * l) to O(n + m * l) behaviour Modified: trunk/src/stats-db.c

[Warzone-commits] r5202 - /trunk/src/stats-db.c

2008-05-29 Thread Giel van Schijndel
Author: muggenhor Date: Thu May 29 12:18:18 2008 New Revision: 5202 URL: http://svn.gna.org/viewcvs/warzone?rev=5202view=rev Log: * Fetch the column numbers by column name only once for the BASE_STATS and COMP_BASE_STATS parts of every SQL query (rather than once for every result row from a

[Warzone-commits] r5198 - /trunk/lib/framework/resource_lexer.l

2008-05-28 Thread Giel van Schijndel
Author: muggenhor Date: Wed May 28 22:55:49 2008 New Revision: 5198 URL: http://svn.gna.org/viewcvs/warzone?rev=5198view=rev Log: Make sure to parse `database` __before__ `file` (i.e. group it with other tokens starting with a `d`) to make sure that it gets recognised at all Modified:

[Warzone-commits] r5199 - /trunk/src/stats-db.c

2008-05-28 Thread Giel van Schijndel
Author: muggenhor Date: Wed May 28 22:57:53 2008 New Revision: 5199 URL: http://svn.gna.org/viewcvs/warzone?rev=5199view=rev Log: * When loading from the SQLite database rely on the column's names rather than on their number/order of appearance * Use an inheritance-like approach when loading

[Warzone-commits] r5201 - in /trunk: lib/ivis_common/piepalette.h lib/ivis_opengl/piepalette.c src/scores.c

2008-05-28 Thread Giel van Schijndel
Author: muggenhor Date: Thu May 29 00:08:49 2008 New Revision: 5201 URL: http://svn.gna.org/viewcvs/warzone?rev=5201view=rev Log: * Change colours for some of the status bars in the mission completion score screen to be more vivid * Add a new colour: WZCOL_MENU_SHADOW * Use this colour

[Warzone-commits] r5200 - /trunk/src/cheat.c

2008-05-28 Thread Giel van Schijndel
Author: muggenhor Date: Thu May 29 00:08:34 2008 New Revision: 5200 URL: http://svn.gna.org/viewcvs/warzone?rev=5200view=rev Log: Use ARRAY_SIZE to determine the length of the cheat-code list rather than a NULL pointer at the end of the list (as a form of NUL-termination) Modified:

[Warzone-commits] r5196 - in /trunk/lib: framework/resource_parser.y framework/strres_parser.y gamelib/audp_parser.y

2008-05-27 Thread Giel van Schijndel
Author: muggenhor Date: Tue May 27 23:37:54 2008 New Revision: 5196 URL: http://svn.gna.org/viewcvs/warzone?rev=5196view=rev Log: * Apparently the %destructor feature of Bison is implemented differently for 2.1 than it is for 2.3 (or it is broken in 2.1); so don't use it when compiling with

[Warzone-commits] r5173 - /trunk/src/init.c

2008-05-25 Thread Giel van Schijndel
Author: muggenhor Date: Sun May 25 13:36:20 2008 New Revision: 5173 URL: http://svn.gna.org/viewcvs/warzone?rev=5173view=rev Log: Use sstrcpy|sstrcat instead of strlcpy|strlcat for manipulation of statically sized strings Modified: trunk/src/init.c

[Warzone-commits] r5174 - in /branches/lua: ./ build_tools/autorevision/ data/images/ data/mods/global/ data/mods/global/aivolution/ data/mods/global/aivolution/multiplay/skirmish/ data/mods/global/gr

2008-05-25 Thread Giel van Schijndel
Author: muggenhor Date: Sun May 25 13:57:53 2008 New Revision: 5174 URL: http://svn.gna.org/viewcvs/warzone?rev=5174view=rev Log: Merged revisions r4012:4202 into the 2.1 branch via svnmerge from trunk Added: branches/lua/data/stats-sql/data/ (props changed) - copied from r4202,

[Warzone-commits] r5175 - in /branches/lua: ./ build_tools/autorevision/ data/images/ data/mods/global/ data/mods/global/aivolution/ data/mods/global/aivolution/multiplay/skirmish/ data/mods/global/gr

2008-05-25 Thread Giel van Schijndel
Author: muggenhor Date: Sun May 25 14:08:16 2008 New Revision: 5175 URL: http://svn.gna.org/viewcvs/warzone?rev=5175view=rev Log: Revert r5174 (merge of r4012:4202 into the lua branch from trunk) as it breaks compilation Added: branches/lua/data/images/frend.img - copied unchanged

[Warzone-commits] r5176 - in /trunk: lib/exceptionhandler/ lib/framework/ lib/gamelib/ lib/ivis_common/ lib/ivis_opengl/ lib/netplay/ lib/script/ lib/widget/ src/

2008-05-25 Thread Giel van Schijndel
Author: muggenhor Date: Sun May 25 15:46:49 2008 New Revision: 5176 URL: http://svn.gna.org/viewcvs/warzone?rev=5176view=rev Log: Use sstrcpy|sstrcat instead of strlcpy|strlcat for manipulation of statically sized strings Modified: trunk/lib/exceptionhandler/exceptionhandler.c

[Warzone-commits] r5178 - in /trunk: data/base/wrf/stats.wrf src/data.c src/stats-db.c src/stats-db.h

2008-05-25 Thread Giel van Schijndel
Author: muggenhor Date: Sun May 25 16:58:03 2008 New Revision: 5178 URL: http://svn.gna.org/viewcvs/warzone?rev=5178view=rev Log: * Add a new resource type (for use with .wrf files): DBECM which is similar to SECM, with as difference that instead of a CSV file it specifies an SQLite database

[Warzone-commits] r5182 - in /trunk: data/base/wrf/stats.wrf src/data.c src/stats-db.c src/stats-db.h

2008-05-25 Thread Giel van Schijndel
Author: muggenhor Date: Sun May 25 17:41:04 2008 New Revision: 5182 URL: http://svn.gna.org/viewcvs/warzone?rev=5182view=rev Log: * Add a new resource type (for use with .wrf files): DBSENSOR which is similar to SSENSOR, with as difference that instead of a CSV file it specifies an SQLite

[Warzone-commits] r5183 - /trunk/lib/exceptionhandler/exceptionhandler.c

2008-05-25 Thread Giel van Schijndel
Author: muggenhor Date: Sun May 25 17:42:02 2008 New Revision: 5183 URL: http://svn.gna.org/viewcvs/warzone?rev=5183view=rev Log: Fix a typo strrcat = sstrcat Modified: trunk/lib/exceptionhandler/exceptionhandler.c ___ Warzone-commits mailing

[Warzone-commits] r5187 - in /trunk/src: data.c stats-db.c stats-db.h

2008-05-25 Thread Giel van Schijndel
Author: muggenhor Date: Sun May 25 21:38:38 2008 New Revision: 5187 URL: http://svn.gna.org/viewcvs/warzone?rev=5187view=rev Log: * Make the load.*StatsFromDB functions load directly from a database (i.e. they don't need to open themself anymore) * Open the SQLite3 database in src/data.c

[Warzone-commits] r5188 - in /trunk: data/base/wrf/stats.wrf lib/framework/frameresource.c lib/framework/frameresource.h lib/framework/resource_lexer.l lib/framework/resource_parser.y src/data.c

2008-05-25 Thread Giel van Schijndel
Author: muggenhor Date: Sun May 25 21:38:53 2008 New Revision: 5188 URL: http://svn.gna.org/viewcvs/warzone?rev=5188view=rev Log: * Add a new resource loading function type: RES_TABLELOAD * Add two new keywords to the .wrf files: database and table * database will cause the given filename to

[Warzone-commits] r5189 - in /trunk: data/base/wrf/stats.wrf lib/framework/frameresource.c lib/framework/frameresource.h lib/framework/resource_parser.y src/data.c src/stats-db.c src/stats-db.h

2008-05-25 Thread Giel van Schijndel
Author: muggenhor Date: Sun May 25 21:38:59 2008 New Revision: 5189 URL: http://svn.gna.org/viewcvs/warzone?rev=5189view=rev Log: * Pass the table name as well from the .wrf resource file * table will now attempt to load the given resource type from the given table (in the currently opened

[Warzone-commits] r5190 - /trunk/tools/pygments-lexers/warzone/__init__.py

2008-05-25 Thread Giel van Schijndel
Author: muggenhor Date: Sun May 25 22:03:37 2008 New Revision: 5190 URL: http://svn.gna.org/viewcvs/warzone?rev=5190view=rev Log: Update the Pygments WRF lexer for the changes done to the WRF file format in r5188:5189 Modified: trunk/tools/pygments-lexers/warzone/__init__.py

[Warzone-commits] r5191 - in /trunk/po: POTFILES.in update-po.sh

2008-05-25 Thread Giel van Schijndel
Author: muggenhor Date: Sun May 25 22:09:54 2008 New Revision: 5191 URL: http://svn.gna.org/viewcvs/warzone?rev=5191view=rev Log: Update POTFILES.in Modified: trunk/po/POTFILES.in trunk/po/update-po.sh ___ Warzone-commits mailing list

[Warzone-commits] r5193 - /branches/2.1/

2008-05-25 Thread Giel van Schijndel
Author: muggenhor Date: Sun May 25 22:20:12 2008 New Revision: 5193 URL: http://svn.gna.org/viewcvs/warzone?rev=5193view=rev Log: Mark r5145 as already backported as well (2.1 branch) Modified: branches/2.1/ (props changed) ___ Warzone-commits

[Warzone-commits] r5163 - in /trunk: src/ src/Makefile.am src/Makefile.raw src/level_lexer.l src/level_parser.y src/levelint.h src/levels.c warzone2100.cbp win32/Warzone2100.vcproj

2008-05-24 Thread Giel van Schijndel
Author: muggenhor Date: Sat May 24 14:20:23 2008 New Revision: 5163 URL: http://svn.gna.org/viewcvs/warzone?rev=5163view=rev Log: Revert r4830: * This should fix a heap corruption introduced with the new level_parser Closes #9 ( http://trac.wz2100.net/ticket/9 ) Removed:

[Warzone-commits] r5164 - in /branches/2.1: ./ src/ src/Makefile.am src/Makefile.raw src/level_lexer.l src/level_parser.y src/levelint.h src/levels.c warzone2100.cbp win32/Warzone2100.vcproj

2008-05-24 Thread Giel van Schijndel
Author: muggenhor Date: Sat May 24 14:40:40 2008 New Revision: 5164 URL: http://svn.gna.org/viewcvs/warzone?rev=5164view=rev Log: Merged revision r5163 into the 2.1 branch via svnmerge from trunk r5163 | muggenhor | 2008-05-24 14:20:23 +0200 (za, 24 mei 2008) | 5 lines Revert

[Warzone-commits] r5165 - in /trunk: Makefile.am configure.ac tests/

2008-05-24 Thread Giel van Schijndel
Author: muggenhor Date: Sat May 24 14:48:26 2008 New Revision: 5165 URL: http://svn.gna.org/viewcvs/warzone?rev=5165view=rev Log: Remove now useless testcase directory tests as its only testcase (t1000: tested level_parser.y) has no code left to test (due to r5163) Removed: trunk/tests/

[Warzone-commits] r5166 - in /branches/2.1: ./ Makefile.am configure.ac tests/

2008-05-24 Thread Giel van Schijndel
Author: muggenhor Date: Sat May 24 14:49:48 2008 New Revision: 5166 URL: http://svn.gna.org/viewcvs/warzone?rev=5166view=rev Log: Merged revision r5165 into the 2.1 branch via svnmerge from trunk r5165 | muggenhor | 2008-05-24 14:48:26 +0200 (za, 24 mei 2008) | 1 line Remove now

[Warzone-commits] r5171 - /branches/lua/

2008-05-24 Thread Giel van Schijndel
Author: muggenhor Date: Sat May 24 20:23:42 2008 New Revision: 5171 URL: http://svn.gna.org/viewcvs/warzone?rev=5171view=rev Log: Initialized merge tracking on the lua branch via svnmerge with revisions

[Warzone-commits] r5144 - /trunk/lib/script/script_parser.y

2008-05-20 Thread Giel van Schijndel
Author: muggenhor Date: Tue May 20 21:57:26 2008 New Revision: 5144 URL: http://svn.gna.org/viewcvs/warzone?rev=5144view=rev Log: Fix warnings: remove unused variables Modified: trunk/lib/script/script_parser.y ___ Warzone-commits mailing list

[Warzone-commits] r5129 - /trunk/configure.ac

2008-05-17 Thread Giel van Schijndel
Author: muggenhor Date: Sat May 17 12:48:26 2008 New Revision: 5129 URL: http://svn.gna.org/viewcvs/warzone?rev=5129view=rev Log: Disable optimisations (-O0) for --enable-debug=relaxed as well Modified: trunk/configure.ac ___ Warzone-commits

[Warzone-commits] r5130 - in /trunk: lib/framework/resource_lexer.l lib/framework/strres_lexer.l lib/gamelib/audp_lexer.l src/level_lexer.l src/scriptvals_lexer.l

2008-05-17 Thread Giel van Schijndel
Author: muggenhor Date: Sat May 17 12:49:33 2008 New Revision: 5130 URL: http://svn.gna.org/viewcvs/warzone?rev=5130view=rev Log: Work around Flex 2.5.33 implicitly defining yyget_extra() (rather than forward declaring it) Modified: trunk/lib/framework/resource_lexer.l

[Warzone-commits] r5131 - in /branches/2.1: ./ configure.ac lib/framework/resource_lexer.l lib/framework/strres_lexer.l lib/gamelib/audp_lexer.l src/level_lexer.l src/scriptvals_lexer.l

2008-05-17 Thread Giel van Schijndel
Author: muggenhor Date: Sat May 17 19:14:25 2008 New Revision: 5131 URL: http://svn.gna.org/viewcvs/warzone?rev=5131view=rev Log: Merged revisions r5129:5130 into the 2.1 branch via svnmerge from trunk r5129 | muggenhor | 2008-05-17 12:48:26 +0200 (za, 17 mei 2008) | 1 line

[Warzone-commits] r5101 - in /trunk/lib/sound: cdaudio.c openal_track.c track.h

2008-05-13 Thread Giel van Schijndel
Author: muggenhor Date: Tue May 13 16:01:25 2008 New Revision: 5101 URL: http://svn.gna.org/viewcvs/warzone?rev=5101view=rev Log: * Add functions for changing the volume of an already created AUDIO_STREAM: sound_GetStreamVolume and sound_SetStreamVolume * Use these functions in cdaudio.c to

[Warzone-commits] r5102 - in /branches/2.1: ./ lib/sound/cdaudio.c lib/sound/openal_track.c lib/sound/track.h

2008-05-13 Thread Giel van Schijndel
Author: muggenhor Date: Tue May 13 16:08:21 2008 New Revision: 5102 URL: http://svn.gna.org/viewcvs/warzone?rev=5102view=rev Log: Merged revisions r5100:5101 into the 2.1 branch via svnmerge from trunk r5100 | muggenhor | 2008-05-13 15:50:08 +0200 (di, 13 mei 2008) | 3 lines *

[Warzone-commits] r5059 - in /trunk/lib/script: chat_lexer.l chat_parser.y chat_processing.h

2008-05-12 Thread Giel van Schijndel
Author: muggenhor Date: Mon May 12 14:16:46 2008 New Revision: 5059 URL: http://svn.gna.org/viewcvs/warzone?rev=5059view=rev Log: * Fix GPL headers for some files which where wrongly marked as being Copyright Eidos Interactive in r1014 * Update file-level comment for chat_lexer.l for the

[Warzone-commits] r5060 - in /trunk: lib/script/event.c src/Makefile.am src/Makefile.raw src/main.c src/parsetest.c src/parsetest.h warzone2100.cbp

2008-05-12 Thread Giel van Schijndel
Author: muggenhor Date: Mon May 12 14:33:38 2008 New Revision: 5060 URL: http://svn.gna.org/viewcvs/warzone?rev=5060view=rev Log: * Make sure to set psPrev to NULL at the start of the deletion loop * Also don't dereference it when it's NULL Added: trunk/src/parsetest.c

[Warzone-commits] r5063 - in /trunk/lib/script: chat_lexer.l chat_parser.y

2008-05-12 Thread Giel van Schijndel
Author: muggenhor Date: Mon May 12 14:48:31 2008 New Revision: 5063 URL: http://svn.gna.org/viewcvs/warzone?rev=5063view=rev Log: Let the chat_lexer do some more of the work by returning only a single _T_YES token for yes, yea, yeah and yep Modified: trunk/lib/script/chat_lexer.l

[Warzone-commits] r5069 - in /branches/2.1: ./ lib/framework/ lib/script/ makerules/ src/ win32/

2008-05-12 Thread Giel van Schijndel
Author: muggenhor Date: Mon May 12 16:09:49 2008 New Revision: 5069 URL: http://svn.gna.org/viewcvs/warzone?rev=5069view=rev Log: Merged revisions r4890, r4938:4943, r4945, r4999:5013, r5016:5017, r5023:5030, r5040, r5045:5046, r5049, r5056 and r5058:5063 into the 2.1 branch via svnmerge from

[Warzone-commits] r5071 - /trunk/lib/framework/frameresource.c

2008-05-12 Thread Giel van Schijndel
Author: muggenhor Date: Mon May 12 19:13:11 2008 New Revision: 5071 URL: http://svn.gna.org/viewcvs/warzone?rev=5071view=rev Log: Reduce code duplication that occurs in both branches of an if-statement Modified: trunk/lib/framework/frameresource.c

[Warzone-commits] r5070 - /trunk/lib/framework/resource_lexer.l

2008-05-12 Thread Giel van Schijndel
Author: muggenhor Date: Mon May 12 19:04:32 2008 New Revision: 5070 URL: http://svn.gna.org/viewcvs/warzone?rev=5070view=rev Log: Don't bother to check whether we're in a comment when reaching the end of a WRF file Modified: trunk/lib/framework/resource_lexer.l

[Warzone-commits] r5072 - in /trunk/lib/framework: frame.c frameresource.c resly.h resource_lexer.l

2008-05-12 Thread Giel van Schijndel
Author: muggenhor Date: Mon May 12 19:23:33 2008 New Revision: 5072 URL: http://svn.gna.org/viewcvs/warzone?rev=5072view=rev Log: * Use the lexer_input framework instead of a custom YY_INPUT implementation for resource_lexer.l * Don't add the function name to the debug message in openLoadFile

[Warzone-commits] r5073 - in /trunk/lib/framework: resly.h resource_lexer.l resource_parser.y

2008-05-12 Thread Giel van Schijndel
Author: muggenhor Date: Mon May 12 19:34:56 2008 New Revision: 5073 URL: http://svn.gna.org/viewcvs/warzone?rev=5073view=rev Log: * Get rid of lexer function resGetErrorData and use res_get_lineno() and res_get_text() instead * Don't call abort() in function res_error as the parser will return

[Warzone-commits] r5074 - /trunk/lib/framework/resource_lexer.l

2008-05-12 Thread Giel van Schijndel
Author: muggenhor Date: Mon May 12 19:38:45 2008 New Revision: 5074 URL: http://svn.gna.org/viewcvs/warzone?rev=5074view=rev Log: Attempt to match an empty string __before__ a non-empty one (otherwise we won't ever match it at all) Modified: trunk/lib/framework/resource_lexer.l

[Warzone-commits] r5077 - in /trunk/lib/framework: resource_lexer.l strres_lexer.l

2008-05-12 Thread Giel van Schijndel
Author: muggenhor Date: Mon May 12 19:50:49 2008 New Revision: 5077 URL: http://svn.gna.org/viewcvs/warzone?rev=5077view=rev Log: From resource_parser.y: No longer static ... lets use this area globally: * Lets __not__ use very bad practices just because we can!!! Make it static again * Give

[Warzone-commits] r5079 - in /trunk/lib/framework: resource_lexer.l resource_parser.y

2008-05-12 Thread Giel van Schijndel
Author: muggenhor Date: Mon May 12 20:00:09 2008 New Revision: 5079 URL: http://svn.gna.org/viewcvs/warzone?rev=5079view=rev Log: * Put textual tokens as found by resource_lexer.l in heap memory rather than some crazy stack-like static string buffer * Make sure that this heap memory __will__

[Warzone-commits] r5075 - /trunk/lib/framework/resource_lexer.l

2008-05-12 Thread Giel van Schijndel
Author: muggenhor Date: Mon May 12 19:41:00 2008 New Revision: 5075 URL: http://svn.gna.org/viewcvs/warzone?rev=5075view=rev Log: Use yytext instead of res_text Modified: trunk/lib/framework/resource_lexer.l ___ Warzone-commits mailing list

[Warzone-commits] r5080 - /trunk/lib/framework/resource_parser.y

2008-05-12 Thread Giel van Schijndel
Author: muggenhor Date: Mon May 12 20:03:26 2008 New Revision: 5080 URL: http://svn.gna.org/viewcvs/warzone?rev=5080view=rev Log: Cleanup (behaviour should be unchanged) Modified: trunk/lib/framework/resource_parser.y ___ Warzone-commits mailing

[Warzone-commits] r5083 - in /trunk/lib/framework: strres.c strres_lexer.l strresly.h

2008-05-12 Thread Giel van Schijndel
Author: muggenhor Date: Mon May 12 20:22:05 2008 New Revision: 5083 URL: http://svn.gna.org/viewcvs/warzone?rev=5083view=rev Log: * Use the lexer_input framework instead of a custom YY_INPUT implementation for strres_lexer.l * Don't bother to check whether we're in a comment when reaching the

<    1   2   3   4   5   6   7   8   9   10   >