MODIFIED: library(charsio): read_term_from_chars/2 is now called read_from_chars/2

This is for compatibility with SICStus Prolog and GNU Prolog.
This commit is contained in:
Markus Triska
2022-01-17 20:09:50 +01:00
parent c6400550e1
commit 20b6816562
3 changed files with 8 additions and 8 deletions

View File

@@ -49,11 +49,11 @@
:- use_module(library(error)).
:- use_module(library(dcgs)).
:- use_module(library(lists)).
:- use_module(library(charsio), [read_term_from_chars/2]).
:- use_module(library(charsio), [read_from_chars/2]).
current_time(T) :-
'$current_time'(T0),
read_term_from_chars(T0, T).
read_from_chars(T0, T).
format_time([], _) --> [].
format_time(['%','%'|Fs], T) --> !, "%", format_time(Fs, T).