mirror of
https://github.com/Shpoike/Quakespasm.git
synced 2025-02-13 07:21:31 +00:00
cvar.c (Cvar_RegisterVariable): change the callback function argument type
to cvarcallback_t. cvar.h (Cvar_RegisterVariable): adjust prototype. git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@171 af15c1b1-3010-417e-b628-4374ebc0bcbd
This commit is contained in:
parent
c24d592580
commit
b034275af4
2 changed files with 3 additions and 3 deletions
|
@ -379,7 +379,7 @@ Cvar_RegisterVariable
|
||||||
Adds a freestanding variable to the variable list.
|
Adds a freestanding variable to the variable list.
|
||||||
============
|
============
|
||||||
*/
|
*/
|
||||||
void Cvar_RegisterVariable (cvar_t *variable, void *function)
|
void Cvar_RegisterVariable (cvar_t *variable, cvarcallback_t function)
|
||||||
{
|
{
|
||||||
char *oldstr;
|
char *oldstr;
|
||||||
cvar_t *cursor,*prev; //johnfitz -- sorted list insert
|
cvar_t *cursor,*prev; //johnfitz -- sorted list insert
|
||||||
|
@ -431,7 +431,7 @@ void Cvar_RegisterVariable (cvar_t *variable, void *function)
|
||||||
}
|
}
|
||||||
//johnfitz
|
//johnfitz
|
||||||
|
|
||||||
variable->callback = (cvarcallback_t) function; //johnfitz
|
variable->callback = function; //johnfitz
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
|
@ -72,7 +72,7 @@ typedef struct cvar_s
|
||||||
cvarcallback_t callback; //johnfitz
|
cvarcallback_t callback; //johnfitz
|
||||||
} cvar_t;
|
} cvar_t;
|
||||||
|
|
||||||
void Cvar_RegisterVariable (cvar_t *variable, void *function); //johnfitz -- cvar callback
|
void Cvar_RegisterVariable (cvar_t *variable, cvarcallback_t function); //johnfitz -- cvar callback
|
||||||
// registers a cvar that allready has the name, string, and optionally the
|
// registers a cvar that allready has the name, string, and optionally the
|
||||||
// archive elements set.
|
// archive elements set.
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue