mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-01-29 17:38:16 +03:00
Clean up unnecessary exports and add static keywords
This patch cleans up unnecessary exports from header files (there were only a few), as well as adds the static keyword to all symbols that aren't exported and are specific to a file. This helps the linker out in not doing any unnecessary work, speeding it up and avoiding silent symbol conflicts (otherwise two symbols with the same name (and type/signature in C++) would quietly resolve as okay by the linker).
This commit is contained in:
@@ -15,7 +15,7 @@
|
||||
#include "Script.h"
|
||||
#include "UtilityClass.h"
|
||||
|
||||
void updatebuttonmappings(int bind)
|
||||
static void updatebuttonmappings(int bind)
|
||||
{
|
||||
for (
|
||||
SDL_GameControllerButton i = SDL_CONTROLLER_BUTTON_A;
|
||||
@@ -173,7 +173,7 @@ void updatebuttonmappings(int bind)
|
||||
}
|
||||
}
|
||||
|
||||
void menuactionpress()
|
||||
static void menuactionpress()
|
||||
{
|
||||
switch (game.currentmenuname)
|
||||
{
|
||||
@@ -2059,7 +2059,7 @@ void gameinput()
|
||||
}
|
||||
}
|
||||
|
||||
void mapmenuactionpress();
|
||||
static void mapmenuactionpress();
|
||||
|
||||
void mapinput()
|
||||
{
|
||||
@@ -2247,7 +2247,7 @@ void mapinput()
|
||||
}
|
||||
}
|
||||
|
||||
void mapmenuactionpress()
|
||||
static void mapmenuactionpress()
|
||||
{
|
||||
switch (game.menupage)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user