mark all local functions as static

This commit is contained in:
degasus
2014-07-08 14:29:26 +02:00
parent 3ff1c538ee
commit 22e1aa5bb4
93 changed files with 260 additions and 251 deletions

View File

@ -1583,7 +1583,7 @@ namespace GLExtensions
bool InitFunctionPointers();
// Initializes the extension list the old way
void InitExtensionList21()
static void InitExtensionList21()
{
const char* extensions = (const char*)glGetString(GL_EXTENSIONS);
std::string tmp(extensions);
@ -1593,7 +1593,7 @@ namespace GLExtensions
m_extension_list[tmp] = true;
}
void InitExtensionList()
static void InitExtensionList()
{
m_extension_list.clear();
if (_isES3)
@ -1730,7 +1730,7 @@ namespace GLExtensions
for (GLint i = 0; i < NumExtension; ++i)
m_extension_list[std::string((const char*)glGetStringi(GL_EXTENSIONS, i))] = true;
}
void InitVersion()
static void InitVersion()
{
GLint major, minor;
glGetIntegerv(GL_MAJOR_VERSION, &major);
@ -1743,7 +1743,7 @@ namespace GLExtensions
_GLVersion = 330; // Get all the fun things
}
void* GetFuncAddress(std::string name, void **func)
static void* GetFuncAddress(std::string name, void **func)
{
*func = GLInterface->GetFuncAddress(name);
if (*func == nullptr)
@ -1792,7 +1792,7 @@ namespace GLExtensions
}
// Private initialization functions
bool HasFeatures(const std::string& extensions)
static bool HasFeatures(const std::string& extensions)
{
bool result = true;
std::string tmp;