* src/roff/groff/groff.cpp (help), src/devices/grops/ps.cpp (usage),
commitf9b9ca9e8b8d0314e2e380ac26c330739943a3f7
authorWerner LEMBERG <wl@gnu.org>
Mon, 13 Oct 2003 19:53:52 +0000 (13 19:53 +0000)
committerWerner LEMBERG <wl@gnu.org>
Mon, 13 Oct 2003 19:53:52 +0000 (13 19:53 +0000)
tree82f1528111a21c5a8e4b0c4bae30e346706f2226
parent959679070d783374e4a24fb8f42e1361d97a946c
* src/roff/groff/groff.cpp (help), src/devices/grops/ps.cpp (usage),
src/roff/troff/input.cc (usage): Updated.

* NEWS, doc/groff.texinfo: Updated.

* src/libs/libgroff/searchpath.cpp
(search_path::open_file_cautious): New function which also handles
`-' as stdin and stdout depending on the access mode.
* src/include/searchpath.h (search_path): Updated.

* src/devices/grops/ps.cpp (main): Handle new `-I' switch.
* src/devices/grops/ps.h: Include `searchpath.h'.
* src/devices/grops/psrm.cpp (resource_manager::supply_resource):
Open resource file with `include_search_path.open_file_cautious'.
* src/devices/grops/grops.man: Document new `-I' switch.

* src/devices/grodvi/dvi.cpp (main), src/devices/grolbp/lbp.cpp
(main), src/devices/grolj4/lj4.cpp (main),
src/devices/grotty/tty.cpp (main): Ignore new `-I' switch.

* src/preproc/soelim/soelim.cpp (include_list_length, include_list):
Replaced with...
(include_search_path): New global variable.
(include_path_append): Removed.
(main): Use `include_search_path.command_line_dir' to handle `-I'.
(do_file): Simplify, using new
`include_search_path.open_file_cautious'.

* src/roff/groff/groff.cpp (print_commands): Accept file handle as
parameter.
(main): Pass arguments to `-I' to both troff and devices.
Improve handling of `-V'.
* src/roff/groff/groff.man: Document changes to -I and -V.

* src/roff/troff/input.cpp (include_search_path): New global
variable.
(next_file, source, ps_bbox_request, transparent_file,
process_input_file): Use new
`include_search_path.open_file_cautious'.
(main) Handle `-I' switch.
* src/roff/troff/node.cpp (troff_output_file::really_copy_file):
Use new `include_search_path.open_file_cautious'.
* src/roff/troff/node.h: New extern symbol `include_search_path'.
* src/roff/troff/troff.man: Document new `-I' switch.
22 files changed:
ChangeLog
NEWS
doc/groff.texinfo
man/roff.man
src/devices/grodvi/dvi.cpp
src/devices/grolbp/lbp.cpp
src/devices/grolj4/lj4.cpp
src/devices/grops/grops.man
src/devices/grops/ps.cpp
src/devices/grops/ps.h
src/devices/grops/psrm.cpp
src/devices/grotty/tty.cpp
src/include/searchpath.h
src/libs/libgroff/searchpath.cpp
src/preproc/soelim/soelim.cpp
src/preproc/soelim/soelim.man
src/roff/groff/groff.cpp
src/roff/groff/groff.man
src/roff/troff/input.cpp
src/roff/troff/node.cpp
src/roff/troff/node.h
src/roff/troff/troff.man