fix handling of SICStus style attributes (obs from Denys Duchier).
This commit is contained in:
parent
cbf6caddbd
commit
51a5fdfbd7
@ -569,6 +569,13 @@ p_put_atts(void) {
|
||||
}
|
||||
/* we may have a stack shift meanwhile!! */
|
||||
tatts = Deref(ARG2);
|
||||
if (IsVarTerm(tatts)) {
|
||||
Yap_Error(INSTANTIATION_ERROR,tatts,"second argument of put_att/2");
|
||||
return FALSE;
|
||||
} else if (!IsApplTerm(tatts)) {
|
||||
Yap_Error(TYPE_ERROR_COMPOUND,tatts,"second argument of put_att/2");
|
||||
return FALSE;
|
||||
}
|
||||
if (IsVarTerm(otatts = SearchAttsForModule(attv->Atts,mfun))) {
|
||||
AddNewModule(attv,tatts,new,FALSE);
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user