00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026 :- export file_write/2, file_write0/2, file_write_prolog/2,
00027 file_write_quoted/2, file_write_canonical/2,
00028 file_nl/1.
00029 :- export write_int/1, write_float/1, write_int/2, write_float/2.
00030 :- export write_canonical_lettervar/1.
00031 :- export set_file_write_depth/1, get_file_write_depth/1.
00032
00033
00034 :- import '_$op'/3 from file_op.
00035 :- import file_put/2 from file_io.
00036 :- import integer/1 from standard.
00037 :- import term_psc/2, psc_arity/2, psc_name/2, term_arg/3,
00038 stat_flag/2,
00039 term_type/2, file_puttoken/3, file_writequoted/2
00040 from machine.
00041
00042 %% We must import this from the loader, because this might be called
00043 %% for the first time before xsb_configuration configuration is loaded.
00044 :- import windows_os_loader/0 from loader.
00045
00046 :- import conget/2, conset/2 from gensym.
00047
00048 %:- import xsb_sys_mutex_lock/1, xsb_sys_mutex_unlock/1 from thread.
00049 :- import xsb_stream_lock/1, xsb_stream_unlock/1 from file_io.
00050