fix a few variable warnings
fix erase clause to pass a pointer to clause, not code get rid of Yap4.4 code in Yap_EraseStaticClause git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1278 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
This commit is contained in:
@@ -176,7 +176,7 @@ ord_intersection(>, Head1, Tail1, _, Tail2, Intersection) :-
|
||||
% is true when Intersection is the ordered representation of Set1
|
||||
% and Set2, provided that Set1 and Set2 are ordered sets.
|
||||
|
||||
ord_intersection(L, [], [], []) :- !.
|
||||
ord_intersection(_, [], [], []) :- !.
|
||||
ord_intersection([], L, [], L) :- !.
|
||||
ord_intersection([Head1|Tail1], [Head2|Tail2], Intersection, Difference) :-
|
||||
compare(Order, Head1, Head2),
|
||||
@@ -184,7 +184,7 @@ ord_intersection([Head1|Tail1], [Head2|Tail2], Intersection, Difference) :-
|
||||
|
||||
ord_intersection(=, Head, Tail1, _, Tail2, [Head|Intersection], Difference) :-
|
||||
ord_intersection(Tail1, Tail2, Intersection, Difference).
|
||||
ord_intersection(<, Head1, Tail1, Head2, Tail2, Intersection, Difference) :-
|
||||
ord_intersection(<, _, Tail1, Head2, Tail2, Intersection, Difference) :-
|
||||
ord_intersection(Tail1, [Head2|Tail2], Intersection, Difference).
|
||||
ord_intersection(>, Head1, Tail1, Head2, Tail2, Intersection, [Head2|Difference]) :-
|
||||
ord_intersection([Head1|Tail1], Tail2, Intersection, Difference).
|
||||
|
Reference in New Issue
Block a user