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

@ -84,13 +84,13 @@ static const float fractionTable[32] = {
using namespace Gen;
void LOADERDECL PosMtx_ReadDirect_UByte()
static void LOADERDECL PosMtx_ReadDirect_UByte()
{
s_curposmtx = DataReadU8() & 0x3f;
PRIM_LOG("posmtx: %d, ", s_curposmtx);
}
void LOADERDECL PosMtx_Write()
static void LOADERDECL PosMtx_Write()
{
DataWrite<u8>(s_curposmtx);
DataWrite<u8>(0);
@ -101,7 +101,7 @@ void LOADERDECL PosMtx_Write()
s_curposmtx = (u8) MatrixIndexA.PosNormalMtxIdx;
}
void LOADERDECL UpdateBoundingBoxPrepare()
static void LOADERDECL UpdateBoundingBoxPrepare()
{
if (!PixelEngine::bbox_active)
return;
@ -112,7 +112,7 @@ void LOADERDECL UpdateBoundingBoxPrepare()
VertexManager::s_pCurBufferPointer = (u8*)s_bbox_vertex_buffer;
}
inline bool UpdateBoundingBoxVars()
static inline bool UpdateBoundingBoxVars()
{
switch (s_bbox_primitive)
{
@ -198,7 +198,7 @@ inline bool UpdateBoundingBoxVars()
}
}
void LOADERDECL UpdateBoundingBox()
static void LOADERDECL UpdateBoundingBox()
{
if (!PixelEngine::bbox_active)
return;
@ -431,25 +431,25 @@ void LOADERDECL UpdateBoundingBox()
PixelEngine::bbox[3] = (bottom > PixelEngine::bbox[3]) ? bottom : PixelEngine::bbox[3];
}
void LOADERDECL TexMtx_ReadDirect_UByte()
static void LOADERDECL TexMtx_ReadDirect_UByte()
{
s_curtexmtx[s_texmtxread] = DataReadU8() & 0x3f;
PRIM_LOG("texmtx%d: %d, ", s_texmtxread, s_curtexmtx[s_texmtxread]);
s_texmtxread++;
}
void LOADERDECL TexMtx_Write_Float()
static void LOADERDECL TexMtx_Write_Float()
{
DataWrite(float(s_curtexmtx[s_texmtxwrite++]));
}
void LOADERDECL TexMtx_Write_Float2()
static void LOADERDECL TexMtx_Write_Float2()
{
DataWrite(0.f);
DataWrite(float(s_curtexmtx[s_texmtxwrite++]));
}
void LOADERDECL TexMtx_Write_Float4()
static void LOADERDECL TexMtx_Write_Float4()
{
DataWrite(0.f);
DataWrite(0.f);