X-Git-Url: http://git.xonotic.org/?a=blobdiff_plain;f=pr_exec.c;h=640140f2148cfc209f2972859df10ba0ba32cab1;hb=c369fcf631b61d72c598ae37b01fc89a318044ae;hp=ee35aa1602ae9b78721b2ca45613f6c254c6d714;hpb=fb5638603d5fb14033bb41a99dbaba135b5e7985;p=xonotic%2Fdarkplaces.git diff --git a/pr_exec.c b/pr_exec.c index ee35aa16..640140f2 100644 --- a/pr_exec.c +++ b/pr_exec.c @@ -36,7 +36,7 @@ int localstack[LOCALSTACK_SIZE]; int localstack_used; -qboolean pr_trace; +int pr_trace; dfunction_t *pr_xfunction; int pr_xstatement; @@ -197,7 +197,7 @@ void PR_StackTrace (void) if (!f) Con_Printf ("\n"); else - Con_Printf ("%12s : %s : statement %i\n", pr_strings + f->s_file, pr_strings + f->s_name, pr_stack[i].s - f->first_statement); + Con_Printf ("%12s : %s : statement %i\n", PR_GetString(f->s_file), PR_GetString(f->s_name), pr_stack[i].s - f->first_statement); } } @@ -232,7 +232,7 @@ void PR_Profile_f (void) if (best) { if (num < 10) - Con_Printf ("%7i %s\n", best->profile, pr_strings+best->s_name); + Con_Printf ("%7i %s\n", best->profile, PR_GetString(best->s_name)); num++; best->profile = 0; } @@ -348,11 +348,14 @@ int PR_LeaveFunction (void) return pr_stack[pr_depth].s; } +void PR_ReInitStrings (void); void PR_Execute_ProgsLoaded(void) { // dump the stack pr_depth = 0; localstack_used = 0; + // reset the string table + PR_ReInitStrings(); } /* @@ -424,3 +427,6 @@ chooseexecprogram: } } +void PR_ReInitStrings (void) +{ +}