Make some local functions static.

git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@7937 4a71c877-e1ca-e34f-864e-861f7616d084
master
Per Inge Mathisen 2009-08-05 22:04:15 +00:00 committed by Git SVN Gateway
parent 7f24bd6dfb
commit 33e23992d8
4 changed files with 4 additions and 10 deletions

View File

@ -483,7 +483,7 @@ static void formationFindFree(FORMATION *psFormation, DROID* psDroid,
// re-insert all the units in the formation
void formationReorder(FORMATION *psFormation)
static void formationReorder(FORMATION *psFormation)
{
SDWORD numObj, i,curr,prev;
F_MEMBER *asMembers, asDroids[F_MAXMEMBERS];

View File

@ -54,9 +54,6 @@ extern void formationLeave(FORMATION *psFormation, const DROID* psDroid);
// remove all the members from a formation and release it
extern void formationReset(FORMATION *psFormation);
// re-insert all the units in the formation
extern void formationReorder(FORMATION *psFormation);
// get a target position to move into a formation
extern BOOL formationGetPos(FORMATION *psFormation, DROID* psDroid,
SDWORD *pX, SDWORD *pY, BOOL bCheckLOS);

View File

@ -175,12 +175,10 @@ STAT_BAR infoBars[]=
};
// --------------------------------------------------------------------
void constructTime(char *psText, UDWORD hours, UDWORD minutes, UDWORD seconds);
void drawDroidBars( void );
void drawUnitBars( void );
static void constructTime(char *psText, UDWORD hours, UDWORD minutes, UDWORD seconds);
static void drawStatBars(void);
void fillUpStats( void );
void dispAdditionalInfo( void );
static void fillUpStats( void );
static void dispAdditionalInfo( void );
// --------------------------------------------------------------------
/* The present mission data */

View File

@ -93,7 +93,6 @@ extern BOOL scoreInitSystem ( void );
extern void scoreUpdateVar ( DATA_INDEX var );
extern void scoreDataToConsole ( void );
extern void scoreDataToScreen ( void );
extern void constructTime ( char *psText, UDWORD hours, UDWORD minutes, UDWORD seconds );
extern void getAsciiTime ( char *psText, UDWORD time );
extern bool readScoreData ( const char* fileName );
extern bool writeScoreData ( const char* fileName );