This is the mail archive of the guile@sourceware.cygnus.com mailing list for the Guile project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

gc.h


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]