mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-05-31 00:30:57 +00:00
[gamecode] Remove the wart from def and function names
I never liked the leading s_ (though I guess it means one is supposed to interpret the int as a string pointer, but meh).
This commit is contained in:
parent
6990bd5752
commit
be474d9937
16 changed files with 57 additions and 57 deletions
|
@ -195,7 +195,7 @@ PR_EnterFunction (progs_t *pr, bfunction_t *f)
|
|||
|
||||
if (pr->pr_trace && !pr->debug_handler) {
|
||||
Sys_Printf ("Entering function %s\n",
|
||||
PR_GetString (pr, f->descriptor->s_name));
|
||||
PR_GetString (pr, f->descriptor->name));
|
||||
}
|
||||
|
||||
PR_PushFrame (pr);
|
||||
|
@ -238,7 +238,7 @@ PR_EnterFunction (progs_t *pr, bfunction_t *f)
|
|||
}
|
||||
}
|
||||
|
||||
//Sys_Printf("%s:\n", PR_GetString(pr,f->s_name));
|
||||
//Sys_Printf("%s:\n", PR_GetString(pr,f->name));
|
||||
pr->pr_xfunction = f;
|
||||
pr->pr_xstatement = f->first_statement - 1; // offset the st++
|
||||
|
||||
|
@ -286,14 +286,14 @@ PR_LeaveFunction (progs_t *pr, int to_engine)
|
|||
|
||||
if (pr->pr_trace && !pr->debug_handler) {
|
||||
Sys_Printf ("Leaving function %s\n",
|
||||
PR_GetString (pr, f->descriptor->s_name));
|
||||
PR_GetString (pr, f->descriptor->name));
|
||||
if (to_engine) {
|
||||
Sys_Printf ("Returning to engine\n");
|
||||
} else {
|
||||
bfunction_t *rf = pr->pr_xfunction;
|
||||
if (rf) {
|
||||
Sys_Printf ("Returning to function %s\n",
|
||||
PR_GetString (pr, rf->descriptor->s_name));
|
||||
PR_GetString (pr, rf->descriptor->name));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -407,7 +407,7 @@ PR_CallFunction (progs_t *pr, func_t fnum)
|
|||
// negative statements are built in functions
|
||||
if (pr->pr_trace && !pr->debug_handler) {
|
||||
Sys_Printf ("Calling builtin %s @ %p\n",
|
||||
PR_GetString (pr, f->descriptor->s_name), f->func);
|
||||
PR_GetString (pr, f->descriptor->name), f->func);
|
||||
}
|
||||
f->func (pr);
|
||||
return 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue