allow better writing of inlined operations

disallow eval.yap
This commit is contained in:
Vitor Santos Costa 2009-02-16 21:04:30 +00:00
parent 419e0e369f
commit ad2d073184
2 changed files with 4 additions and 10 deletions

View File

@ -409,7 +409,7 @@ ShowOp (char *f, struct PSEUDO *cpc)
}
break;
case 'd':
Yap_DebugPlWrite (MkIntTerm (rn));
Yap_DebugPlWrite (MkIntegerTerm (arg));
break;
case 'z':
Yap_DebugPlWrite (MkIntTerm (cpc->rnd3));
@ -431,6 +431,7 @@ ShowOp (char *f, struct PSEUDO *cpc)
Yap_DebugErrorPutc (v->KindOfVE == PermVar ? 'Y' : 'X');
Yap_DebugPlWrite (MkIntTerm ((v->NoOfVE) & MaskVarAdrs));
}
break;
case 'm':
Yap_DebugPlWrite (MkAtomTerm ((Atom) arg));
Yap_DebugErrorPutc ('/');

View File

@ -194,18 +194,11 @@ module(N) :-
% A6: head module (this is the one used in compiling and accessing).
%
%
'$module_expansion'((H:-B),(H:-B1),(H:-NBO),M,HM) :- !,
'$module_expansion'((H:-B),(H:-B1),(H:-BO),M,HM) :- !,
'$is_mt'(M, H, B, IB, MM),
'$module_u_vars'(H,UVars,M), % collect head variables in
% expanded positions
'$module_expansion'(IB,B1,BO,M,MM,HM,UVars),
(
get_value('$c_arith',true)
->
'$eval':'$compile_arithmetic'((H:-BO),(H:-NBO))
;
NBO = BO
).
'$module_expansion'(IB,B1,BO,M,MM,HM,UVars).
% do not expand bodyless clauses.
'$module_expansion'(H,H,H,_,_).