ISO support (Paulo Moura).
This commit is contained in:
parent
a4081673e5
commit
ffb97269a0
@ -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;
|
||||
|
@ -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);
|
||||
|
Reference in New Issue
Block a user