Tidy headers update.
This commit is contained in:
parent
c0ef632ed8
commit
f3956d370d
|
@ -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);
|
||||||
|
|
|
@ -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;
|
||||||
|
|
|
@ -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);
|
||||||
|
|
|
@ -74,4 +74,3 @@ extern void initTrophies(void);
|
||||||
|
|
||||||
extern App app;
|
extern App app;
|
||||||
extern Colors colors;
|
extern Colors colors;
|
||||||
extern Game game;
|
|
||||||
|
|
|
@ -54,7 +54,7 @@ function cleanHeader($headerFile)
|
||||||
{
|
{
|
||||||
$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)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue