Tidy headers update.

This commit is contained in:
Steve 2016-05-12 12:20:16 +01:00
parent c0ef632ed8
commit f3956d370d
5 changed files with 3 additions and 7 deletions

View File

@ -34,7 +34,6 @@ extern char *readFile(char *filename);
extern long flagsToLong(char *flags, int *add); extern long flagsToLong(char *flags, int *add);
extern long lookup(char *name); extern long lookup(char *name);
extern void doAI(void); extern void doAI(void);
extern float mod(float n, float x);
extern void applyFighterThrust(void); extern void applyFighterThrust(void);
extern void addLargeEngineEffect(void); extern void addLargeEngineEffect(void);
extern int getDistance(int x1, int y1, int x2, int y2); extern int getDistance(int x1, int y1, int x2, int y2);

View File

@ -52,7 +52,6 @@ extern char *getJSONValueStr(cJSON *node, char *name, char *defValue);
extern void awardTrophy(char *id); extern void awardTrophy(char *id);
extern void addRandomItem(int x, int y); extern void addRandomItem(int x, int y);
extern App app;
extern Battle battle; extern Battle battle;
extern Colors colors; extern Colors colors;
extern Entity *player; extern Entity *player;

View File

@ -45,7 +45,6 @@ extern int fileExists(char *filename);
extern char *getSaveFilePath(char *filename); extern char *getSaveFilePath(char *filename);
extern void init18N(int argc, char *argv[]); extern void init18N(int argc, char *argv[]);
extern void initLookups(void); extern void initLookups(void);
extern void initGame(void);
extern void doKeyDown(SDL_KeyboardEvent *event); extern void doKeyDown(SDL_KeyboardEvent *event);
extern void doKeyUp(SDL_KeyboardEvent *event); extern void doKeyUp(SDL_KeyboardEvent *event);
extern void createScreenshotFolder(void); extern void createScreenshotFolder(void);

View File

@ -74,4 +74,3 @@ extern void initTrophies(void);
extern App app; extern App app;
extern Colors colors; extern Colors colors;
extern Game game;

View File

@ -53,8 +53,8 @@ function cleanHeader($headerFile)
if (count($matches) == 3) if (count($matches) == 3)
{ {
$extern = $matches[2]; $extern = $matches[2];
if (strstr($body, $extern) === FALSE) if (!preg_match_all("/\b[(]?${extern}[\\(;,)\\n]/", $body))
{ {
if (!$hasChanges) if (!$hasChanges)
{ {
@ -89,7 +89,7 @@ function cleanHeader($headerFile)
$externs[] = $extern; $externs[] = $extern;
if (strstr($body, "$extern") === FALSE) if (!preg_match_all("/\b${extern}[\\.\\-\\)]/", $body))
{ {
if (!$hasChanges) if (!$hasChanges)
{ {