* src/preproc/html/pre-html.cpp (write_upto_newline): Don't use
commit91def9115317ee8bec07e0cebd7e2b20648c264f
authorWerner LEMBERG <wl@gnu.org>
Fri, 17 Oct 2003 12:51:58 +0000 (17 12:51 +0000)
committerWerner LEMBERG <wl@gnu.org>
Fri, 17 Oct 2003 12:51:58 +0000 (17 12:51 +0000)
tree32f17527e091e6d4fa7199bfb5d18e56f3911622
parentb4e8cb2c6cf06e08c55b5f7a78b91c4a65df7ea1
* src/preproc/html/pre-html.cpp (write_upto_newline): Don't use
`(*t)->next' without testing validity of `*t'.
(usage): Make it more readable.

Make html device run under both MS-DOS and Win32.

* src/preproc/html/pre-html.cpp (MAY_FORK_CHILD_PROCESS,
MAY_SPAWN_ASYNCHRONOUS_CHILD): New macros to control whether
spawn or fork+exec has to be used, and whether parent must sleep
until the child process terminates.  Used in
`char_buffer::run_output_filter'.
(copyofstdoutfd): Removed.
(char_buffer): Replace `write_file_html' and `write_file_troff'
member functions with `emit_troff_output' and `run_output_filter'.
The latter
(DEVICE_FORMAT, HTML_OUTPUT_FILTER, IMAGE_OUTPUT_FILTER): New
macros.
(replaceFd): Replaced with...
(set_redirection): New auxiliary function.
(waitForChild): Replaced with...
(save_and_redirect): New auxiliary function for.

(char_buffer::do_html, char_buffer::do_image): Simplified, using new
functions.
ChangeLog
src/preproc/html/pre-html.cpp