mirror of
https://github.com/ioquake/ioq3.git
synced 2025-06-02 01:42:12 +00:00
Use const char pointers when possible in botlib's libvar code
This commit is contained in:
parent
db1198f6ea
commit
d1631d6ea3
4 changed files with 24 additions and 24 deletions
|
@ -43,21 +43,21 @@ typedef struct libvar_s
|
|||
//removes all library variables
|
||||
void LibVarDeAllocAll(void);
|
||||
//gets the library variable with the given name
|
||||
libvar_t *LibVarGet(char *var_name);
|
||||
libvar_t *LibVarGet(const char *var_name);
|
||||
//gets the string of the library variable with the given name
|
||||
char *LibVarGetString(char *var_name);
|
||||
char *LibVarGetString(const char *var_name);
|
||||
//gets the value of the library variable with the given name
|
||||
float LibVarGetValue(char *var_name);
|
||||
float LibVarGetValue(const char *var_name);
|
||||
//creates the library variable if not existing already and returns it
|
||||
libvar_t *LibVar(char *var_name, char *value);
|
||||
libvar_t *LibVar(const char *var_name, const char *value);
|
||||
//creates the library variable if not existing already and returns the value
|
||||
float LibVarValue(char *var_name, char *value);
|
||||
float LibVarValue(const char *var_name, const char *value);
|
||||
//creates the library variable if not existing already and returns the value string
|
||||
char *LibVarString(char *var_name, char *value);
|
||||
char *LibVarString(const char *var_name, const char *value);
|
||||
//sets the library variable
|
||||
void LibVarSet(char *var_name, char *value);
|
||||
void LibVarSet(const char *var_name, const char *value);
|
||||
//returns true if the library variable has been modified
|
||||
qboolean LibVarChanged(char *var_name);
|
||||
qboolean LibVarChanged(const char *var_name);
|
||||
//sets the library variable to unmodified
|
||||
void LibVarSetNotModified(char *var_name);
|
||||
void LibVarSetNotModified(const char *var_name);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue