Improve %string-dump and %symbol-dump
authorMichael Gran <spk121@yahoo.com>
Mon, 10 Aug 2009 07:09:33 +0000 (00:09 -0700)
committerMichael Gran <spk121@yahoo.com>
Mon, 10 Aug 2009 07:09:33 +0000 (00:09 -0700)
commit6ce6923b6826db2f2ddc8a5f787ab57d7072f0e8
tree2847b74e4f7ad783d57b1c0392b4d43bacd1e01d
parent50b1996f1b229889f088aa01f4c1c5fcd5dd0d63
Improve %string-dump and %symbol-dump

%string-dump and %symbol-dump are modified to return assocation lists
of string and symbol attributes instead of printing to stderr.  They
are no longer conditional on SCM_DEBUG.

        * libguile/strings.c (scm_sys_string_dump)
        (scm_sys_symbol_dump): now returns alist of properties.  No longer
        require that SCM_DEBUG be defined.
        (scm_sys_stringbuf_hist): now conditional on
        SCM_STRING_LENGTH_HISTOGRAM

        * libguile/strings.h: scm_sys_string_dump and scm_sys_symbol dump
        are now declared as API
libguile/strings.c
libguile/strings.h