1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-05-20 11:40:18 +02:00

Use GC's accessors rather than its global variables.

* libguile/gc.c (scm_storage_prehistory): Use `GC_set_free_space_divisor ()'
  instead of accessing the global variable directly.
This commit is contained in:
Ludovic Courtès 2008-09-19 10:25:04 +02:00
parent 72e6b60838
commit 21c097e0ed

View file

@ -625,7 +625,7 @@ void
scm_storage_prehistory ()
{
GC_all_interior_pointers = 0;
GC_free_space_divisor = scm_getenv_int ("GC_FREE_SPACE_DIVISOR", 3);
GC_set_free_space_divisor (scm_getenv_int ("GC_FREE_SPACE_DIVISOR", 3));
GC_INIT ();