4 #include "../constants.qh"
8 // =========================================================
9 // Declarations for common command code, written by Samual
10 // Last updated: December 28th, 2011
11 // =========================================================
13 void GenericCommand_macro_help();
15 float GenericCommand_macro_command(float argc, string command);
17 float GenericCommand_macro_usage(float argc);
19 void GenericCommand_macro_write_aliases(float fh);
21 // Used by other game command systems for common commands,
22 // and it returns true if handled, false if not.
23 // Note: It tokenizes its input, so be careful!
24 float GenericCommand(string command);
26 // Returns command prefix specific for whatever program it is compiled in
27 string GetProgramCommandPrefix(void);
29 // used by common/command/generic.qc:GenericCommand_dumpcommands to list all commands into a .txt file
30 #define CMD_Write(s) fputs(fh, s)
31 #define CMD_Write_Alias(execute,command,description) CMD_Write(sprintf("alias %-20s \"%-13s %-20s ${* ?}\" // %s\n", command, execute, command, description))
32 void GenericCommand_macro_write_aliases(float fh);
34 void Curl_URI_Get_Callback(int id, float status, string data);
36 float curl_uri_get_exec[URI_GET_CURL_END - URI_GET_CURL + 1];
37 string curl_uri_get_cvar[URI_GET_CURL_END - URI_GET_CURL + 1];