#include "shared/shared.h"
#include "common/common.h"
#include "common/zone.h"
Go to the source code of this file.
Classes | |
struct | zhead_s |
struct | zstatic_t |
struct | zstats_t |
Macros | |
#define | Z_MAGIC 0x1d0d |
#define | Z_TAIL 0x5b7b |
#define | Z_TAIL_F(z) *(uint16_t *)((byte *)(z) + (z)->size - sizeof(uint16_t)) |
#define | Z_FOR_EACH(z) for ((z) = z_chain.next; (z) != &z_chain; (z) = (z)->next) |
#define | Z_FOR_EACH_SAFE(z, n) for ((z) = z_chain.next; (z) != &z_chain; (z) = (n)) |
#define | Z_EXTRA (sizeof(zhead_t) + sizeof(uint16_t)) |
#define | Z_STATIC(x) { { Z_MAGIC, TAG_STATIC, q_offsetof(zstatic_t, tail) + sizeof(uint16_t) }, x, Z_TAIL } |
Typedefs | |
typedef struct zhead_s | zhead_t |
Functions | |
static void | Z_Validate (zhead_t *z, const char *func) |
void | Z_Check (void) |
void | Z_LeakTest (memtag_t tag) |
void | Z_Free (void *ptr) |
void * | Z_Realloc (void *ptr, size_t size) |
void | Z_Stats_f (void) |
void | Z_FreeTags (memtag_t tag) |
void * | Z_TagMalloc (size_t size, memtag_t tag) |
void * | Z_TagMallocz (size_t size, memtag_t tag) |
void | Z_TagReserve (size_t size, memtag_t tag) |
void * | Z_ReservedAlloc (size_t size) |
void * | Z_ReservedAllocz (size_t size) |
char * | Z_ReservedCopyString (const char *in) |
void | Z_Init (void) |
char * | Z_TagCopyString (const char *in, memtag_t tag) |
char * | Z_CvarCopyString (const char *in) |
Variables | |
static zhead_t | z_chain |
static const zstatic_t | z_static [] |
static zstats_t | z_stats [TAG_MAX] |
static const char | z_tagnames [TAG_MAX][8] |
static byte * | z_reserved_data |
static size_t | z_reserved_inuse |
static size_t | z_reserved_total |
#define Z_FOR_EACH | ( | z | ) | for ((z) = z_chain.next; (z) != &z_chain; (z) = (z)->next) |
#define Z_FOR_EACH_SAFE | ( | z, | |
n | |||
) | for ((z) = z_chain.next; (z) != &z_chain; (z) = (n)) |
#define Z_STATIC | ( | x | ) | { { Z_MAGIC, TAG_STATIC, q_offsetof(zstatic_t, tail) + sizeof(uint16_t) }, x, Z_TAIL } |
#define Z_TAIL_F | ( | z | ) | *(uint16_t *)((byte *)(z) + (z)->size - sizeof(uint16_t)) |
char* Z_CvarCopyString | ( | const char * | in | ) |
Definition at line 419 of file zone.c.
Referenced by change_string_value(), Cvar_Get(), Cvar_SetByVar(), and get_engine_cvar().
Definition at line 147 of file zone.c.
Referenced by AC_FreeChecks(), Action_Free(), BitField_Free(), Bitmap_Free(), BSP_Free(), BSP_Load(), bsp_mesh_destroy(), BSP_SavePatchedPVS(), change_string_value(), CL_CleanupDemos(), CL_CleanupDownloads(), CL_InitRefresh(), CL_LoadDownloadIgnores(), ClearServers(), CM_FreeMap(), Cmd_AliasSet(), Cmd_RemoveCommand(), Cmd_UnAlias_f(), Cmd_UnTrigger_f(), collect_cluster_lights(), Com_Crash_f(), Com_MapList_m(), computeTangents(), Con_Paste(), Con_RemoteMode_f(), create_shader_module_from_file(), Cvar_GetLatchedVars(), Cvar_SetByVar(), demo_destroy(), demo_free_playlist(), dummy_create(), Field_Free(), finish_download(), free_all_links(), free_msg_packet(), free_search_path(), FreeList(), FreeSlot(), FS_File_g(), FS_FreeList(), FS_Link_f(), FS_ListFiles(), FS_LoadFileEx(), FS_UnLink_f(), get_engine_cvar(), gtv_destroy(), HTTP_CleanupDownloads(), IMG_Load(), IMG_Load_GL(), IMG_ReloadAll(), IMG_Unload(), IMG_Unload_RTX(), Key_SetBinding(), Keybind_Free(), load_blue_noise(), load_cameras(), load_sky_and_lava_clusters(), LOC_Delete_f(), LOC_FreeLocations(), LOC_Update_f(), Menu_Free(), MVD_ClearState(), MVD_Free(), MVD_FreePlayer(), MVD_ParseServerData(), MVD_Shutdown(), MVD_StopRecord(), Netchan_Close(), pack_put(), Pairs_Free(), Parse_File(), parse_file_list(), ParseMasterArgs(), PlayerModel_Free(), PlayerModel_Load(), Pop(), Prompt_Action(), Prompt_Clear(), Prompt_ClearState(), Prompt_CompleteCommand(), Prompt_HistoryUp(), Prompt_LoadHistory(), q_printf(), R_FreeCaches(), R_ModeChanged(), R_NewMap(), R_SetSky_RTX(), R_Shutdown(), remove_all_ignores(), remove_client(), remove_ignore(), reset_unicast_strings(), S_FreeSound(), Savegame_Push(), SCR_ReadNextFrame(), SCR_StopCinematic(), SCR_UnDraw_f(), set_back_cvar(), Slider_Free(), SpinControl_Free(), SV_BeginDownload_f(), SV_CleanClient(), SV_CloseDownload(), SV_DelFilterCmd_f(), SV_DelMatch_f(), SV_DelStuffCmd_f(), SV_InitGameProgs(), SV_MvdShutdown(), SV_SetMaster_f(), SV_Shutdown(), SV_ShutdownClientSend(), VID_GetDefaultModeList(), vkpt_begin_command_buffer(), vkpt_free_command_buffers(), Z_FreeTags(), and Z_Realloc().
void Z_FreeTags | ( | memtag_t | tag | ) |
void Z_LeakTest | ( | memtag_t | tag | ) |
Definition at line 120 of file zone.c.
Referenced by CL_ShutdownRefresh(), FS_Shutdown(), MVD_Shutdown(), S_Shutdown(), SV_Shutdown(), and UI_Shutdown().
Definition at line 178 of file zone.c.
Referenced by append_light_poly(), recv_func(), and VID_GetDefaultModeList().
void* Z_ReservedAlloc | ( | size_t | size | ) |
Definition at line 349 of file zone.c.
Referenced by AC_ParseCvar(), NetchanOld_Setup(), SV_MvdInit(), Z_ReservedAllocz(), and Z_ReservedCopyString().
void* Z_ReservedAllocz | ( | size_t | size | ) |
void* Z_TagMalloc | ( | size_t | size, |
memtag_t | tag | ||
) |
Definition at line 275 of file zone.c.
Referenced by FS_LoadFileEx(), PF_TagMalloc(), Z_CvarCopyString(), Z_TagCopyString(), Z_TagMallocz(), and Z_TagReserve().
void* Z_TagMallocz | ( | size_t | size, |
memtag_t | tag | ||
) |
void Z_TagReserve | ( | size_t | size, |
memtag_t | tag | ||
) |
Definition at line 342 of file zone.c.
Referenced by AC_ParseCvar(), MVD_GameInit(), NetchanOld_Setup(), and SV_MvdInit().
Definition at line 98 of file zone.c.
Referenced by Z_Check(), Z_Free(), Z_FreeTags(), Z_LeakTest(), and Z_Realloc().
|
static |
Definition at line 49 of file zone.c.
Referenced by Z_Init(), and Z_TagMalloc().
|
static |
Definition at line 338 of file zone.c.
Referenced by Z_ReservedAlloc(), and Z_TagReserve().
|
static |
Definition at line 339 of file zone.c.
Referenced by Z_ReservedAlloc(), and Z_TagReserve().
|
static |
Definition at line 340 of file zone.c.
Referenced by Z_ReservedAlloc(), and Z_TagReserve().
|
static |
|
static |
Definition at line 81 of file zone.c.
Referenced by Z_CvarCopyString(), Z_Free(), Z_Realloc(), Z_Stats_f(), and Z_TagMalloc().
|
static |
Definition at line 83 of file zone.c.
Referenced by Z_LeakTest(), and Z_Stats_f().