bug 1080: Fold dump_color_mode* functions together
commit200e36c0028a0f2dc43748c39074acf5e2d8283e
authorKalle Olavi Niemitalo <kon@iki.fi>
Mon, 8 Jun 2009 20:30:44 +0000 (8 23:30 +0300)
committerKalle Olavi Niemitalo <Kalle@Astalo.kon.iki.fi>
Mon, 8 Jun 2009 21:06:10 +0000 (9 00:06 +0300)
tree5ffe66b89209eb510fcd8e6f0979c90d09f2de20
parentda4bd42e4304b68dac11138e3f9f85781972ccaf
bug 1080: Fold dump_color_mode* functions together

Instead of having four separate function definitions, have just one
sprinkled with #ifdefs, and #include that four times.  The purpose
being to make it clearer which parts of these functions are identical
and which ones differ.

As a side effect, this change makes ELinks ignore --dump-color-mode
when dumping in UTF-8.  Colourful UTF-8 dumping has not been
implemented and the fallback is now different from before.
src/viewer/dump/dump-color-mode.h [new file with mode: 0644]
src/viewer/dump/dump.c