This is the mail archive of the
guile@sourceware.cygnus.com
mailing list for the Guile project.
gc.h
- To: Guile Mailing List <guile at sourceware dot cygnus dot com>
- Subject: gc.h
- From: Dirk Herrmann <dirk at ida dot ing dot tu-bs dot de>
- Date: Thu, 16 Mar 2000 12:20:45 +0100 (MET)
Hello!
In gc.h, a variable of type scm_heap_seg_data* is defined, but the struct
scm_heap_seg_data is only defined in gc.c. Probably it is not necessary
to add the struct definition, since the variable scm_n_heap_segs, which is
of that type, is only used in gc.c and thus does not need to be made
publically visible.
The variables
scm_n_heap_segs
scm_heap_size
scm_map_free_list
and probably others, which are declared extern in gc.h, are only used in
gc.c, thus could be made static in there.
Further, scm_take_stdin is never used or declared throughout guile.
Maybe one of the gc experts knows, whether it is safe and desirable to
reduce the scope of these definitions to within gc.c?
Best regards
Dirk Herrmann