Skip to content

Commit

Permalink
fix: better debug messges for option(warn)
Browse files Browse the repository at this point in the history
  • Loading branch information
hannes14 committed Dec 12, 2011
1 parent 3b87470 commit 25fa73f
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions Singular/iparith.cc
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/****************************************
* Computer Algebra System SINGULAR *
****************************************/
/* $Id: iparith.cc 14421 2011-10-21 12:37:32Z hannes $ */
/* $Id: iparith.cc 14447 2011-11-30 20:00:05Z motsak $ */

/*
* ABSTRACT: table driven kernel interface, used by interpreter
Expand Down Expand Up @@ -7446,7 +7446,7 @@ BOOLEAN iiExprArith2(leftv res, leftv a, int op, leftv b, BOOLEAN proccall)
if (check_valid(dArith2[i].valid_for,op)) break;
}
if (TEST_V_ALLWARN)
Print("call %s(%s,%s)\n",Tok2Cmdname(iiOp),Tok2Cmdname(at),Tok2Cmdname(bt));
Print("call %s(%s,%s)\n",iiTwoOps(op),Tok2Cmdname(at),Tok2Cmdname(bt));
if ((call_failed=dArith2[i].p(res,a,b)))
{
break;// leave loop, goto error handling
Expand Down Expand Up @@ -7480,7 +7480,7 @@ BOOLEAN iiExprArith2(leftv res, leftv a, int op, leftv b, BOOLEAN proccall)
if (check_valid(dArith2[i].valid_for,op)) break;
}
if (TEST_V_ALLWARN)
Print("call %s(%s,%s)\n",Tok2Cmdname(iiOp),
Print("call %s(%s,%s)\n",iiTwoOps(op),
Tok2Cmdname(an->rtyp),Tok2Cmdname(bn->rtyp));
failed= ((iiConvert(at,dArith2[i].arg1,ai,a,an))
|| (iiConvert(bt,dArith2[i].arg2,bi,b,bn))
Expand Down Expand Up @@ -7613,7 +7613,7 @@ BOOLEAN iiExprArith1(leftv res, leftv a, int op)
if (check_valid(dArith1[i].valid_for,op)) break;
}
if (TEST_V_ALLWARN)
Print("call %s(%s)\n",Tok2Cmdname(iiOp),Tok2Cmdname(at));
Print("call %s(%s)\n",iiTwoOps(op),Tok2Cmdname(at));
if (r<0)
{
res->rtyp=-r;
Expand Down Expand Up @@ -7681,7 +7681,7 @@ BOOLEAN iiExprArith1(leftv res, leftv a, int op)
else
{
if (TEST_V_ALLWARN)
Print("call %s(%s)\n",Tok2Cmdname(iiOp),Tok2Cmdname(an->rtyp));
Print("call %s(%s)\n",iiTwoOps(op),Tok2Cmdname(an->rtyp));
if (an->Next() != NULL)
{
res->next = (leftv)omAllocBin(sleftv_bin);
Expand Down Expand Up @@ -7786,7 +7786,7 @@ BOOLEAN iiExprArith3(leftv res, int op, leftv a, leftv b, leftv c)
}
if (TEST_V_ALLWARN)
Print("call %s(%s,%s,%s)\n",
Tok2Cmdname(iiOp),Tok2Cmdname(at),Tok2Cmdname(bt),Tok2Cmdname(ct));
iiTwoOps(op),Tok2Cmdname(at),Tok2Cmdname(bt),Tok2Cmdname(ct));
if ((call_failed=dArith3[i].p(res,a,b,c)))
{
break;// leave loop, goto error handling
Expand Down Expand Up @@ -7823,7 +7823,7 @@ BOOLEAN iiExprArith3(leftv res, int op, leftv a, leftv b, leftv c)
}
if (TEST_V_ALLWARN)
Print("call %s(%s,%s,%s)\n",
Tok2Cmdname(iiOp),Tok2Cmdname(an->rtyp),
iiTwoOps(op),Tok2Cmdname(an->rtyp),
Tok2Cmdname(bn->rtyp),Tok2Cmdname(cn->rtyp));
failed= ((iiConvert(at,dArith3[i].arg1,ai,a,an))
|| (iiConvert(bt,dArith3[i].arg2,bi,b,bn))
Expand Down Expand Up @@ -8005,7 +8005,7 @@ BOOLEAN iiExprArithM(leftv res, leftv a, int op)
if (check_valid(dArithM[i].valid_for,op)) break;
}
if (TEST_V_ALLWARN)
Print("call %s(... (%d args))\n", Tok2Cmdname(iiOp),args);
Print("call %s(... (%d args))\n", iiTwoOps(op),args);
if (dArithM[i].p(res,a))
{
break;// leave loop, goto error handling
Expand Down

0 comments on commit 25fa73f

Please sign in to comment.