Simplify `scm_i_set_port_encoding_x'.
authorLudovic Courtès <ludo@gnu.org>
Thu, 10 Feb 2011 21:27:37 +0000 (22:27 +0100)
committerLudovic Courtès <ludo@gnu.org>
Thu, 10 Feb 2011 22:04:43 +0000 (23:04 +0100)
commit064c27c4ef8987218e01a2a7dd9c51c9c88ef50b
treedae27b1189d3a6f440296abe1be1ac4aecfe3207
parentfe949e7bc69bb72610b8eeafcfbb0754b2c0db32
Simplify `scm_i_set_port_encoding_x'.

* libguile/ports.c (find_valid_encoding): Remove.
  (scm_i_set_port_encoding_x): Remove call to `find_valid_encoding'.
  Remove `valid_enc'.  Rename `enc' to `encoding'.

* test-suite/tests/ports.test ("port-encoding"): New test prefix.
libguile/ports.c
test-suite/tests/ports.test