From: <Mee...@us...> - 2011-12-31 01:58:17
|
Revision: 3726 http://sc2.svn.sourceforge.net/sc2/?rev=3726&view=rev Author: Meep-Eep Date: 2011-12-31 01:58:11 +0000 (Sat, 31 Dec 2011) Log Message: ----------- Remove dead code; consistent use of 'extern'. Modified Paths: -------------- trunk/sc2/src/uqm/build.h Modified: trunk/sc2/src/uqm/build.h =================================================================== --- trunk/sc2/src/uqm/build.h 2011-12-31 01:46:56 UTC (rev 3725) +++ trunk/sc2/src/uqm/build.h 2011-12-31 01:58:11 UTC (rev 3726) @@ -38,35 +38,20 @@ extern HSHIPFRAG CloneShipFragment (COUNT shipIndex, QUEUE *pDstQueue, COUNT crew_level); extern HLINK GetStarShipFromIndex (QUEUE *pShipQ, COUNT Index); -HSHIPFRAG GetEscortByStarShipIndex (COUNT index); +extern HSHIPFRAG GetEscortByStarShipIndex (COUNT index); extern BYTE NameCaptain (QUEUE *pQueue, SPECIES_ID SpeciesID); -/* Possible values for the 'state' argument of - * COUNT ActivateStarShip (COUNT which_ship, SIZE state) - * See that function for more information. - */ -#define SET_ALLIED 0 -#define SET_NOT_ALLIED -1 -#define CHECK_ALLIANCE -2 -#define REMOVE_BUILT -3 -#define ESCORT_WORTH -4 -#define SPHERE_KNOWN -5 -#define SPHERE_TRACKING -6 -#define ESCORTING_FLAGSHIP -7 -#define FEASIBILITY_STUDY -8 - /* Check for how many escort ships there's still space */ - extern COUNT ActivateStarShip (COUNT which_ship, SIZE state); extern COUNT GetIndexFromStarShip (QUEUE *pShipQ, HLINK hStarShip); extern int SetEscortCrewComplement (COUNT which_ship, COUNT crew_level, BYTE captain); -COUNT AddEscortShips (COUNT race, SIZE count); +extern COUNT AddEscortShips (COUNT race, SIZE count); extern COUNT CalculateEscortsWorth (void); //extern COUNT GetRaceKnownSize (COUNT race); extern COUNT SetRaceAllied (COUNT race, BOOLEAN flag); extern COUNT StartSphereTracking (COUNT race); -BOOLEAN HaveEscortShip (COUNT race); +extern BOOLEAN HaveEscortShip (COUNT race); extern COUNT EscortFeasibilityStudy (COUNT race); extern COUNT CheckAlliance (COUNT race); extern void RemoveEscortShips (COUNT race); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |