mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-10 14:00:21 +02:00
use new scm_make_fluid_with_default
* libguile/load.c (scm_init_load): * libguile/ports.c (scm_init_ports): * libguile/read.c (scm_init_read): Use scm_make_fluid_with_default.
This commit is contained in:
parent
aafb4ed724
commit
c81c2ad3a5
3 changed files with 7 additions and 9 deletions
|
@ -1043,8 +1043,7 @@ scm_init_load ()
|
|||
scm_loc_fresh_auto_compile
|
||||
= SCM_VARIABLE_LOC (scm_c_define ("%fresh-auto-compile", SCM_BOOL_F));
|
||||
|
||||
the_reader = scm_make_fluid ();
|
||||
scm_fluid_set_x (the_reader, SCM_BOOL_F);
|
||||
the_reader = scm_make_fluid_with_default (SCM_BOOL_F);
|
||||
scm_c_define("current-reader", the_reader);
|
||||
|
||||
scm_c_define ("load-compiled",
|
||||
|
|
|
@ -2549,13 +2549,13 @@ scm_init_ports ()
|
|||
#include "libguile/ports.x"
|
||||
|
||||
/* Use Latin-1 as the default port encoding. */
|
||||
SCM_VARIABLE_SET (default_port_encoding_var, scm_make_fluid ());
|
||||
scm_fluid_set_x (SCM_VARIABLE_REF (default_port_encoding_var), SCM_BOOL_F);
|
||||
SCM_VARIABLE_SET (default_port_encoding_var,
|
||||
scm_make_fluid_with_default (SCM_BOOL_F));
|
||||
scm_port_encoding_init = 1;
|
||||
|
||||
SCM_VARIABLE_SET (scm_conversion_strategy, scm_make_fluid ());
|
||||
scm_fluid_set_x (SCM_VARIABLE_REF (scm_conversion_strategy),
|
||||
scm_from_int ((int) SCM_FAILED_CONVERSION_QUESTION_MARK));
|
||||
SCM_VARIABLE_SET (scm_conversion_strategy,
|
||||
scm_make_fluid_with_default
|
||||
(scm_from_int ((int) SCM_FAILED_CONVERSION_QUESTION_MARK)));
|
||||
scm_conversion_strategy_init = 1;
|
||||
|
||||
}
|
||||
|
|
|
@ -1759,8 +1759,7 @@ scm_init_read ()
|
|||
{
|
||||
SCM read_hash_procs;
|
||||
|
||||
read_hash_procs = scm_make_fluid ();
|
||||
scm_fluid_set_x (read_hash_procs, SCM_EOL);
|
||||
read_hash_procs = scm_make_fluid_with_default (SCM_EOL);
|
||||
|
||||
scm_i_read_hash_procedures =
|
||||
SCM_VARIABLE_LOC (scm_c_define ("%read-hash-procedures", read_hash_procs));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue