ISO support (Paulo Moura).

This commit is contained in:
Vítor Santos Costa 2014-10-21 00:26:40 +01:00
parent a4081673e5
commit ffb97269a0
2 changed files with 3 additions and 3 deletions

View File

@ -506,7 +506,7 @@ p_number_chars( USES_REGS1 )
return Yap_unify( ARG1, tf );
}
/* error handling */
if (LOCAL_Error_TYPE && Yap_HandleError( "atom_chars/2" )) {
if (LOCAL_Error_TYPE && Yap_HandleError( "number_chars/2" )) {
goto restart_aux;
}
return FALSE;

View File

@ -607,13 +607,13 @@ p_univ( USES_REGS1 )
if (IsNumTerm(twork)) {
Term tt = TailOfTerm(t2);
if (IsVarTerm(tt) || tt != MkAtomTerm(AtomNil)) {
Yap_Error(TYPE_ERROR_ATOM, twork, "(=..)/2");
Yap_Error(TYPE_ERROR_ATOMIC, twork, "(=..)/2");
return (FALSE);
}
return (Yap_unify_constant(ARG1, twork));
}
if (!IsAtomTerm(twork)) {
Yap_Error(TYPE_ERROR_ATOM, twork, "(=..)/2");
Yap_Error(TYPE_ERROR_ATOMIC, twork, "(=..)/2");
return (FALSE);
}
at = AtomOfTerm(twork);