binary-io: Define set_binary_mode function.
authorBruno Haible <bruno@clisp.org>
Sun, 13 May 2012 20:54:49 +0000 (22:54 +0200)
committerBruno Haible <bruno@clisp.org>
Sun, 13 May 2012 20:57:52 +0000 (22:57 +0200)
commit290f951644e3c7ae4a9bc14ae89ed071b33b9a18
tree482a0c16ef0f22b2942e4d8fa81613805b093a19
parent81e2fe40473d40b254dea9484525c343d896a439
binary-io: Define set_binary_mode function.

* lib/binary-io.h (set_binary_mode): New function.
(SET_BINARY): Define in terms of set_binary_mode.
* modules/binary-io (configure.ac): Require AC_C_INLINE.
* tests/test-binary-io.c (main): Accept an argument, and test either
set_binary_mode or SET_BINARY depending on the argument.
* tests/test-binary-io.sh: Invoke test-binary-io twice, with an
argument. Clean up also t-bin-out0.tmp.
ChangeLog
lib/binary-io.h
modules/binary-io
tests/test-binary-io.c
tests/test-binary-io.sh