Add a max_no_block function usable in rules.pl

max_with_block has a function with an equivalent signature but it was
missing for max_no_block.

Change-Id: Ic2d4097570550e0025fd24e16c850fb67c188280
This commit is contained in:
Nasser Grainawi
2015-11-12 18:38:29 -08:00
parent 0b11a1b5d3
commit ca444d035d

View File

@@ -295,6 +295,10 @@ any_with_block(Label, Min, may(_)).
%%
%% - At least one maximum is used.
%%
max_no_block(Max, Label, label(Label, S)) :-
number(Max), atom(Label),
!,
max_no_block(Label, Max, S).
max_no_block(Label, Max, ok(Who)) :-
check_label_range_permission(Label, Max, ok(Who)),
!