diff options
author | wlemb <wlemb> | 2003-10-13 19:53:45 +0000 |
---|---|---|
committer | wlemb <wlemb> | 2003-10-13 19:53:45 +0000 |
commit | d6c521978249065d83f7e6ac9a933560a38e0973 (patch) | |
tree | 6b0521ea39875fadf89fe5bec465cd91d0ee332b /src/include | |
parent | 0826c033b6b1e930d69171cd54ecd27da02d0427 (diff) | |
download | groff-d6c521978249065d83f7e6ac9a933560a38e0973.tar.gz |
* 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.
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/searchpath.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/include/searchpath.h b/src/include/searchpath.h index 4d89a8d0..6568cd83 100644 --- a/src/include/searchpath.h +++ b/src/include/searchpath.h @@ -1,5 +1,6 @@ // -*- C++ -*- -/* Copyright (C) 1989, 1990, 1991, 1992, 2000 Free Software Foundation, Inc. +/* Copyright (C) 1989, 1990, 1991, 1992, 2000, 2003 + Free Software Foundation, Inc. Written by James Clark (jjc@jclark.com) This file is part of groff. @@ -27,4 +28,5 @@ public: ~search_path(); void command_line_dir(const char *); FILE *open_file(const char *, char **); + FILE *open_file_cautious(const char *, char ** = 0, const char * = 0); }; |