is understood by gcc as the opposite of what it was meant for, effectively turning a lot
of debugging code on, instead of off. There may be other instances of this problem in
the code.
To reiterate:
#define SOMETHING FALSE
#ifdef SOMETHING
#error This will be executed
#endif
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@245 4a71c877-e1ca-e34f-864e-861f7616d084
has to be updated separately. (Can someone _please_ rename those
makefiles?)
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@242 4a71c877-e1ca-e34f-864e-861f7616d084
warnings removed from ivis02, ivis_common and ivis_opengl. STRING set to
char, not unsigned char; any problems with this should be fixed elsewhere
in the code - it is the right thing to do. All ENGINE_* except ENGINE_4104
(SDL) and ENGINE_OPENGL (and ENGINE_UNDEFINED, of course) code removed
(this made it much simpler to make the code sane wrt the above).
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@241 4a71c877-e1ca-e34f-864e-861f7616d084
Makefile.am that solves a potential linking problem with ivis_common. Removed checking
for binary PIEs, which only existed on PSX.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@240 4a71c877-e1ca-e34f-864e-861f7616d084
implementations. Start by sharing all identical header files, and bug.c for proof of
concept. This breaks pure makefile builds, will try to fix in next commit.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@236 4a71c877-e1ca-e34f-864e-861f7616d084
-debug to control debugging output. Use debug() instead of printf or DBPRINTF for debug
information.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@227 4a71c877-e1ca-e34f-864e-861f7616d084
after the first time trying to connect which are "solved" by quitting and restarting the
game. Patch by Henri Valta <henri.valta@kemi.fi>.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@226 4a71c877-e1ca-e34f-864e-861f7616d084
Works only with the provided Makefiles. To use it, replace the
xxx_l.c/xxx_y.c lines in the Makefile with xxx_parser.y/xxx_lexer.l (the .y
file has to be first). The game compiles with all of them, but hangs on
loading a game when using script_lexer.l/parser.y, and hangs on start when
using level_lexer.l.
- Inevitably: Compiler warning fixes.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@206 4a71c877-e1ca-e34f-864e-861f7616d084
- Give the lex/yacc generated code unique variable names.
Those two changes now make it possible to compile the game with g++ using
the "-fpermissive" compiler flag.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@205 4a71c877-e1ca-e34f-864e-861f7616d084
- For that, removed lots of unused code, mainly from the lex/yacc generated
files.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@204 4a71c877-e1ca-e34f-864e-861f7616d084
- Check if video mode could actually be set.
- Clean up the lex/yacc generated files a bit.
- Warning fixes.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@201 4a71c877-e1ca-e34f-864e-861f7616d084
independence. Summary follows:
* Ensure that all source files include an end of line character in the
last line of the file. Some compilers will complain otherwise.
* Fix case sensitivity of all #included filenames.
* Fix system include files e.g. <stdio.h>, not "stdio.h"
* Wrapped compiler specific asm statements inside #ifdef _MSC_VER
conditionals.
* Fixed function declarations that were inconsistent with their
definitions.
* Replaced #ifdef WIN32 with #ifndef PSX to aid in porting.
* Added #ifdef WIN32 conditionals around win32 specific code.
* Replaced MSVC++ specific &(type_cast)var feature with portable
replacement.
* Fixup inline function declarations.
* Replaced sscanf1() with portable sscanf("%n") replacement.
* Renamed global variable gamma -> gammaValue to avoid namespace
conflict.
* Added replacement macros for min/max provided by win32.
* framework/frameresources.c: use platform independent stdio functions.
* framework/input.c: Added setMouseUp() and setMouseDown() functions.
* framework/screen.c: Added platform independent pixel format accessors.
* ivis02/dglide.h: Added preprocessor conditional to prevent multiple
inclusion.
* netplay/netplay.h: Removed duplicate definition of UDWORD.
* netplay/netsupp.c: Added missing include file.
* src/multilimit.c: Corrected number of args in call to
pie_GlobalRenderBegin().
* src/csnap.c: Moved SetMousePos() to input.c
* src/frontend.c: Use setMouseUp|Down() functions instead of win32 ones.
* src/frontend.c: Use mouseX|Y() functions instead of win32 ones.
* src/intdisplay.c: Replaced itoa() with portable sprintf().
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@56 4a71c877-e1ca-e34f-864e-861f7616d084