#include "shared/shared.h"
#include "shared/list.h"
#include "common/cmd.h"
#include "common/common.h"
#include "common/cvar.h"
#include "common/error.h"
#include "common/files.h"
#include "common/prompt.h"
#include "common/utils.h"
#include "client/client.h"
Go to the source code of this file.
Classes | |
struct | cmdalias_s |
struct | cmd_trigger_t |
struct | cmd_function_s |
Macros | |
#define | Cmd_Malloc(size) Z_TagMalloc(size, TAG_CMD) |
#define | Cmd_CopyString(string) Z_TagCopyString(string, TAG_CMD) |
#define | ALIAS_HASH_SIZE 64 |
#define | FOR_EACH_ALIAS_HASH(alias, hash) LIST_FOR_EACH(cmdalias_t, alias, &cmd_aliasHash[hash], hashEntry) |
#define | FOR_EACH_ALIAS(alias) LIST_FOR_EACH(cmdalias_t, alias, &cmd_alias, listEntry) |
#define | FOR_EACH_TRIGGER(trig) LIST_FOR_EACH(cmd_trigger_t, trig, &cmd_triggers, entry) |
#define | FOR_EACH_TRIGGER_SAFE(trig, next) LIST_FOR_EACH_SAFE(cmd_trigger_t, trig, next, &cmd_triggers, entry) |
#define | MACRO_HASH_SIZE 64 |
#define | CMD_HASH_SIZE 128 |
#define | FOR_EACH_CMD_HASH(cmd, hash) LIST_FOR_EACH(cmd_function_t, cmd, &cmd_hash[hash], hashEntry) |
#define | FOR_EACH_CMD(cmd) LIST_FOR_EACH(cmd_function_t, cmd, &cmd_functions, listEntry) |
Typedefs | |
typedef struct cmdalias_s | cmdalias_t |
typedef struct cmd_function_s | cmd_function_t |
Functions | |
static char * | Cmd_ArgsRange (int from, int to) |
static void | Cmd_Wait_f (void) |
void | Cbuf_Init (void) |
void | Cbuf_AddText (cmdbuf_t *buf, const char *text) |
char * | Cbuf_Alloc (cmdbuf_t *buf, size_t len) |
void | Cbuf_InsertText (cmdbuf_t *buf, const char *text) |
void | Cbuf_Execute (cmdbuf_t *buf) |
static cmdalias_t * | Cmd_AliasFind (const char *name) |
char * | Cmd_AliasCommand (const char *name) |
void | Cmd_AliasSet (const char *name, const char *cmd) |
void | Cmd_Alias_g (genctx_t *ctx) |
void | Cmd_Alias_f (void) |
static void | Cmd_UnAlias_f (void) |
static void | Cmd_Alias_c (genctx_t *ctx, int argnum) |
static void | Cmd_UnAlias_c (genctx_t *ctx, int argnum) |
static cmd_trigger_t * | find_trigger (const char *command, const char *match) |
static void | list_triggers (void) |
static void | Cmd_Trigger_f (void) |
static void | Cmd_UnTrigger_f (void) |
void | Cmd_ExecTrigger (const char *string) |
static void | Cmd_If_f (void) |
static void | Cmd_OpenURL_f (void) |
cmd_macro_t * | Cmd_FindMacro (const char *name) |
void | Cmd_Macro_g (genctx_t *ctx) |
void | Cmd_AddMacro (const char *name, xmacro_t function) |
from_t | Cmd_From (void) |
size_t | Cmd_ArgOffset (int arg) |
int | Cmd_FindArgForOffset (size_t offset) |
size_t | Cmd_WhiteSpaceTail (void) |
int | Cmd_Argc (void) |
char * | Cmd_Argv (int arg) |
size_t | Cmd_ArgvBuffer (int arg, char *buffer, size_t size) |
char * | Cmd_Args (void) |
char * | Cmd_RawArgs (void) |
char * | Cmd_RawString (void) |
size_t | Cmd_ArgsBuffer (char *buffer, size_t size) |
char * | Cmd_ArgsFrom (int from) |
char * | Cmd_RawArgsFrom (int from) |
void | Cmd_Shift (void) |
int | Cmd_ParseOptions (const cmd_option_t *opt) |
void | Cmd_PrintUsage (const cmd_option_t *opt, const char *suffix) |
void | Cmd_PrintHelp (const cmd_option_t *opt) |
void | Cmd_PrintHint (void) |
void | Cmd_Option_c (const cmd_option_t *opt, xgenerator_t g, genctx_t *ctx, int argnum) |
char * | Cmd_MacroExpandString (const char *text, qboolean aliasHack) |
void | Cmd_TokenizeString (const char *text, qboolean macroExpand) |
static cmd_function_t * | Cmd_Find (const char *name) |
static void | Cmd_RegCommand (const cmdreg_t *reg) |
void | Cmd_AddCommand (const char *name, xcommand_t function) |
void | Cmd_Register (const cmdreg_t *reg) |
void | Cmd_Deregister (const cmdreg_t *reg) |
void | Cmd_RemoveCommand (const char *name) |
qboolean | Cmd_Exists (const char *name) |
xcommand_t | Cmd_FindFunction (const char *name) |
xcompleter_t | Cmd_FindCompleter (const char *name) |
void | Cmd_Command_g (genctx_t *ctx) |
void | Cmd_ExecuteCommand (cmdbuf_t *buf) |
void | Cmd_ExecuteString (cmdbuf_t *buf, const char *text) |
qerror_t | Cmd_ExecuteFile (const char *path, unsigned flags) |
static void | Cmd_Exec_f (void) |
void | Cmd_Config_g (genctx_t *ctx) |
static void | Cmd_Exec_c (genctx_t *ctx, int argnum) |
static void | Cmd_Echo_f (void) |
static void | Cmd_EchoEx_c (genctx_t *ctx, int argnum) |
static char * | unescape_string (char *dst, const char *src) |
static void | Cmd_EchoEx_f (void) |
static void | Cmd_List_f (void) |
static void | Cmd_MacroList_f (void) |
static void | Cmd_Text_f (void) |
static void | Cmd_Complete_f (void) |
void | Cmd_Init (void) |
Variables | |
char | cmd_buffer_text [CMD_BUFFER_SIZE] |
cmdbuf_t | cmd_buffer |
cmdbuf_t * | cmd_current |
static list_t | cmd_alias |
static list_t | cmd_aliasHash [ALIAS_HASH_SIZE] |
static list_t | cmd_triggers |
static cmd_macro_t * | cmd_macros |
static cmd_macro_t * | cmd_macroHash [MACRO_HASH_SIZE] |
static list_t | cmd_functions |
static list_t | cmd_hash [CMD_HASH_SIZE] |
static int | cmd_argc |
static char * | cmd_argv [MAX_STRING_TOKENS] |
static char * | cmd_null_string = "" |
static char | cmd_string [MAX_STRING_CHARS] |
static size_t | cmd_string_len |
static size_t | cmd_string_tail |
static size_t | cmd_offsets [MAX_STRING_TOKENS] |
static char | cmd_data [MAX_STRING_CHARS] |
static char | cmd_args [MAX_STRING_CHARS] |
int | cmd_optind |
char * | cmd_optarg |
char * | cmd_optopt |
static const cmd_option_t | o_echo [] |
static const cmdreg_t | c_cmd [] |
#define Cmd_CopyString | ( | string | ) | Z_TagCopyString(string, TAG_CMD) |
#define Cmd_Malloc | ( | size | ) | Z_TagMalloc(size, TAG_CMD) |
#define FOR_EACH_ALIAS | ( | alias | ) | LIST_FOR_EACH(cmdalias_t, alias, &cmd_alias, listEntry) |
#define FOR_EACH_ALIAS_HASH | ( | alias, | |
hash | |||
) | LIST_FOR_EACH(cmdalias_t, alias, &cmd_aliasHash[hash], hashEntry) |
#define FOR_EACH_CMD | ( | cmd | ) | LIST_FOR_EACH(cmd_function_t, cmd, &cmd_functions, listEntry) |
#define FOR_EACH_CMD_HASH | ( | cmd, | |
hash | |||
) | LIST_FOR_EACH(cmd_function_t, cmd, &cmd_hash[hash], hashEntry) |
#define FOR_EACH_TRIGGER | ( | trig | ) | LIST_FOR_EACH(cmd_trigger_t, trig, &cmd_triggers, entry) |
#define FOR_EACH_TRIGGER_SAFE | ( | trig, | |
next | |||
) | LIST_FOR_EACH_SAFE(cmd_trigger_t, trig, next, &cmd_triggers, entry) |
typedef struct cmd_function_s cmd_function_t |
typedef struct cmdalias_s cmdalias_t |
void Cbuf_AddText | ( | cmdbuf_t * | buf, |
const char * | text | ||
) |
Definition at line 95 of file cmd.c.
Referenced by Activate(), CL_ParseStuffText(), Cmd_ExecTrigger(), Cmd_Text_f(), Com_AddLateCommands(), Con_Action(), Connect(), dummy_add_message(), dummy_run(), dummy_spawn(), finish_demo(), Key_Event(), NET_OpenServer(), PF_AddCommandString(), PlayDemo(), Qcommon_Init(), S_Update(), SV_MvdStuff_f(), SV_NextServer_f(), and VID_ToggleFullscreen().
char* Cbuf_Alloc | ( | cmdbuf_t * | buf, |
size_t | len | ||
) |
void Cbuf_Execute | ( | cmdbuf_t * | buf | ) |
Definition at line 152 of file cmd.c.
Referenced by CL_ParseServerData(), CL_PlayDemo_f(), CL_ProcessEvents(), Com_AddConfigFile(), Com_AddLateCommands(), dummy_run(), finish_demo(), Qcommon_Init(), and SV_Frame().
void Cbuf_InsertText | ( | cmdbuf_t * | buf, |
const char * | text | ||
) |
Definition at line 128 of file cmd.c.
Referenced by CL_FollowIP_f(), CL_Pause_f(), CL_PlayDemo_f(), CL_Seek_f(), Cmd_ExecuteCommand(), Cmd_ExecuteFile(), Cmd_If_f(), and dummy_exec_string().
void Cmd_AddCommand | ( | const char * | name, |
xcommand_t | function | ||
) |
Definition at line 1562 of file cmd.c.
Referenced by BSP_Init(), CL_GTV_Init(), CL_InitAscii(), CL_InitDownloads(), CL_RegisterInput(), GL_Register(), Key_Init(), LOC_Init(), MOD_Init(), NET_Init(), OGG_Init(), Qcommon_Init(), R_Init_RTX(), R_Register(), SV_InitOperatorCommands(), Sys_Init(), and TST_Init().
void Cmd_AddMacro | ( | const char * | name, |
xmacro_t | function | ||
) |
Definition at line 770 of file cmd.c.
Referenced by CL_InitLocal(), GL_Register(), LOC_Init(), NET_Init(), and Qcommon_Init().
void Cmd_Alias_g | ( | genctx_t * | ctx | ) |
Definition at line 288 of file cmd.c.
Referenced by Cmd_Alias_c(), Cmd_UnAlias_c(), Com_Generic_c(), and Prompt_CompleteCommand().
char* Cmd_AliasCommand | ( | const char * | name | ) |
|
static |
Definition at line 236 of file cmd.c.
Referenced by Cmd_Alias_f(), Cmd_AliasCommand(), Cmd_AliasSet(), Cmd_ExecuteCommand(), and Cmd_UnAlias_f().
void Cmd_AliasSet | ( | const char * | name, |
const char * | cmd | ||
) |
Definition at line 889 of file cmd.c.
Referenced by AC_Info_f(), CL_Changing_f(), CL_Connect_f(), CL_ConnectionlessPacket(), CL_Download_f(), CL_FollowIP_f(), CL_ForwardToServer_f(), CL_IgnoreNick_f(), CL_IgnoreText_f(), CL_PlayDemo_f(), CL_PlaySound_f(), CL_Rcon_f(), CL_Seek_f(), CL_ServerStatus_f(), CL_UnIgnoreNick_f(), CL_UnIgnoreText_f(), Cmd_Alias_f(), Cmd_Exec_f(), Cmd_If_f(), Cmd_OpenURL_f(), Cmd_Trigger_f(), Cmd_UnTrigger_f(), Com_Freeze_f(), Com_PrintJunk_f(), Con_Dump_f(), Con_RemoteMode_f(), Cvar_Command(), Cvar_Inc_f(), Cvar_Reset_f(), Cvar_Set_f(), Cvar_SetFlag_f(), Cvar_Toggle_f(), dummy_record_f(), dump_program(), exec_server_string(), FS_Dir_f(), FS_FDir_f(), FS_Link_f(), FS_WhereIs_f(), IMG_List_f(), IMG_ScreenShot_f(), IMG_ScreenShotJPG_f(), IMG_ScreenShotPNG_f(), IMG_ScreenShotTGA_f(), Key_Bind_f(), Key_Unbind_f(), LOC_Add_f(), LOC_LoadLocations(), LOC_Update_f(), MVD_Admin_f(), MVD_AutoFollow_f(), MVD_Follow_f(), MVD_Play_f(), MVD_Seek_f(), NET_Dns_f(), OGG_Cmd(), Parse_Action(), Parse_Banner(), Parse_Bind(), Parse_Bitmap(), Parse_Color(), Parse_File(), Parse_Footer(), Parse_If(), Parse_Pairs(), Parse_Plaque(), Parse_Range(), Parse_Savegame(), Parse_Spin(), Parse_Toggle(), ParseMasterArgs(), Prompt_CompleteCommand(), SCR_Draw_f(), SCR_ScoreShot_f(), SCR_Sky_f(), SCR_TimeRefresh_f(), SCR_UnDraw_f(), SV_AddFilterCmd_f(), SV_AddMatch_f(), SV_AddStuffCmd_f(), SV_BeginDownload_f(), SV_ConSay_f(), SV_DelFilterCmd_f(), SV_DelMatch_f(), SV_DelStuffCmd_f(), SV_DumpEnts_f(), SV_DumpUser_f(), SV_GameMap_f(), SV_InitGameProgs(), SV_Kick_f(), SV_Lag_f(), SV_ListStuffCmds_f(), SV_Loadgame_f(), SV_Map_f(), SV_MvdStatus_f(), SV_PickClient_f(), SV_Savegame_f(), SV_SetMaster_f(), SV_Status_f(), SV_Stuff_f(), SV_StuffAll_f(), SV_StuffCvar_f(), UI_PushMenu_f(), V_Gun_Model_f(), and vkpt_set_material().
size_t Cmd_ArgOffset | ( | int | arg | ) |
char* Cmd_Args | ( | void | ) |
Definition at line 933 of file cmd.c.
Referenced by Cmd_ArgsBuffer(), Cmd_Echo_f(), Cmd_MacroExpandString(), Cmd_Text_f(), Com_Quit_f(), Com_Recycle_f(), dummy_forward_f(), gtv_forward_cmd(), LOC_Add_f(), and LOC_Update_f().
size_t Cmd_ArgsBuffer | ( | char * | buffer, |
size_t | size | ||
) |
char* Cmd_ArgsFrom | ( | int | from | ) |
Definition at line 981 of file cmd.c.
Referenced by CL_IgnoreText_f(), CL_UnIgnoreText_f(), Cmd_Alias_f(), Cmd_If_f(), Cmd_Trigger_f(), Cmd_UnTrigger_f(), Cvar_Command(), Cvar_Set_f(), Cvar_SetFlag_f(), Key_Bind_f(), MVD_Say_f(), Parse_Action(), Parse_Bind(), Parse_Bitmap(), Prompt_CompleteCommand(), SV_AddFilterCmd_f(), SV_AddMatch_f(), and SV_AddStuffCmd_f().
char* Cmd_Argv | ( | int | arg | ) |
Definition at line 899 of file cmd.c.
Referenced by AC_Info_f(), AC_List_f(), CL_Changing_f(), CL_Connect_f(), CL_ConnectionlessPacket(), CL_Download_f(), CL_FollowIP_f(), CL_ForwardToServer(), CL_ForwardToServer_f(), CL_PlayDemo_f(), CL_PlaySound_f(), CL_Precache_f(), CL_Rcon_f(), CL_Seek_f(), CL_ServerStatus_f(), CL_UnIgnoreText_f(), Cmd_Alias_f(), Cmd_Exec_f(), Cmd_If_f(), Cmd_MacroExpandString(), Cmd_OpenURL_f(), Cmd_Trigger_f(), Cmd_UnAlias_f(), Cmd_UnTrigger_f(), Cmd_Wait_f(), Com_Crash_f(), Com_Error_f(), Com_ErrorDrop_f(), Com_Freeze_f(), Com_Generic_c(), Com_PrintJunk_f(), Con_Dump_f(), Con_RemoteMode_f(), Cvar_Inc_f(), Cvar_Reset_f(), Cvar_Set_c(), Cvar_Set_f(), Cvar_SetFlag_f(), Cvar_Toggle_c(), Cvar_Toggle_f(), dummy_exec_string(), dummy_forward_f(), dummy_record_f(), dummy_wait_f(), dump_program(), exec_server_string(), FS_Dir_f(), FS_FDir_f(), FS_Link_f(), FS_Link_g(), FS_UnLink_f(), FS_WhereIs_f(), gtv_set_conn(), IMG_List_f(), IMG_ScreenShot_f(), IMG_ScreenShotJPG_f(), IMG_ScreenShotPNG_f(), IMG_ScreenShotTGA_f(), IN_Impulse(), Key_Bind_f(), Key_Unbind_f(), KeyDown(), KeyUp(), LOC_Add_f(), LOC_LoadLocations(), LOC_Update_f(), MAT_SetPBRMaterialAttribute(), MVD_Admin_f(), MVD_AutoFollow_f(), MVD_Follow_f(), MVD_GameClientCommand(), MVD_ListChannels_f(), MVD_Play_f(), MVD_Seek_f(), MVD_SetChannel(), MVD_Skip_f(), MVD_StreamedStop_f(), NET_Dns_f(), OGG_Cmd(), OGG_HelpMsg(), Parse_Action(), Parse_Background(), Parse_Banner(), parse_basic_params(), Parse_Bind(), Parse_Bitmap(), Parse_Color(), parse_enhanced_params(), Parse_Field(), Parse_File(), Parse_Footer(), Parse_If(), parse_packet_length(), Parse_Pairs(), Parse_Plaque(), Parse_Range(), Parse_Savegame(), Parse_Spin(), Parse_Toggle(), parse_userinfo(), ParseMasterArgs(), Prompt_CompleteCommand(), rcon_valid(), SCR_Draw_f(), SCR_ScoreShot_f(), SCR_Sky_f(), SCR_UnDraw_f(), should_really_restart(), SV_AddFilterCmd_f(), SV_AddMatch_f(), SV_AddStuffCmd_f(), SV_BeginDownload_f(), SV_ConnectionlessPacket(), SV_ConSay_f(), SV_CvarResult_f(), SV_DelFilterCmd_f(), SV_DelMatch_f(), SV_DelStuffCmd_f(), SV_DemoMap_f(), SV_DumpEnts_f(), SV_DumpUser_f(), SV_ExecuteUserCommand(), SV_FindStuffList(), SV_GameMap_f(), SV_InitGameProgs(), SV_Kick_f(), SV_Lag_f(), SV_ListStuffCmds_f(), SV_Loadgame_f(), SV_Map_f(), SV_MvdStuff_f(), SV_PickClient_f(), SV_Savegame_f(), SV_SetMaster_f(), SV_SetPlayer(), SV_Status_f(), SV_Stuff_f(), SV_StuffAll_f(), SV_StuffCvar_f(), SVC_Info(), UI_PushMenu_f(), V_Gun_Model_f(), and vkpt_set_material().
size_t Cmd_ArgvBuffer | ( | int | arg, |
char * | buffer, | ||
size_t | size | ||
) |
Definition at line 912 of file cmd.c.
Referenced by CL_PlaySound_f(), NET_Dns_f(), Parse_File(), parse_ignore_nick(), SV_BeginDownload_f(), and SV_Map().
void Cmd_Command_g | ( | genctx_t * | ctx | ) |
void Cmd_Config_g | ( | genctx_t * | ctx | ) |
void Cmd_Deregister | ( | const cmdreg_t * | reg | ) |
Definition at line 1580 of file cmd.c.
Referenced by FS_Shutdown(), IMG_Shutdown(), S_Shutdown(), SCR_Shutdown(), UI_Shutdown(), and V_Shutdown().
void Cmd_ExecTrigger | ( | const char * | string | ) |
Definition at line 576 of file cmd.c.
Referenced by CL_Changing_f(), CL_ParseCenterPrint(), CL_ParsePrint(), and set_active_state().
void Cmd_ExecuteCommand | ( | cmdbuf_t * | buf | ) |
qerror_t Cmd_ExecuteFile | ( | const char * | path, |
unsigned | flags | ||
) |
void Cmd_ExecuteString | ( | cmdbuf_t * | buf, |
const char * | text | ||
) |
qboolean Cmd_Exists | ( | const char * | name | ) |
Definition at line 1613 of file cmd.c.
Referenced by Cmd_Alias_f().
|
static |
Definition at line 1508 of file cmd.c.
Referenced by Cmd_Complete_f(), Cmd_ExecuteCommand(), Cmd_Exists(), Cmd_FindCompleter(), Cmd_FindFunction(), Cmd_RegCommand(), and Cmd_RemoveCommand().
int Cmd_FindArgForOffset | ( | size_t | offset | ) |
xcompleter_t Cmd_FindCompleter | ( | const char * | name | ) |
cmd_macro_t* Cmd_FindMacro | ( | const char * | name | ) |
Definition at line 739 of file cmd.c.
Referenced by Cmd_AddMacro(), Cmd_MacroExpandString(), SCR_Draw_f(), and SCR_UnDraw_f().
from_t Cmd_From | ( | void | ) |
Definition at line 851 of file cmd.c.
Referenced by Cvar_Command(), Cvar_Inc_f(), Cvar_Reset_f(), Cvar_ResetAll_f(), Cvar_Set_f(), Cvar_SetFlag_f(), and Cvar_Toggle_f().
void Cmd_Macro_g | ( | genctx_t * | ctx | ) |
char* Cmd_MacroExpandString | ( | const char * | text, |
qboolean | aliasHack | ||
) |
Definition at line 1218 of file cmd.c.
Referenced by Cmd_ExecTrigger(), Cmd_ExecuteCommand(), and Cmd_TokenizeString().
Definition at line 1183 of file cmd.c.
Referenced by CL_WriteConfig_c(), Cmd_EchoEx_c(), Cvar_List_c(), MVD_Connect_c(), and MVD_Play_c().
int Cmd_ParseOptions | ( | const cmd_option_t * | opt | ) |
Definition at line 1057 of file cmd.c.
Referenced by CL_Record_f(), CL_WriteConfig_f(), Cmd_EchoEx_f(), Cmd_UnAlias_f(), Cvar_List_f(), FS_UnLink_f(), MVD_Connect_f(), MVD_Control_f(), MVD_Play_f(), MVD_StreamedRecord_f(), Parse_Action(), Parse_Bind(), Parse_Bitmap(), Parse_Field(), Parse_Pairs(), Parse_Range(), Parse_Savegame(), Parse_Spin(), Parse_Style(), Parse_Toggle(), and SV_MvdRecord_f().
void Cmd_PrintHelp | ( | const cmd_option_t * | opt | ) |
Definition at line 1160 of file cmd.c.
Referenced by CL_Record_f(), CL_WriteConfig_f(), Cmd_EchoEx_f(), Cmd_UnAlias_f(), Cvar_List_f(), FS_UnLink_f(), MVD_Connect_f(), MVD_Control_f(), MVD_Play_f(), MVD_StreamedRecord_f(), and SV_MvdRecord_f().
Definition at line 1178 of file cmd.c.
Referenced by CL_Record_f(), CL_WriteConfig_f(), Cmd_ParseOptions(), FS_UnLink_f(), MVD_Connect_f(), MVD_Control_f(), MVD_Play_f(), MVD_StreamedRecord_f(), and SV_MvdRecord_f().
void Cmd_PrintUsage | ( | const cmd_option_t * | opt, |
const char * | suffix | ||
) |
Definition at line 1143 of file cmd.c.
Referenced by CL_Record_f(), CL_WriteConfig_f(), Cmd_EchoEx_f(), Cvar_List_f(), FS_UnLink_f(), MVD_Connect_f(), MVD_Control_f(), MVD_Play_f(), MVD_StreamedRecord_f(), and SV_MvdRecord_f().
char* Cmd_RawArgs | ( | void | ) |
Definition at line 951 of file cmd.c.
Referenced by CL_ForwardToServer_f(), CL_Rcon_f(), start_message_mode(), SV_ConSay_f(), SV_InitGameProgs(), and SV_MvdStuff_f().
char* Cmd_RawArgsFrom | ( | int | from | ) |
Definition at line 1021 of file cmd.c.
Referenced by CL_ForwardToServer(), Cmd_EchoEx_f(), LOC_LoadLocations(), Prompt_CompleteCommand(), Push(), SV_CvarResult_f(), SV_Stuff_f(), SV_StuffAll_f(), and SVC_RemoteCommand().
char* Cmd_RawString | ( | void | ) |
|
static |
void Cmd_Register | ( | const cmdreg_t * | reg | ) |
Definition at line 1572 of file cmd.c.
Referenced by AC_Register(), CL_InitDemos(), CL_InitLocal(), Cmd_Init(), Con_Init(), Cvar_Init(), FS_Init(), IMG_Init(), Key_Init(), MVD_Register(), S_Init(), SCR_Init(), SV_InitOperatorCommands(), SV_MvdRegister(), SV_RegisterSavegames(), UI_Init(), and V_Init().
void Cmd_RemoveCommand | ( | const char * | name | ) |
Definition at line 1593 of file cmd.c.
Referenced by Cmd_Deregister(), GL_Unregister(), MOD_Shutdown(), NET_Shutdown(), OGG_Shutdown(), R_Shutdown_RTX(), and R_UnRegister().
void Cmd_TokenizeString | ( | const char * | text, |
qboolean | macroExpand | ||
) |
Definition at line 1399 of file cmd.c.
Referenced by CL_ConnectionlessPacket(), Cmd_ExecuteString(), dummy_exec_string(), exec_server_string(), LOC_LoadLocations(), Parse_File(), parse_stringcmd(), ParseMasterArgs(), Prompt_CompleteCommand(), SV_ConnectionlessPacket(), and SV_ExecuteUserCommand().
size_t Cmd_WhiteSpaceTail | ( | void | ) |
Definition at line 879 of file cmd.c.
Referenced by Prompt_CompleteCommand().
|
static |
|
static |
|
static |
Definition at line 2022 of file cmd.c.
Referenced by Cmd_Init().
|
static |
Definition at line 228 of file cmd.c.
Referenced by Cmd_Alias_f(), Cmd_AliasSet(), Cmd_Init(), and Cmd_UnAlias_f().
|
static |
Definition at line 229 of file cmd.c.
Referenced by Cmd_AliasSet(), Cmd_Init(), and Cmd_UnAlias_f().
|
static |
Definition at line 829 of file cmd.c.
Referenced by Cmd_Argc(), Cmd_ArgOffset(), Cmd_Args(), Cmd_ArgsFrom(), Cmd_ArgsRange(), Cmd_Argv(), Cmd_ArgvBuffer(), Cmd_Complete_f(), Cmd_ExecuteString(), Cmd_FindArgForOffset(), Cmd_List_f(), Cmd_MacroExpandString(), Cmd_MacroList_f(), Cmd_ParseOptions(), Cmd_RawArgs(), Cmd_RawArgsFrom(), Cmd_Shift(), and Cmd_TokenizeString().
|
static |
Definition at line 845 of file cmd.c.
Referenced by Cmd_Args(), Cmd_ArgsFrom(), and Cmd_ArgsRange().
|
static |
Definition at line 830 of file cmd.c.
Referenced by Cmd_Args(), Cmd_ArgsFrom(), Cmd_ArgsRange(), Cmd_Argv(), Cmd_ArgvBuffer(), Cmd_Complete_f(), Cmd_ExecuteCommand(), Cmd_List_f(), Cmd_MacroList_f(), Cmd_Option_c(), Cmd_ParseOptions(), Cmd_PrintHint(), Cmd_PrintUsage(), Cmd_Shift(), and Cmd_TokenizeString().
cmdbuf_t cmd_buffer |
Definition at line 49 of file cmd.c.
Referenced by Activate(), Cbuf_Init(), CL_FinalizeCmd(), CL_Pause_f(), CL_PlayDemo_f(), CL_ProcessEvents(), CL_Seek_f(), Cmd_ExecTrigger(), Cmd_ExecuteFile(), Com_AddConfigFile(), Com_AddLateCommands(), Con_Action(), Connect(), finish_demo(), Key_Event(), NET_OpenServer(), PF_AddCommandString(), PlayDemo(), Qcommon_Init(), S_Update(), SV_Frame(), SV_NextServer_f(), SVC_RemoteCommand(), and VID_ToggleFullscreen().
char cmd_buffer_text[CMD_BUFFER_SIZE] |
Definition at line 48 of file cmd.c.
Referenced by Cbuf_Init().
cmdbuf_t* cmd_current |
Definition at line 52 of file cmd.c.
Referenced by Cbuf_Execute(), CL_FollowIP_f(), Cmd_From(), Cmd_If_f(), Cmd_Text_f(), and Cmd_Wait_f().
|
static |
Definition at line 842 of file cmd.c.
Referenced by Cmd_TokenizeString().
|
static |
Definition at line 826 of file cmd.c.
Referenced by Cmd_Complete_f(), Cmd_Init(), and Cmd_RegCommand().
|
static |
Definition at line 827 of file cmd.c.
Referenced by Cmd_Complete_f(), Cmd_Init(), and Cmd_RegCommand().
|
static |
Definition at line 732 of file cmd.c.
Referenced by Cmd_AddMacro(), and Cmd_FindMacro().
|
static |
Definition at line 731 of file cmd.c.
Referenced by Cmd_AddMacro(), Cmd_Macro_g(), and Cmd_MacroList_f().
|
static |
Definition at line 831 of file cmd.c.
Referenced by Cmd_Args(), Cmd_ArgsFrom(), Cmd_ArgsRange(), Cmd_Argv(), Cmd_ArgvBuffer(), Cmd_ParseOptions(), Cmd_RawArgs(), Cmd_RawArgsFrom(), and Cmd_TokenizeString().
|
static |
Definition at line 839 of file cmd.c.
Referenced by Cmd_ArgOffset(), Cmd_FindArgForOffset(), Cmd_RawArgs(), Cmd_RawArgsFrom(), Cmd_Shift(), and Cmd_TokenizeString().
char* cmd_optarg |
Definition at line 848 of file cmd.c.
Referenced by CL_Record_f(), CL_WriteConfig_f(), Cmd_EchoEx_f(), Cmd_ParseOptions(), Cmd_TokenizeString(), Cmd_UnAlias_f(), Cvar_List_f(), FS_UnLink_f(), MVD_Connect_f(), MVD_Control_f(), MVD_Play_f(), MVD_StreamedRecord_f(), Parse_Action(), Parse_Bind(), Parse_Bitmap(), Parse_Field(), Parse_Pairs(), Parse_Range(), Parse_Savegame(), Parse_Spin(), Parse_Toggle(), and SV_MvdRecord_f().
int cmd_optind |
Definition at line 847 of file cmd.c.
Referenced by Cmd_EchoEx_f(), Cmd_ParseOptions(), Cmd_TokenizeString(), MVD_Control_f(), MVD_Play_f(), MVD_StreamedRecord_f(), Parse_Action(), Parse_Bind(), Parse_Bitmap(), Parse_Field(), Parse_Pairs(), Parse_Range(), Parse_Savegame(), Parse_Spin(), and Parse_Toggle().
char* cmd_optopt |
Definition at line 849 of file cmd.c.
Referenced by Cmd_ParseOptions(), Cmd_TokenizeString(), MVD_Control_f(), and MVD_Play_f().
|
static |
Definition at line 834 of file cmd.c.
Referenced by Cmd_RawArgs(), Cmd_RawArgsFrom(), Cmd_RawString(), Cmd_Shift(), and Cmd_TokenizeString().
|
static |
Definition at line 835 of file cmd.c.
Referenced by Cmd_ArgOffset(), and Cmd_TokenizeString().
|
static |
Definition at line 836 of file cmd.c.
Referenced by Cmd_TokenizeString(), and Cmd_WhiteSpaceTail().
|
static |
Definition at line 451 of file cmd.c.
Referenced by Cmd_Init(), Cmd_Trigger_f(), Cmd_UnTrigger_f(), and list_triggers().
|
static |
Definition at line 1829 of file cmd.c.
Referenced by Cmd_EchoEx_c(), and Cmd_EchoEx_f().