X-Git-Url: http://git.xonotic.org/?a=blobdiff_plain;f=pr_exec.c;h=49e19a26d11209911f2dad725402e0b90c474976;hb=7403ba135fe27515470bfc6a7f8980869ccfee76;hp=a63f04df2147c6cd3200c6526beb2c7a2b7d3ea3;hpb=0960c1f25d397c09f680454759f4ea747975c8c9;p=xonotic%2Fdarkplaces.git diff --git a/pr_exec.c b/pr_exec.c index a63f04df..49e19a26 100644 --- a/pr_exec.c +++ b/pr_exec.c @@ -21,7 +21,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #include "quakedef.h" -typedef struct +typedef struct prstack_s { int s; mfunction_t *f; @@ -298,7 +298,7 @@ int PR_EnterFunction (mfunction_t *f) int i, j, c, o; if (!f) - Host_Error ("PR_EnterFunction: NULL function\n"); + Host_Error ("PR_EnterFunction: NULL function"); pr_stack[pr_depth].s = pr_xstatement; pr_stack[pr_depth].f = pr_xfunction; @@ -309,7 +309,7 @@ int PR_EnterFunction (mfunction_t *f) // save off any locals that the new function steps on c = f->locals; if (localstack_used + c > LOCALSTACK_SIZE) - Host_Error ("PRVM_ExecuteProgram: locals stack overflow\n"); + Host_Error ("PRVM_ExecuteProgram: locals stack overflow"); for (i=0 ; i < c ; i++) localstack[localstack_used+i] = ((int *)pr_globals)[f->parm_start + i]; @@ -343,12 +343,12 @@ int PR_LeaveFunction (void) Host_Error ("prog stack underflow"); if (!pr_xfunction) - Host_Error ("PR_LeaveFunction: NULL function\n"); + Host_Error ("PR_LeaveFunction: NULL function"); // restore locals from the stack c = pr_xfunction->locals; localstack_used -= c; if (localstack_used < 0) - Host_Error ("PRVM_ExecuteProgram: locals stack underflow\n"); + Host_Error ("PRVM_ExecuteProgram: locals stack underflow"); for (i=0 ; i < c ; i++) ((int *)pr_globals)[pr_xfunction->parm_start + i] = localstack[localstack_used+i];