Commit Graph

3568 Commits (244668ce935ed3cf313aa86bcb5a6323bb97f173)

Author SHA1 Message Date
Dennis Schridde 87f3224fa6 The preprocessor checks never really worked...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4249 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-23 15:16:29 +00:00
Giel van Schijndel 074851afbc Add a bash script to update POTFILES.in with
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4248 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-23 14:30:49 +00:00
Per Inge Mathisen 6c00cf4c70 Make asPower statically initialized instead of malloced.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4247 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-23 14:23:23 +00:00
Per Inge Mathisen f698bf5fa7 Set LANG environment variable when changing languages. Attempt to fix
the i18n menu option for Windows users.


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4246 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-23 14:18:23 +00:00
Giel van Schijndel 7785437073 return the success/failure status from the NETenum template
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4244 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-23 14:00:30 +00:00
Giel van Schijndel cfb8b2c58c Set mime-type for nettypes.h
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4243 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-23 13:54:03 +00:00
Giel van Schijndel cf6ea01b4a * In NETstring use memcpy to copy the string and guarantee NUL-termination manually
* strlcpy() is unsafe if we cannot trust the source string to be NUL-terminated (as strlcpy does "return strlen(src);")


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4242 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-23 13:50:54 +00:00
Giel van Schijndel 6cd8e03773 Document NETstring (Doxygen documentation) and use strlcpy instead of memcpy to guarantee NUL-termination
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4241 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-23 13:48:25 +00:00
Giel van Schijndel fbf0395b7e Also test NETenum in the nettypes unit test
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4240 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-23 13:35:01 +00:00
Giel van Schijndel f26ccb421d Wrap function-macro NETenum in a do{}while(0) loop
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4239 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-23 13:33:27 +00:00
Dennis Schridde 57afe59782 Use the unique, untranslated pName to identify templates, not anything else. (This would create trouble with translations.) Fixes bug #11345.
Cleanup loadDroidTemplates and loadDroidWeapons.


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4238 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-23 13:17:30 +00:00
Giel van Schijndel 6aa9b6fa35 * Declare static string constants as `static const char string[]` rather than `char* string` (guarantees both constness and that we won't accidentily change the pointer)
* In NETcoder declare string str the same size as original (using sizeof), use sizeof() instead of magic numbers


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4237 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-23 13:12:58 +00:00
Giel van Schijndel e18a6100f7 Backport r4235 from the 2.1 branch into trunk:
Strip the Debian package of symbols and put the symbols in a separate package: warzone2100-dbg


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4236 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-23 12:19:28 +00:00
Dennis Schridde 39f34056a9 Import from __future__ has to be first in file. Additionaly let the lobby tester connect to lobby.wz2100.net
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4234 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-23 00:33:16 +00:00
Dennis Schridde 2ba55d14a8 Record the time of compilation, too.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4233 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-23 00:05:41 +00:00
Dennis Schridde 02f3422fb3 Remove linebreak as it messes up formating for some reason.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4232 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-22 23:55:24 +00:00
Dennis Schridde 6e89ffe22b Forgot to include physfs
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4231 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-22 19:11:29 +00:00
Per Inge Mathisen 6185741b66 patch #1018: Experimental language selection menu option.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4230 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-22 18:30:08 +00:00
Roman C 3b1c952de1 Speed up script execution when "--debug script" is not enabled.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4228 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-22 17:42:07 +00:00
Roman C a4ecc477be Speed up a scripting function.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4226 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-22 17:30:57 +00:00
Roman C 8478728699 Get rid of an unnecessary debug() call.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4225 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-22 17:23:28 +00:00
Dennis Schridde 758270e3c6 Copy translations from branches/2.1 and update-po
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4224 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-22 00:35:12 +00:00
Giel van Schijndel 57389641e7 Remove the last content of deliverance.h (#define MAX_STR_LENGTH 256) to wzglobal.h and remove it
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4219 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-21 23:02:22 +00:00
Giel van Schijndel e9d0c77347 Get rid of macro constant MAX_NAME_SIZE
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4218 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-21 22:49:01 +00:00
Giel van Schijndel 204f827bf7 Get rid of macro constant MAX_STR_SIZE
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4217 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-21 22:17:56 +00:00
Giel van Schijndel d3588bc4ad make printBaseObjInfo, printComponentInfo and printWeaponInfo static functions
* const correctness


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4214 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-21 21:37:26 +00:00
Giel van Schijndel 4d65c133b1 const correctness
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4213 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-21 21:37:21 +00:00
Giel van Schijndel 12f8bbbb31 Clean out unused trash from resource.h
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4212 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-21 21:37:15 +00:00
Giel van Schijndel 7f09ef6a28 get rid of an unnecessary goto-statement
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4211 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-21 21:37:09 +00:00
Giel van Schijndel 0e522201e0 Cleanup:
* Turn some file-level comments into Doxygen comments
 * Add #include guards to some headers that didn't have them yet


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4210 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-21 21:37:01 +00:00
Giel van Schijndel 8138e1b0d8 Turn some file-level comments in lib/widgets into Doxygen comments
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4209 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-21 21:36:39 +00:00
Per Inge Mathisen a622880946 Increase warning level and do cosmetic cleanup and remove dead code in events.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4208 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-21 16:52:10 +00:00
Dennis Schridde 9ca4445189 We always only have either config.h or config-macosx.h, but not both.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4207 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-21 16:38:57 +00:00
Giel van Schijndel 8421b9fee4 Turn some file-level comments in lib/widgets into Doxygen comments
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4206 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-21 15:40:23 +00:00
Giel van Schijndel de2b3ba61d Move psRetWidget into the W_SCREEN structure (instead of it being a global variable)
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4205 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-21 15:40:09 +00:00
Dennis Schridde b1b2859ea3 New enum TEXPAGE_TYPE, to better control disabling/enabling of texturing. (Changed pie_SetTexturePage accordingly.)
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4202 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-21 14:34:30 +00:00
Giel van Schijndel 9895df559d Make widgCreateScreen return the screen it created or NULL on failure
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4200 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-21 14:22:42 +00:00
Giel van Schijndel 3ed3acd891 Clean up formCreate and widgAddForm:
* Make formCreate and widgAddForm take their psInit parameters as const
 * Make formCreate return the button it created or NULL on failure


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4199 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-21 14:22:36 +00:00
Giel van Schijndel 86ca2b5f06 Clean up editBoxCreate and widgAddEditBox:
* Make editBoxCreate and widgAddEditBox take their psInit parameters as const
 * Make editBoxCreate return the button it created or NULL on failure


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4198 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-21 14:22:30 +00:00
Giel van Schijndel 6ea7968f46 Clean up labelCreate and widgAddLabel:
* Make labelCreate and widgAddLabel take their psInit parameters as const
 * Make labelCreate return the button it created or NULL on failure


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4197 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-21 14:22:20 +00:00
Giel van Schijndel 7e6e7d8b1f Clean up buttonCreate and widgAddButton:
* Make buttonCreate and widgAddButton take their psInit parameters as const
 * Make buttonCreate return the button it created or NULL on failure


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4196 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-21 14:22:15 +00:00
Giel van Schijndel a4987cfefb Clean up barGraphCreate and widgAddBarGraph:
* Make barGraphCreate and widgAddBarGraph take their psInit parameters as const
 * Make barGraphCreate return the bar it created or NULL on failure


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4195 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-21 14:22:05 +00:00
Giel van Schijndel cd8365fb01 Cleanup of widgRunScreen
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4194 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-21 14:21:53 +00:00
Giel van Schijndel 20448076bf Revert part of r4184:
* Don't use abort() as it'll be triggered in non-debug builds as well, so stick with the ASSERT(FALSE, ...


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4192 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-21 13:23:35 +00:00
Giel van Schijndel d5e31eb751 Make sliderCreate return a pointer to its created slider and NULL on failure
Const correctness:
 * make sliderCreate and widgAddSlider take its psInit pointers as const


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4185 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-21 11:47:23 +00:00
Giel van Schijndel dd02289a5e Clean up sliderCreate and widgAddSlider
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4184 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-21 11:47:19 +00:00
Giel van Schijndel 95d8cddc61 remove data/mods/global/aivolution/installation.txt from the raw makefiles and autotools buildsystem (to complement r4156)
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4181 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-20 19:34:09 +00:00
Roman C 827cd6e350 Cosmetic changes: fixed some whitespaces.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4179 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-20 18:48:18 +00:00
Roman C dabd096fd5 Buginator is concerned about my commit log record, so..:
A better fix to the ctrl-o menu bug: don't check for NULL in two different places.

Patch by Buginator.

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4177 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-20 18:42:19 +00:00
Roman C 279230ca8c Add some additional checks to unit production functions.
Patch by Buginator.

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4175 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-20 18:29:16 +00:00