mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2024-11-27 22:22:17 +00:00
code cleanup: prog_tempstring used to cast const char * parameter to char * due to the old vector code which is now gone
This commit is contained in:
parent
7bab7fc42e
commit
5bb4e40c72
1 changed files with 1 additions and 6 deletions
7
exec.c
7
exec.c
|
@ -243,13 +243,8 @@ void prog_free_entity(qc_program *prog, qcint e)
|
|||
prog->entitypool[e] = false;
|
||||
}
|
||||
|
||||
qcint prog_tempstring(qc_program *prog, const char *_str)
|
||||
qcint prog_tempstring(qc_program *prog, const char *str)
|
||||
{
|
||||
/* we don't access it, but the macro-generated functions don't use
|
||||
* const
|
||||
*/
|
||||
char *str = (char*)_str;
|
||||
|
||||
size_t len = strlen(str);
|
||||
size_t at = prog->tempstring_at;
|
||||
|
||||
|
|
Loading…
Reference in a new issue