[Change] Made ship_classFromString non-static.

This commit is contained in:
Allanis 2013-11-09 00:18:41 +00:00
parent 29ba80afba
commit e829e71347
2 changed files with 3 additions and 2 deletions

View File

@ -136,12 +136,12 @@ char* ship_class(Ship* s) {
} }
/** /**
* @fn static ShipClass ship_classFromString(char* str) * @fn ShipClass ship_classFromString(char* str)
* *
* @brief Get the machine ship class identifier from a human readable string. * @brief Get the machine ship class identifier from a human readable string.
* @param str String to extract ship class identifier from. * @param str String to extract ship class identifier from.
*/ */
static ShipClass ship_classFromString(char* str) { ShipClass ship_classFromString(char* str) {
/* Civilian. */ /* Civilian. */
if(strcmp(str, "civ light")==0) if(strcmp(str, "civ light")==0)
return SHIP_CLASS_CIV_LIGHT; return SHIP_CLASS_CIV_LIGHT;

View File

@ -80,6 +80,7 @@ typedef struct Ship_ {
Ship* ship_get(const char* name); Ship* ship_get(const char* name);
Ship** ship_getTech(int* n, const int* tech, const int techmax); Ship** ship_getTech(int* n, const int* tech, const int techmax);
char* ship_class(Ship* p); char* ship_class(Ship* p);
ShipClass ship_classFromString(char* str);
int ship_basePrice(Ship* s); int ship_basePrice(Ship* s);
/* Load/quit. */ /* Load/quit. */