Logtalk release 2.14.1 files.

git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@561 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
This commit is contained in:
pmoura
2002-07-31 23:34:42 +00:00
parent 4f6b62e2c6
commit 5345523da3
169 changed files with 3660 additions and 3295 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -1,7 +1,7 @@
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
% Logtalk - Object oriented extension to Prolog
% Release 2.13.0
% Release 2.14.1
%
% configuration file for YAP Prolog 4.3.x
%
@@ -31,9 +31,9 @@
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% lgt_iso_predicate(?callable).
% '$lgt_iso_predicate'(?callable).
lgt_iso_predicate(_) :-
'$lgt_iso_predicate'(_) :-
fail.
@@ -48,9 +48,9 @@ lgt_iso_predicate(_) :-
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% lgt_predicate_property(+callable, ?predicate_property)
% '$lgt_predicate_property'(+callable, ?predicate_property)
lgt_predicate_property(Pred, Prop) :-
'$lgt_predicate_property'(Pred, Prop) :-
predicate_property(Pred, Prop).
@@ -73,31 +73,31 @@ forall(Generate, Test) :-
% use these definitions only if your compiler does
% not provide call/1-8 as built-in predicates
lgt_call(F, A) :-
'$lgt_call'(F, A) :-
call_with_args(F, A).
lgt_call(F, A1, A2) :-
'$lgt_call'(F, A1, A2) :-
call_with_args(F, A1, A2).
lgt_call(F, A1, A2, A3) :-
'$lgt_call'(F, A1, A2, A3) :-
call_with_args(F, A1, A2, A3).
lgt_call(F, A1, A2, A3, A4) :-
'$lgt_call'(F, A1, A2, A3, A4) :-
call_with_args(F, A1, A2, A3, A4).
lgt_call(F, A1, A2, A3, A4, A5) :-
'$lgt_call'(F, A1, A2, A3, A4, A5) :-
call_with_args(F, A1, A2, A3, A4, A5).
lgt_call(F, A1, A2, A3, A4, A5, A6) :-
'$lgt_call'(F, A1, A2, A3, A4, A5, A6) :-
call_with_args(F, A1, A2, A3, A4, A5, A6).
lgt_call(F, A1, A2, A3, A4, A5, A6, A7) :-
'$lgt_call'(F, A1, A2, A3, A4, A5, A6, A7) :-
call_with_args(F, A1, A2, A3, A4, A5, A6, A7).
@@ -106,37 +106,37 @@ lgt_call(F, A1, A2, A3, A4, A5, A6, A7) :-
% if your compiler provides call/1-8 as built-in
% predicates rewrite these definitions using call(...), !.
lgt_once(F, A) :-
'$lgt_once'(F, A) :-
call_with_args(F, A),
!.
lgt_once(F, A1, A2) :-
'$lgt_once'(F, A1, A2) :-
call_with_args(F, A1, A2),
!.
lgt_once(F, A1, A2, A3) :-
'$lgt_once'(F, A1, A2, A3) :-
call_with_args(F, A1, A2, A3),
!.
lgt_once(F, A1, A2, A3, A4) :-
'$lgt_once'(F, A1, A2, A3, A4) :-
call_with_args(F, A1, A2, A3, A4),
!.
lgt_once(F, A1, A2, A3, A4, A5) :-
'$lgt_once'(F, A1, A2, A3, A4, A5) :-
call_with_args(F, A1, A2, A3, A4, A5),
!.
lgt_once(F, A1, A2, A3, A4, A5, A6) :-
'$lgt_once'(F, A1, A2, A3, A4, A5, A6) :-
call_with_args(F, A1, A2, A3, A4, A5, A6),
!.
lgt_once(F, A1, A2, A3, A4, A5, A6, A7) :-
'$lgt_once'(F, A1, A2, A3, A4, A5, A6, A7) :-
call_with_args(F, A1, A2, A3, A4, A5, A6, A7),
!.
@@ -154,11 +154,11 @@ lgt_once(F, A1, A2, A3, A4, A5, A6, A7) :-
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% lgt_file_extension(?atom, ?atom)
% '$lgt_file_extension'(?atom, ?atom)
lgt_file_extension(logtalk, '.lgt').
lgt_file_extension(prolog, '.pl').
lgt_file_extension(xml, '.xml').
'$lgt_file_extension'(logtalk, '.lgt').
'$lgt_file_extension'(prolog, '.pl').
'$lgt_file_extension'(xml, '.xml').
@@ -169,27 +169,31 @@ lgt_file_extension(xml, '.xml').
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% lgt_default_flag(?atom, ?atom)
% '$lgt_default_flag'(?atom, ?atom)
%
% default values for all flags
lgt_default_flag(iso_initialization_dir, true).
'$lgt_default_flag'(iso_initialization_dir, true).
lgt_default_flag(xml, on).
lgt_default_flag(xsl, 'lgtxml.xsl').
'$lgt_default_flag'(xml, on).
'$lgt_default_flag'(xsl, 'lgtxml.xsl').
lgt_default_flag(unknown, warning).
lgt_default_flag(misspelt, warning).
lgt_default_flag(singletons, warning).
lgt_default_flag(lgtredef, warning).
lgt_default_flag(plredef, silent).
lgt_default_flag(portability, silent).
'$lgt_default_flag'(unknown, warning).
'$lgt_default_flag'(misspelt, warning).
'$lgt_default_flag'(singletons, warning).
'$lgt_default_flag'(lgtredef, warning).
'$lgt_default_flag'(plredef, silent).
'$lgt_default_flag'(portability, silent).
lgt_default_flag(report, on).
'$lgt_default_flag'(report, on).
lgt_default_flag(smart_compilation, off).
'$lgt_default_flag'(smart_compilation, off).
lgt_default_flag(startup_message, on).
'$lgt_default_flag'(startup_message, on).
'$lgt_default_flag'(named_anonymous_vars, off).
'$lgt_default_flag'(code_prefix, '').
@@ -200,25 +204,25 @@ lgt_default_flag(startup_message, on).
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
lgt_append([], List, List).
lgt_append([Head| Tail], List, [Head| Tail2]) :-
lgt_append(Tail, List, Tail2).
'$lgt_append'([], List, List).
'$lgt_append'([Head| Tail], List, [Head| Tail2]) :-
'$lgt_append'(Tail, List, Tail2).
lgt_member(Head, [Head| _]).
lgt_member(Head, [_| Tail]) :-
lgt_member(Head, Tail).
'$lgt_member'(Head, [Head| _]).
'$lgt_member'(Head, [_| Tail]) :-
'$lgt_member'(Head, Tail).
lgt_member_var(V, [H| _]) :-
'$lgt_member_var'(V, [H| _]) :-
V == H.
lgt_member_var(V, [_| T]) :-
lgt_member_var(V, T).
'$lgt_member_var'(V, [_| T]) :-
'$lgt_member_var'(V, T).
lgt_proper_list([]).
lgt_proper_list([_| List]) :-
lgt_proper_list(List).
'$lgt_proper_list'([]).
'$lgt_proper_list'([_| List]) :-
'$lgt_proper_list'(List).
@@ -229,27 +233,27 @@ lgt_proper_list([_| List]) :-
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% lgt_file_exists(+atom)
% '$lgt_file_exists'(+atom)
%
% see if a file exist in the current directory
lgt_file_exists(File) :-
'$lgt_file_exists'(File) :-
exists(File).
% lgt_load_prolog_code(+atom)
% '$lgt_load_prolog_code'(+atom)
%
% compile and load a Prolog file
lgt_load_prolog_code(File) :-
'$lgt_load_prolog_code'(File) :-
reconsult(File).
% lgt_compare_file_mtimes(?atom, +atom, +atom)
% '$lgt_compare_file_mtimes'(?atom, +atom, +atom)
%
% compare file modification times
lgt_compare_file_mtimes(Result, File1, File2) :-
'$lgt_compare_file_mtimes'(Result, File1, File2) :-
file_property(File1, mod_time(Time1)),
file_property(File2, mod_time(Time2)),
compare(Result, Time1, Time2).
@@ -263,15 +267,15 @@ lgt_compare_file_mtimes(Result, File1, File2) :-
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% lgt_keysort(+list, -list)
% '$lgt_keysort'(+list, -list)
lgt_keysort(List, Sorted) :-
'$lgt_keysort'(List, Sorted) :-
keysort(List, Sorted).
% lgt_sort(+list, -list)
% '$lgt_sort'(+list, -list)
lgt_sort(List, Sorted) :-
'$lgt_sort'(List, Sorted) :-
sort(List, Sorted).
@@ -286,14 +290,14 @@ lgt_sort(List, Sorted) :-
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% lgt_current_date(?Year, ?Month, ?Day)
% '$lgt_current_date'(?Year, ?Month, ?Day)
lgt_current_date(99, 2, 7).
'$lgt_current_date'(99, 2, 7).
% lgt_current_time(?Hours, ?Mins, ?Secs)
% '$lgt_current_time'(?Hours, ?Mins, ?Secs)
lgt_current_time(0, 0, 0).
'$lgt_current_time'(0, 0, 0).
@@ -307,9 +311,9 @@ lgt_current_time(0, 0, 0).
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% lgt_cpu_time(-Seconds)
% '$lgt_cpu_time'(-Seconds)
lgt_cpu_time(Seconds) :-
'$lgt_cpu_time'(Seconds) :-
Seconds is cputime.