use new YAP flags
This commit is contained in:
parent
ff9051349b
commit
adb8ff064d
@ -139,7 +139,7 @@ eval0(Int fi) {
|
|||||||
P = (yamop *)FAILCODE;
|
P = (yamop *)FAILCODE;
|
||||||
RERROR();
|
RERROR();
|
||||||
#else
|
#else
|
||||||
if (yap_flags[LANGUAGE_MODE_FLAG] == 1) {/* iso */
|
if (isoLanguageFlag()) {/* iso */
|
||||||
Yap_ArithError(TYPE_ERROR_EVALUABLE, TermNil, "evaluating infinity");
|
Yap_ArithError(TYPE_ERROR_EVALUABLE, TermNil, "evaluating infinity");
|
||||||
P = (yamop *)FAILCODE;
|
P = (yamop *)FAILCODE;
|
||||||
RERROR();
|
RERROR();
|
||||||
@ -154,7 +154,7 @@ eval0(Int fi) {
|
|||||||
Yap_ArithError(TYPE_ERROR_EVALUABLE, TermNil, "evaluating infinity");
|
Yap_ArithError(TYPE_ERROR_EVALUABLE, TermNil, "evaluating infinity");
|
||||||
RERROR();
|
RERROR();
|
||||||
#else
|
#else
|
||||||
if (yap_flags[LANGUAGE_MODE_FLAG] == 1) {/* iso */
|
if (isoLanguageFlag()) {/* iso */
|
||||||
Yap_ArithError(TYPE_ERROR_EVALUABLE, TermNil, "evaluating not-a-number");
|
Yap_ArithError(TYPE_ERROR_EVALUABLE, TermNil, "evaluating not-a-number");
|
||||||
RERROR();
|
RERROR();
|
||||||
} else {
|
} else {
|
||||||
|
@ -841,7 +841,7 @@ eval1(Int fi, Term t USES_REGS) {
|
|||||||
case op_ffracp:
|
case op_ffracp:
|
||||||
switch (ETypeOfTerm(t)) {
|
switch (ETypeOfTerm(t)) {
|
||||||
case long_int_e:
|
case long_int_e:
|
||||||
if (yap_flags[LANGUAGE_MODE_FLAG] == 1) { /* iso */
|
if (isoLanguageFlag()) { /* iso */
|
||||||
return Yap_ArithError(TYPE_ERROR_FLOAT, t, "X is float_fractional_part(%f)", IntegerOfTerm(t));
|
return Yap_ArithError(TYPE_ERROR_FLOAT, t, "X is float_fractional_part(%f)", IntegerOfTerm(t));
|
||||||
} else {
|
} else {
|
||||||
RFLOAT(0.0);
|
RFLOAT(0.0);
|
||||||
|
Reference in New Issue
Block a user