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 lookup(char *name);
extern void doAI(void);
extern float mod(float n, float x);
extern void applyFighterThrust(void);
extern void addLargeEngineEffect(void);
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 addRandomItem(int x, int y);
extern App app;
extern Battle battle;
extern Colors colors;
extern Entity *player;

View File

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

View File

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

View File

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