lib/xbinary-io.c


Log

Author Commit Date CI Message
Bruno Haible c5ede3d9 2017-04-22T12:02:38 xbinary-io: Fix build error. * modules/xbinary-io (Depends-on): Add gettext-h. * lib/xbinary-io.c: Include gettext.h and define _(). Reported by Gisle Vanem <gisle.vanem@gmail.com> in <https://lists.gnu.org/archive/html/bug-gnulib/2017-04/msg00089.html>.
Bruno Haible bc63f326 2017-02-16T10:16:02 xbinary-io: Fix inlining. * lib/xbinary-io.c: Set XBINARY_IO_INLINE, not XSETMODE_INLINE.
Paul Eggert 820fa6ad 2017-02-16T00:17:56 xbinary-io: rename from xsetmode This patch is taken from suggestions by Bruno Haible in: http://lists.gnu.org/archive/html/bug-gnulib/2017-02/msg00060.html http://lists.gnu.org/archive/html/bug-gnulib/2017-02/msg00061.html * lib/binary-io.c (__gl_setmode_check): Set errno to EINVAL, not ENOTTY, when it is an inappropriate device. * lib/binary-io.h (SET_BINARY): Resurrect. * lib/xbinary-io.c: Rename from lib/xsetmode.c. (xset_binary_mode_error): Rename from xsetmode_error. * lib/xbinary-io.h: Rename from lib/xsetmode.h. (xset_binary_mode): Rename from xsetmode. All uses changed. * modules/xbinary-io: Rename from modules/xsetmode. Update file names. * tests/test-binary-io.sh (tmpfiles): Remove no-longer-used file name. * NEWS: Update to match revised behavior.