]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - pr_exec.c
removed \n from all Host_Error, Sys_Error, PRVM_ERROR, PF_ERROR calls, since Host_Err...
[xonotic/darkplaces.git] / pr_exec.c
index a63f04df2147c6cd3200c6526beb2c7a2b7d3ea3..49e19a26d11209911f2dad725402e0b90c474976 100644 (file)
--- 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];