* struct.c (scm_struct_ref, scm_struct_set_x): Use
authorMarius Vollmer <mvo@zagadka.de>
Tue, 3 Jun 1997 21:49:52 +0000 (21:49 +0000)
committerMarius Vollmer <mvo@zagadka.de>
Tue, 3 Jun 1997 21:49:52 +0000 (21:49 +0000)
commitbafcafb27071fad976c9807f24bc801e3dfbfaa2
treed871273cd7c91d649d6efff4ce27b68b9cda9760
parentede1d9bf576a180882ee63c1580e55a241d5660b
* struct.c (scm_struct_ref, scm_struct_set_x): Use
scm_struct_i_n_words to get the number of fields, not
-scm_struct_n_extra_words.

On the route to fancier struct printing:
* struct.c (scm_print_struct): New function to print a structure.
Include "genio.h" to support it.  This function doesn't do
anything interesting right now, but I think it should be here
anyway.
* struct.h: Include "print.h" and add prototype for
scm_print_struct.
* print.c (scm_iprin1): Call scm_print_struct instead of trying to
print structures ourself.
libguile/print.c
libguile/struct.c
libguile/struct.h