]> git.ipfire.org Git - thirdparty/gettext.git/commit
libtextstyle: Generalize fd-styled-ostream to noop-styled-ostream.
authorBruno Haible <bruno@clisp.org>
Tue, 2 Apr 2019 15:52:29 +0000 (17:52 +0200)
committerBruno Haible <bruno@clisp.org>
Tue, 2 Apr 2019 15:52:29 +0000 (17:52 +0200)
commit7200ac4191bd1fed0e5b9230d354fb17716b5559
treeec26ee2e00e3d1df32fba6c665e89da3a410ef6c
parent283418cdf9425f5abc13e9097f1507e26f81d54e
libtextstyle: Generalize fd-styled-ostream to noop-styled-ostream.

* gnulib-local/lib/noop-styled-ostream.oo.h: New file, based on
gnulib-local/lib/fd-styled-ostream.oo.h.
* gnulib-local/lib/noop-styled-ostream.oo.c: New file, based on
gnulib-local/lib/fd-styled-ostream.oo.c.
* gnulib-local/modules/noop-styled-ostream: New file, based on
gnulib-local/modules/fd-styled-ostream.
* gnulib-local/Makefile.am (EXTRA_DIST): Remove lib/fd-styled-ostream.oo.[hc]
and modules/fd-styled-ostream. Add lib/noop-styled-ostream.oo.[hc] and
modules/noop-styled-ostream.
* libtextstyle/woe32dll/c++noop-styled-ostream.cc: New file, based on
libtextstyle/woe32dll/c++fd-styled-ostream.cc.
* libtextstyle/gnulib-local/modules/noop-styled-ostream.diff: New file, based
on libtextstyle/gnulib-local/modules/fd-styled-ostream.diff.
* gnulib-local/lib/fd-styled-ostream.oo.h: Remove file.
* gnulib-local/lib/fd-styled-ostream.oo.c: Remove file.
* gnulib-local/modules/fd-styled-ostream: Remove file.
* libtextstyle/woe32dll/c++fd-styled-ostream.cc: Remove file.
* libtextstyle/gnulib-local/modules/fd-styled-ostream.diff: Remove file.
* libtextstyle/autogen.sh (GNULIB_MODULES): Add noop-styled-ostream. Remove
fd-styled-ostream.
* libtextstyle/lib/misc.c: Include noop-styled-ostream.h, fd-ostream.h.
(styled_ostream_create): Call fd_ostream_create and noop_styled_ostream_create
instead of fd_styled_ostream_create.
* libtextstyle/lib/textstyle.h (noop_styled_ostream_t): New type.
(noop_styled_ostream_*): New declarations.
* libtextstyle/doc/libtextstyle.texi (The noop_styled_ostream class): New
subsection.
15 files changed:
gnulib-local/Makefile.am
gnulib-local/lib/fd-styled-ostream.oo.c [deleted file]
gnulib-local/lib/noop-styled-ostream.oo.c [new file with mode: 0644]
gnulib-local/lib/noop-styled-ostream.oo.h [moved from gnulib-local/lib/fd-styled-ostream.oo.h with 59% similarity]
gnulib-local/modules/fd-styled-ostream [deleted file]
gnulib-local/modules/noop-styled-ostream [new file with mode: 0644]
libtextstyle/.gitignore
libtextstyle/autogen.sh
libtextstyle/doc/libtextstyle.texi
libtextstyle/gnulib-local/modules/fd-styled-ostream.diff [deleted file]
libtextstyle/gnulib-local/modules/noop-styled-ostream.diff [new file with mode: 0644]
libtextstyle/lib/misc.c
libtextstyle/lib/textstyle.h
libtextstyle/woe32dll/c++fd-styled-ostream.cc [deleted file]
libtextstyle/woe32dll/c++noop-styled-ostream.cc [new file with mode: 0644]