mark functions static (#4010)

This commit is contained in:
Ludwig Nussel 2009-05-08 09:48:45 +00:00
parent f0e24f9a46
commit bbd9f02d08
7 changed files with 43 additions and 43 deletions

View file

@ -133,7 +133,7 @@ void BotDrawDebugPolygons(void (*drawPoly)(int color, int numPoints, float *poin
BotImport_Print
==================
*/
void QDECL BotImport_Print(int type, char *fmt, ...)
static void QDECL BotImport_Print(int type, char *fmt, ...)
{
char str[2048];
va_list ap;
@ -175,7 +175,7 @@ void QDECL BotImport_Print(int type, char *fmt, ...)
BotImport_Trace
==================
*/
void BotImport_Trace(bsp_trace_t *bsptrace, vec3_t start, vec3_t mins, vec3_t maxs, vec3_t end, int passent, int contentmask) {
static void BotImport_Trace(bsp_trace_t *bsptrace, vec3_t start, vec3_t mins, vec3_t maxs, vec3_t end, int passent, int contentmask) {
trace_t trace;
SV_Trace(&trace, start, mins, maxs, end, passent, contentmask, qfalse);
@ -200,7 +200,7 @@ void BotImport_Trace(bsp_trace_t *bsptrace, vec3_t start, vec3_t mins, vec3_t ma
BotImport_EntityTrace
==================
*/
void BotImport_EntityTrace(bsp_trace_t *bsptrace, vec3_t start, vec3_t mins, vec3_t maxs, vec3_t end, int entnum, int contentmask) {
static void BotImport_EntityTrace(bsp_trace_t *bsptrace, vec3_t start, vec3_t mins, vec3_t maxs, vec3_t end, int entnum, int contentmask) {
trace_t trace;
SV_ClipToEntity(&trace, start, mins, maxs, end, entnum, contentmask, qfalse);
@ -226,7 +226,7 @@ void BotImport_EntityTrace(bsp_trace_t *bsptrace, vec3_t start, vec3_t mins, vec
BotImport_PointContents
==================
*/
int BotImport_PointContents(vec3_t point) {
static int BotImport_PointContents(vec3_t point) {
return SV_PointContents(point, -1);
}
@ -235,7 +235,7 @@ int BotImport_PointContents(vec3_t point) {
BotImport_inPVS
==================
*/
int BotImport_inPVS(vec3_t p1, vec3_t p2) {
static int BotImport_inPVS(vec3_t p1, vec3_t p2) {
return SV_inPVS (p1, p2);
}
@ -244,7 +244,7 @@ int BotImport_inPVS(vec3_t p1, vec3_t p2) {
BotImport_BSPEntityData
==================
*/
char *BotImport_BSPEntityData(void) {
static char *BotImport_BSPEntityData(void) {
return CM_EntityString();
}
@ -253,7 +253,7 @@ char *BotImport_BSPEntityData(void) {
BotImport_BSPModelMinsMaxsOrigin
==================
*/
void BotImport_BSPModelMinsMaxsOrigin(int modelnum, vec3_t angles, vec3_t outmins, vec3_t outmaxs, vec3_t origin) {
static void BotImport_BSPModelMinsMaxsOrigin(int modelnum, vec3_t angles, vec3_t outmins, vec3_t outmaxs, vec3_t origin) {
clipHandle_t h;
vec3_t mins, maxs;
float max;
@ -281,7 +281,7 @@ void BotImport_BSPModelMinsMaxsOrigin(int modelnum, vec3_t angles, vec3_t outmin
BotImport_GetMemory
==================
*/
void *BotImport_GetMemory(int size) {
static void *BotImport_GetMemory(int size) {
void *ptr;
ptr = Z_TagMalloc( size, TAG_BOTLIB );
@ -293,7 +293,7 @@ void *BotImport_GetMemory(int size) {
BotImport_FreeMemory
==================
*/
void BotImport_FreeMemory(void *ptr) {
static void BotImport_FreeMemory(void *ptr) {
Z_Free(ptr);
}
@ -302,7 +302,7 @@ void BotImport_FreeMemory(void *ptr) {
BotImport_HunkAlloc
=================
*/
void *BotImport_HunkAlloc( int size ) {
static void *BotImport_HunkAlloc( int size ) {
if( Hunk_CheckMark() ) {
Com_Error( ERR_DROP, "SV_Bot_HunkAlloc: Alloc with marks already set\n" );
}
@ -341,7 +341,7 @@ int BotImport_DebugPolygonCreate(int color, int numPoints, vec3_t *points) {
BotImport_DebugPolygonShow
==================
*/
void BotImport_DebugPolygonShow(int id, int color, int numPoints, vec3_t *points) {
static void BotImport_DebugPolygonShow(int id, int color, int numPoints, vec3_t *points) {
bot_debugpoly_t *poly;
if (!debugpolygons) return;
@ -368,7 +368,7 @@ void BotImport_DebugPolygonDelete(int id)
BotImport_DebugLineCreate
==================
*/
int BotImport_DebugLineCreate(void) {
static int BotImport_DebugLineCreate(void) {
vec3_t points[1];
return BotImport_DebugPolygonCreate(0, 0, points);
}
@ -378,7 +378,7 @@ int BotImport_DebugLineCreate(void) {
BotImport_DebugLineDelete
==================
*/
void BotImport_DebugLineDelete(int line) {
static void BotImport_DebugLineDelete(int line) {
BotImport_DebugPolygonDelete(line);
}
@ -387,7 +387,7 @@ void BotImport_DebugLineDelete(int line) {
BotImport_DebugLineShow
==================
*/
void BotImport_DebugLineShow(int line, vec3_t start, vec3_t end, int color) {
static void BotImport_DebugLineShow(int line, vec3_t start, vec3_t end, int color) {
vec3_t points[4], dir, cross, up = {0, 0, 1};
float dot;
@ -420,7 +420,7 @@ void BotImport_DebugLineShow(int line, vec3_t start, vec3_t end, int color) {
SV_BotClientCommand
==================
*/
void BotClientCommand( int client, char *command ) {
static void BotClientCommand( int client, char *command ) {
SV_ExecuteClientCommand( &svs.clients[client], command, qtrue );
}