small fixes
This commit is contained in:
parent
3fd07064da
commit
b26b5b1b7d
@ -599,12 +599,16 @@ clause_to_indicator(T, M:Name/Arity) :-
|
|||||||
strip_module(T, M, T1),
|
strip_module(T, M, T1),
|
||||||
pred_arity( T1, Name, Arity ).
|
pred_arity( T1, Name, Arity ).
|
||||||
|
|
||||||
pred_arity(V,M,M,V,call,1) :- var(V), !.
|
pred_arity(V,call,1) :- var(V), !.
|
||||||
pred_arity((H:-_),Name,Arity) :- !,
|
pred_arity((H:-_),Name,Arity) :-
|
||||||
functor(H,Name,Arity).
|
nonvar(H),
|
||||||
|
!,
|
||||||
|
functor(H,Name,Arity).
|
||||||
pred_arity((H-->_),Name,Arity) :- !,
|
pred_arity((H-->_),Name,Arity) :- !,
|
||||||
functor(HL,Name,1),
|
nonvar(H),
|
||||||
Arity is A1+2.
|
!,
|
||||||
|
functor(HL,Name,1),
|
||||||
|
Arity is A1+2.
|
||||||
pred_arity(H,Name,Arity) :-
|
pred_arity(H,Name,Arity) :-
|
||||||
functor(H,Name,Arity).
|
functor(H,Name,Arity).
|
||||||
|
|
||||||
|
@ -30,7 +30,6 @@ cd :-
|
|||||||
cd('~').
|
cd('~').
|
||||||
|
|
||||||
cd(F) :-
|
cd(F) :-
|
||||||
format( atom( M ), 'before absolute_file_name ~w', [F]), log_event( M ),
|
|
||||||
absolute_file_name(F, Dir, [file_type(directory),file_errors(fail),access(execute),expand(true)]),
|
absolute_file_name(F, Dir, [file_type(directory),file_errors(fail),access(execute),expand(true)]),
|
||||||
working_directory(_, Dir).
|
working_directory(_, Dir).
|
||||||
|
|
||||||
|
@ -1017,4 +1017,7 @@ threads :-
|
|||||||
'$mk_tstatus_key'(Id0, Key) :-
|
'$mk_tstatus_key'(Id0, Key) :-
|
||||||
atomic_concat('$thread_exit_status__',Id0,Key).
|
atomic_concat('$thread_exit_status__',Id0,Key).
|
||||||
|
|
||||||
|
thread_statistics(Id, Key, Val) :-
|
||||||
|
format("not implemented yet~n",[]).
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user