* Rename winmain.h to main.h since all it's forward declarations refer to main.c and having nothing whatsoever to do with MSWin

* Remove forward declaration of "BOOL frontendInitialised" since it is nowhere defined

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2469 4a71c877-e1ca-e34f-864e-861f7616d084
master
Giel van Schijndel 2007-09-24 18:16:10 +00:00
parent ebe882625f
commit 33b5764611
18 changed files with 17 additions and 18 deletions

View File

@ -28,7 +28,7 @@ noinst_HEADERS = action.h advvis.h ai.h aiexperience.h anim_id.h \
researchdef.h resource.h scores.h scriptai.h scriptcb.h scriptextern.h scriptfuncs.h \ researchdef.h resource.h scores.h scriptai.h scriptcb.h scriptextern.h scriptfuncs.h \
scriptobj.h scripttabs.h scriptvals.h selection.h seqdisp.h stats.h statsdef.h \ scriptobj.h scripttabs.h scriptvals.h selection.h seqdisp.h stats.h statsdef.h \
structure.h structuredef.h target.h text.h texture.h transporter.h visibility.h \ structure.h structuredef.h target.h text.h texture.h transporter.h visibility.h \
warcam.h warzoneconfig.h weapondef.h winmain.h wrappers.h warcam.h warzoneconfig.h weapondef.h main.h wrappers.h
warzone2100_SOURCES = scriptvals_parser.tab.c scriptvals_lexer.lex.c \ warzone2100_SOURCES = scriptvals_parser.tab.c scriptvals_lexer.lex.c \
level_lexer.lex.c ai.c aiexperience.c astar.c action.c advvis.c atmos.c bridge.c \ level_lexer.lex.c ai.c aiexperience.c astar.c action.c advvis.c atmos.c bridge.c \

View File

@ -31,7 +31,7 @@
#include "lib/framework/frame.h" #include "lib/framework/frame.h"
#include "lib/widget/widget.h" #include "lib/widget/widget.h"
#include "winmain.h" #include "main.h"
#include "frontend.h" #include "frontend.h"
#include "lib/ivis_common/pieclip.h" #include "lib/ivis_common/pieclip.h"

View File

@ -70,7 +70,7 @@
#include "component.h" #include "component.h"
#include "lib/script/script.h" #include "lib/script/script.h"
#include "scripttabs.h" #include "scripttabs.h"
#include "winmain.h" #include "main.h"
#include "objects.h" #include "objects.h"
#include "display.h" #include "display.h"
#include "console.h" #include "console.h"

View File

@ -58,7 +58,7 @@
#include "seqdisp.h" #include "seqdisp.h"
#include "text.h" #include "text.h"
#include "warzoneconfig.h" #include "warzoneconfig.h"
#include "winmain.h" #include "main.h"
#include "wrappers.h" #include "wrappers.h"
static int StartWithGame = 1; // New game starts in Cam 1. static int StartWithGame = 1; // New game starts in Cam 1.

View File

@ -66,7 +66,7 @@
#include "text.h" #include "text.h"
#include "transporter.h" #include "transporter.h"
#include "warcam.h" #include "warcam.h"
#include "winmain.h" #include "main.h"
#include "wrappers.h" #include "wrappers.h"

View File

@ -50,7 +50,7 @@
#include "ingameop.h" #include "ingameop.h"
#include "mission.h" #include "mission.h"
#include "transporter.h" #include "transporter.h"
#include "winmain.h" #include "main.h"
extern void addText(int FontID,UDWORD FormID,UDWORD id, UDWORD PosX, UDWORD PosY, char *txt, UDWORD attachID,BOOL *State); extern void addText(int FontID,UDWORD FormID,UDWORD id, UDWORD PosX, UDWORD PosY, char *txt, UDWORD attachID,BOOL *State);

View File

@ -88,7 +88,7 @@
#include "texture.h" #include "texture.h"
#include "transporter.h" #include "transporter.h"
#include "warzoneconfig.h" #include "warzoneconfig.h"
#include "winmain.h" #include "main.h"
#include "wrappers.h" #include "wrappers.h"
#ifdef ARROWS #ifdef ARROWS

View File

@ -62,7 +62,7 @@
#include "lib/widget/slider.h" #include "lib/widget/slider.h"
#include "lib/framework/fractions.h" #include "lib/framework/fractions.h"
#include "order.h" #include "order.h"
#include "winmain.h" #include "main.h"
#include "intimage.h" #include "intimage.h"

View File

