string ports simplification
authorAndy Wingo <wingo@pobox.com>
Mon, 13 Feb 2012 23:11:39 +0000 (00:11 +0100)
committerAndy Wingo <wingo@pobox.com>
Mon, 13 Feb 2012 23:11:39 +0000 (00:11 +0100)
commitca2ec018f2131fc137e7bfb9119287d1fa915435
tree648ea8f94734c61e1ae4a3e1a1716449ea63bbe9
parentaac980de43a0466b968a56607664f5ebbca6b751
string ports simplification

* libguile/strports.c (st_fill_input): Rename from stfill_buffer, and
  remove an unneeded scm_return_first_int.
  (st_resize_port): Minor variable renaming.
  (st_write): Keep read_pos updated to be the same as write_pos.  If we
  need to resize, do so only once.
  (st_seek): No more need to flush.
  (st_truncate): Update read_pos here too.
  (scm_mkstrport): No need to flush here.
  (scm_strport_to_string): Just call scm_from_stringn; rely on it to
  detect the latin1 case.
  (scm_make_stptob): No more flush function.
libguile/strports.c