From 4bfc084c4974ecff94e273a7608ebc38f1c046ab Mon Sep 17 00:00:00 2001 From: tma Date: Fri, 23 Sep 2005 17:39:14 +0000 Subject: * Applied ajax's cleanup patch git-svn-id: svn://svn.icculus.org/quake3/trunk@101 edf5b092-35ff-0310-97b2-ce42778d08ea --- code/ui/ui_shared.c | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) (limited to 'code/ui/ui_shared.c') diff --git a/code/ui/ui_shared.c b/code/ui/ui_shared.c index 3b1fc92..db643ca 100644 --- a/code/ui/ui_shared.c +++ b/code/ui/ui_shared.c @@ -118,7 +118,7 @@ void UI_InitMemory( void ) { outOfMemory = qfalse; } -qboolean UI_OutOfMemory() { +qboolean UI_OutOfMemory( void ) { return outOfMemory; } @@ -210,7 +210,7 @@ const char *String_Alloc(const char *p) { return NULL; } -void String_Report() { +void String_Report(void) { float f; Com_Printf("Memory/String Pool Info\n"); Com_Printf("----------------\n"); @@ -229,10 +229,10 @@ void String_Report() { String_Init ================= */ -void String_Init() { +void String_Init(void) { int i; for (i = 0; i < HASH_TABLE_SIZE; i++) { - strHandle[i] = 0; + strHandle[i] = NULL; } strHandleCount = 0; strPoolIndex = 0; @@ -1032,7 +1032,7 @@ void Menus_CloseByName(const char *p) { } } -void Menus_CloseAll() { +void Menus_CloseAll(void) { int i; for (i = 0; i < menuCount; i++) { Menu_RunCloseScript(&Menus[i]); @@ -3449,7 +3449,7 @@ void Item_Bind_Paint(itemDef_t *item) { } } -qboolean Display_KeyBindPending() { +qboolean Display_KeyBindPending(void) { return g_waitingForKey; } @@ -4075,7 +4075,7 @@ itemDef_t *Menu_GetFocusedItem(menuDef_t *menu) { return NULL; } -menuDef_t *Menu_GetFocused() { +menuDef_t *Menu_GetFocused(void) { int i; for (i = 0; i < menuCount; i++) { if (Menus[i].window.flags & WINDOW_HASFOCUS && Menus[i].window.flags & WINDOW_VISIBLE) { @@ -4125,7 +4125,7 @@ void Menu_SetFeederSelection(menuDef_t *menu, int feeder, int index, const char } } -qboolean Menus_AnyFullScreenVisible() { +qboolean Menus_AnyFullScreenVisible(void) { int i; for (i = 0; i < menuCount; i++) { if (Menus[i].window.flags & WINDOW_VISIBLE && Menus[i].fullScreen) { @@ -5611,11 +5611,11 @@ void Menu_New(int handle) { } } -int Menu_Count() { +int Menu_Count(void) { return menuCount; } -void Menu_PaintAll() { +void Menu_PaintAll(void) { int i; if (captureFunc) { captureFunc(captureData); @@ -5631,11 +5631,11 @@ void Menu_PaintAll() { } } -void Menu_Reset() { +void Menu_Reset(void) { menuCount = 0; } -displayContextDef_t *Display_GetContext() { +displayContextDef_t *Display_GetContext(void) { return DC; } @@ -5740,7 +5740,7 @@ static void Menu_CacheContents(menuDef_t *menu) { } -void Display_CacheAll() { +void Display_CacheAll(void) { int i; for (i = 0; i < menuCount; i++) { Menu_CacheContents(&Menus[i]); -- cgit v1.2.3