more '\n' business

From /dev/humancontroller.
This commit is contained in:
Zack Middleton 2012-06-19 15:14:57 +00:00
parent 4cfbbe506c
commit 945f01d4af
12 changed files with 59 additions and 59 deletions

View file

@ -269,7 +269,7 @@ token_t *PC_CopyToken(token_t *token)
if (!t)
{
#ifdef BSPC
Error("out of token space\n");
Error("out of token space");
#else
Com_Error(ERR_FATAL, "out of token space");
#endif
@ -1666,7 +1666,7 @@ int PC_OperatorPriority(int op)
#define MAX_OPERATORS 64
#define AllocValue(val) \
if (numvalues >= MAX_VALUES) { \
SourceError(source, "out of value space\n"); \
SourceError(source, "out of value space"); \
error = 1; \
break; \
} \
@ -1676,7 +1676,7 @@ int PC_OperatorPriority(int op)
//
#define AllocOperator(op) \
if (numoperators >= MAX_OPERATORS) { \
SourceError(source, "out of operator space\n"); \
SourceError(source, "out of operator space"); \
error = 1; \
break; \
} \
@ -1838,7 +1838,7 @@ int PC_EvaluateTokens(source_t *source, token_t *tokens, signed long int *intval
t->subtype == P_BIN_AND || t->subtype == P_BIN_OR ||
t->subtype == P_BIN_XOR)
{
SourceError(source, "illigal operator %s on floating point operands\n", t->string);
SourceError(source, "illigal operator %s on floating point operands", t->string);
error = 1;
break;
} //end if
@ -2005,7 +2005,7 @@ int PC_EvaluateTokens(source_t *source, token_t *tokens, signed long int *intval
v1->floatvalue *= v2->floatvalue; break;
case P_DIV: if (!v2->intvalue || !v2->floatvalue)
{
SourceError(source, "divide by zero in #if/#elif\n");
SourceError(source, "divide by zero in #if/#elif");
error = 1;
break;
}
@ -2013,7 +2013,7 @@ int PC_EvaluateTokens(source_t *source, token_t *tokens, signed long int *intval
v1->floatvalue /= v2->floatvalue; break;
case P_MOD: if (!v2->intvalue)
{
SourceError(source, "divide by zero in #if/#elif\n");
SourceError(source, "divide by zero in #if/#elif");
error = 1;
break;
}
@ -2750,7 +2750,7 @@ int PC_ReadToken(source_t *source, token_t *token)
token->string[strlen(token->string)-1] = '\0';
if (strlen(token->string) + strlen(newtoken.string+1) + 1 >= MAX_TOKEN)
{
SourceError(source, "string longer than MAX_TOKEN %d\n", MAX_TOKEN);
SourceError(source, "string longer than MAX_TOKEN %d", MAX_TOKEN);
return qfalse;
}
strcat(token->string, newtoken.string+1);