Let `scm_mkstrport' allocate buffers on the caller's behalf.
authorLudovic Courtès <ludo@gnu.org>
Sun, 6 Mar 2011 10:42:37 +0000 (11:42 +0100)
committerLudovic Courtès <ludo@gnu.org>
Sun, 6 Mar 2011 22:05:00 +0000 (23:05 +0100)
commit0b2c2ba353d9dcf0b288950b88d6f205a5ec67ab
tree80941b1bfb370bb062f70b8751e8c44d5673b931
parent691fcf66c0a823b2c4f4018e925cf9f338a4de27
Let `scm_mkstrport' allocate buffers on the caller's behalf.

* libguile/strports.c (INITIAL_BUFFER_SIZE): New macro.
  (scm_mkstrport): If STR is false, allocate a bytevector on the
  caller's behalf.
  (scm_object_to_string, scm_call_with_output_string,
  scm_open_output_string): Pass SCM_BOOL_F as the STR argument of
  `scm_mkstrport'.

* libguile/backtrace.c (scm_display_application,
  display_backtrace_body): Likewise.

* libguile/gdbint.c (scm_init_gdbint): Likewise.

* libguile/print.c (scm_simple_format): Likewise.
libguile/backtrace.c
libguile/gdbint.c
libguile/print.c
libguile/strports.c