% File 'prolog_misc.pl'
%----
:- import(prolog_meta).

% other commonly used predicates

:- pred sub_atom(atom,int,int,int,atom).		% StdP

% :- type char_code == int.
:- pred char_code(char,char_code).			% StdP
:- pred char_conversion(char,char).			% StdP
:- pred current_char_conversion(char,char).		% StdP

:- type keyvalue(K,V) --> K - V.
:- pred keysort(list(keyvalue(@K,@V)),list(keyvalue(@K,@V))).
:- pred sort(list(@T),list(@T)).

:- pred set_prolog_flag(atom,term).		% StdP
:- pred current_prolog_flag(atom,term).		% StdP

:- pred use_module(atom,atom).

:- pred foreign_file(top,list(top)).
:- pred foreign(top,top).
:- pred load_foreign_files(list(top),list(top)).
