git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5389
d7cf8633-e32d-0410-b094-
e92efae38249
void PRVM_ED_PrintNum (int ent);
const char *PRVM_GetString(int num);
-int PRVM_SetQCString(const char *s);
int PRVM_SetEngineString(const char *s);
int PRVM_AllocString(int bufferlength, char **pointer);
void PRVM_FreeString(int num);
}
}
-int PRVM_SetQCString(const char *s)
-{
- int i;
- if (!s)
- return 0;
- if (s >= prog->strings && s <= prog->strings + prog->stringssize)
- return s - prog->strings;
- for (i = 0;i < prog->numknownstrings;i++)
- if (prog->knownstrings[i] == s)
- return -1 - i;
- Host_Error("PRVM_SetQCString: unknown string\n");
- return -1 - i;
-}
-
int PRVM_SetEngineString(const char *s)
{
int i;