@ -40,7 +40,7 @@
#include "lib/sound/audio_id.h" #include "lib/sound/audio_id.h"
#include "lib/sound/audio.h" #include "lib/sound/audio.h"
#include "frontend.h" #include "frontend.h"
#include "winmain.h" #include "main.h"
#include "display3d.h" #include "display3d.h"
#include "display.h" #include "display.h"
#ifndef WIN32 #ifndef WIN32

View File

@ -64,7 +64,7 @@
#include "research.h" #include "research.h"
#include "seqdisp.h" #include "seqdisp.h"
#include "warzoneconfig.h" #include "warzoneconfig.h"
#include "winmain.h" #include "main.h"
#include "wrappers.h" #include "wrappers.h"
#ifndef DATADIR #ifndef DATADIR

View File

@ -30,7 +30,6 @@ typedef enum {
//flag to indicate when initialisation is complete //flag to indicate when initialisation is complete
extern BOOL gameInitialised; extern BOOL gameInitialised;
extern BOOL frontendInitialised;
extern BOOL bDisableLobby; extern BOOL bDisableLobby;
extern GS_GAMEMODE GetGameMode(void) WZ_DECL_PURE; extern GS_GAMEMODE GetGameMode(void) WZ_DECL_PURE;

View File

@ -49,7 +49,7 @@
#include "text.h" #include "text.h"
#include "frontend.h" // for displaytextoption. #include "frontend.h" // for displaytextoption.
#include "intdisplay.h" #include "intdisplay.h"
#include "winmain.h" #include "main.h"
#include "display.h" #include "display.h"
#include "loadsave.h" #include "loadsave.h"
#include "lib/script/script.h" #include "lib/script/script.h"

View File

@ -35,7 +35,7 @@
#include "lib/ivis_opengl/screen.h" #include "lib/ivis_opengl/screen.h"
#include "lib/widget/widget.h" #include "lib/widget/widget.h"
#include "winmain.h" #include "main.h"
#include "objects.h" #include "objects.h"
#include "display.h"// pal stuff #include "display.h"// pal stuff
#include "display3d.h" #include "display3d.h"

View File

@ -28,7 +28,7 @@
#include "map.h" #include "map.h"
#include "game.h" // for loading maps #include "game.h" // for loading maps
#include "message.h" // for clearing messages. #include "message.h" // for clearing messages.
#include "winmain.h" #include "main.h"
#include "display3d.h" // for changing the viewpoint #include "display3d.h" // for changing the viewpoint
#include "power.h" #include "power.h"
#include "lib/widget/widget.h" #include "lib/widget/widget.h"

View File

@ -35,7 +35,7 @@
#include "multiplay.h" #include "multiplay.h"
#include "winmain.h" #include "main.h"
#include "hci.h" #include "hci.h"
#include "lib/gamelib/gtime.h" #include "lib/gamelib/gtime.h"

View File

@ -32,7 +32,7 @@
#include "objects.h" #include "objects.h"
#include "stats.h" #include "stats.h"
#include "map.h" #include "map.h"
#include "winmain.h" #include "main.h"
#include "lib/sound/audio_id.h" #include "lib/sound/audio_id.h"
#include "projectile.h" #include "projectile.h"
#include "text.h" #include "text.h"

View File

@ -45,7 +45,7 @@
#include "hci.h" // access to widget screen. #include "hci.h" // access to widget screen.
#include "lib/widget/widget.h" #include "lib/widget/widget.h"
#include "wrappers.h" #include "wrappers.h"
#include "winmain.h" #include "main.h"
#include "objects.h" #include "objects.h"
#include "display.h" #include "display.h"
#include "display3d.h" #include "display3d.h"

View File

@ -650,6 +650,7 @@
<Unit filename="src/main.c"> <Unit filename="src/main.c">
<Option compilerVar="CC" /> <Option compilerVar="CC" />
</Unit> </Unit>
<Unit filename="src/main.h" />
<Unit filename="src/map.c"> <Unit filename="src/map.c">
<Option compilerVar="CC" /> <Option compilerVar="CC" />
</Unit> </Unit>
@ -868,7 +869,6 @@
</Unit> </Unit>
<Unit filename="src/warzoneconfig.h" /> <Unit filename="src/warzoneconfig.h" />
<Unit filename="src/weapondef.h" /> <Unit filename="src/weapondef.h" />
<Unit filename="src/winmain.h" />
<Unit filename="src/wrappers.c"> <Unit filename="src/wrappers.c">
<Option compilerVar="CC" /> <Option compilerVar="CC" />
</Unit> </Unit>