| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
* src/include/posix.h (F_OK): Define conditionally.
* src/devices/grotty/tty.cpp (tty_printer::make_underline): Use
different variable name in second `for' loop to avoid MSVC compiler
problem.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* src/include/Makefile.sub (defs.h): Add `INSTALLPATH'.
* src/include/relocate.h, src/libs/libgroff/relocate.cpp: New files.
* src/libs/libgroff/searchpath.cpp: Handle `relocate'.
(search_path::search_path, search_path::open_file_cautious): Use
`relocate'.
* src/libs/libgroff/Makefile.sub (OBJS, CCSRCS),
src/include/Makefile.sub (HDRS): Updated.
* src/devices/grohtml/post-html.cpp: Don't use strdup/free but
strsave/a_delete.
* src/libs/libgroff/font.cpp: Replace strdup with strsave.
* src/libs/libgroff/maxfilename.cpp: Don't include limits.h since
lib.h already does it.
* src/libs/libgroff/maxpathname.cpp: New file, defining
path_name_max.
* src/include/lib.h: Add prototype for path_name_max.
* src/libs/libgroff/Makefile.sub (OBJS, CCSRCS): Updated.
* src/include/nonposix.h (PATH_EXT): New macro.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
New macros.
* src/roff/groff/pipeline.c: Declare strcasecmp.
(run_pipeline) [_WIN32]: Use function name variants which don't
start with `_'.
Fix stream handling.
* src/include/nonposix.h: Fix declaration of `system_shell_name'.
Declare `spawnvp_wrapper' and macro definitions of spawnvp only
for platforms which use the native Win32 runtime libraries.
(FLUSH_INPUT_PIPE) [_UWIN]: Provide non-empty version.
* src/libs/libgroff/quotearg.c (QUOTE_ARG_MALLOC_ERROR,
QUOTE_ARG_REALLOC_ERROR): Fix string.
* src/preproc/html/pre-html.cpp: Remove declaration of
`spawnvp_wrapper'.
Don't use __MINGW32__.
s/DEBUG_FILE/DEBUG_FILE_DIR/.
(DEBUG_TEXT, DEBUG_NAME, DEBUG_FILE) [DEBUGGING]: New macros.
(OUTPUT_STREAM, PS_OUTPUT_STREAM, REGION_OUTPUT_STREAM): New macros.
(char_buffer::run_output_filter) [MAY_FORK_CHILD_PROCESS]: Fix
calls to `set_redirection' and `WAIT'.
[MAY_SPAWN_ASYNCHRONOUS_CHILD]: Remove unused variable `i' and `j'.
Fix calls to `set_redirection' and `save_and_redirect'.
(char_buffer::do_html, char_buffer::do_image) [DEBUGGING]: Fix calls
to `set_redirection' and `save_and_redirect'.
(usage): Fix message.
(makeTempFiles, main): Use `DEBUG_FILE'.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
quoting for MSVC's spawn* and exec* functions.
* src/libs/libgroff/spawnvp.c: New file, providing a wrapper around
spawnvp with proper quoting for MSVC.
* src/libs/libgroff/assert.cpp (program_name),
src/libs/libgroff/new.cpp (program_name): Declare as `extern "C"'.
* src/libs/libgroff/Makefile.sub (OBJS, CSRCS): Updated.
* src/roff/troff/input.cpp (program_name): Declare as `extern "C"'.
* src/include/error.h (program_name): Declare as `extern "C"'.
* src/include/nonposix.h [__MSDOS__ ...]: Handle spawnvp.
* src/preproc/html/pre-html.cpp [__CYGWIN__ ...]: Declare
spawnvp_wrapper.
[MAY_SPAWN_ASYNCHRONOUS_CHILD]: Declare i and j.
|
|
|
|
| |
avoid warnings w.r.t. redefinition of P_tmpdir for some compilers.
|
|
|
|
|
|
|
|
|
|
|
| |
new font and mapping files.
* src/include/nonposix.h (FLUSH_INPUT_PIPE): New macro to empty
an input pipe. This is needed for the MSVC compiler to make troff's
`-o' option work.
* src/roff/troff/div.cpp: Include nonposix.h.
(cleanup_and_exit): Call FLUSH_INPUT_PIPE.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* doc/Makefile.sub, contrib/mom/Makefile.sub (GROFF_BIN_PATH): Use
$(SEP).
* src/include/nonposix.h (STDIN_FILENO, STDOUT_FILENO,
STDERR_FILENO) [_MSC_VER]: Define conditionally.
(getpid) [_MSC_VER]: Remove.
Include direct.h and process.h conditionally.
* src/roff/troff/node.cpp (suppress_node::tprint): Don't use
parentheses for a_delete.
* src/utils/lookbib/lookbib.cpp: Include nonposix.h.
* test-groff: Replaced with...
* test-groff.in: This new template to handle path separator
properly.
* configure.ac: Check for direct.h and process.h.
Generate test-groff script.
* configure, src/include/config.hin: Regenerated.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
more glyphs. See hpftodit.man for more details.
* src/utils/hpftodit/hpftodit.cpp: Include stdio.h, string.h,
ctype.h, and unicode.h.
s/msl/charcode/ everywhere since we now handle Unicode values also.
(equal, NO, YES, MSL, SYMSET, UNICODE, UNICODE): New macros.
Use it where appropriate.
(MULTIPLIER): Replaced with...
(multiplier): New global static variable.
(scale): Updated.
(tag_type): Add more TFM tags.
(tag_name): New array.
(ENUM_TYPE, FLOAT_TYPE): Removed.
(BYTE_TYPE): New value assigned.
(ASCII_TYPE, RATIONAL_TYPE): New enumeration values.
(text_symbol_sets, special_symbol_sets): Extended to cover more
sets.
(check_type): Add return value.
(check_units): Add parameters to get ppi and upem values.
Handle TrueType TFM data.
(output_font_name): New function.
(output_charset): Add parameter to handle TFM type.
Handle TrueType TFMs also.
(em_fract): New macro.
(dump_tags): Be much more verbose and handle more tags.
(dump_ascii, dump_symbol_sets, dump_symbols): New functions.
(hp_msl_to_ucode_name, unicode_to_ucode_name, is_uname): New
functions.
(read_map): Add parameter to handle TFM type.
Handle both MSL and Unicode mappings.
(main): Add two new command line options `-a' and `-q'.
Updated to make use of new functions.
(usage): Updated.
* src/utils/hpftodit/hpuni.cpp: New file.
* src/utils/hpftodit/Makefile.sub, src/utils/hpftodit/hpftodit.man:
Updated.
* src/include/nonposix.h (read) [_MSC_VER]: Define.
|
|
|
|
|
|
|
|
|
|
|
|
| |
default paths.
* aclocal.m4 (GROFF_TARGET_PATH_SEPARATOR): New macro.
* configure.ac: Use GROFF_TARGET_PATH_SEPARATOR.
* configure: Regenerated.
* Makefile.in (SEP): Use GROFF_PATH_SEPARATOR.
* src/include/nonposix.h (PATH_SEP_CHAR): New definition.
Replace `PATH_SEP[0]' with `PATH_SEP_CHAR' everywhere.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
(GROFF_LIBC): New function.
* configure.ac: Call GROFF_LIBC.
Check for `kill'.
* configure: Regenerated.
* src/include/lib.h: Handle __MINGW32__.
* src/include/nonposix.h [_MSC_VER]: Handle __MINGW32__.
Add macro for `pipe'.
Define P_tmpdir.
* src/roff/groff/pipeline.c (run_pipeline): Handle `no_pipe'
correctly.
* src/utils/indxbib/signal.c (handle_fatal_signal) [!HAVE_KILL]:
Implement.
|
|
|
|
|
|
|
|
|
| |
* src/devices/grodvi/dvi.cc, src/devices/grolbp/lbp.cc,
src/devices/grolj4/lj4.cc, src/devices/grops/ps.cc: Call SET_BINARY
unconditionally.
* src/utils/pfbtops/pfbtops.c: Call SET_BINARY unconditionally.
(main): Treat \r\n as \n.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
`access' before calling `unlink'.
(do_file): Handle __EMX__.
* src/include/nonposix.h: Handle __EMX__.
* Makefile.in (SEP): New variable; set to @PATH_SEPARATOR@.
(fontpath,tmacpath): Use it.
* src/preproc/eqn/neqn.sh, src/roff/nroff/nroff.sh: Use
@PATH_SEPARATOR@.
|
|
|
|
|
|
|
|
| |
(WAIT, _WAIT_CHILD) [!_MSC_VER]: Define.
* src/preproc/html/pre-html.cc (waitForChild): Use WAIT.
* src/preproc/html/pushback.cc: Include nonposix.h.
* src/roff/groff/pipeline.c: Define strcasecmp and strncasecmp
conditionally.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* doc/groff.texinfo: Include it.
Define and use @copying.
Starting with separating glyph, symbol, and character.
* Makefile.in (EXEEXT): Set it.
* src/*/Makefile.sub (PROG): Add $(EXEEXT) for all non-script
programs.
* src/include/nonposix.h: Define GS_NAME.
* src/preproc/html/pre-html.cc (createAllPages): Use GS_NAME.
Some preliminary changes for EMX support under OS/2.
* src/preproc/pic/main.cc (main), src/roff/groff/pipeline.c: Add
__EMX__ similar to __MSDOS__.
* src/utils/indxbib/indxbib.cc (main) [__EMX__]: Use `unlink'.
|
|
|
|
| |
s/__CYGWIN32__/__CYGWIN__/.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
(MEMACROS): Removed.
(TFLAG): New variable.
(TROFF): Use it.
Add -ww.
(GROFF): Use TFLAG, FFLAG, -U, -p, -e, -t, and -ww.
(.me.dit): Fixed.
(.ms.html, .ms.ascii, .ms.ps, homepage.html): Simplify.
* tmac/www.tmac: Use dummy diversion while resetting and disabling
`.tl'.
* tmac/e.tmac: Inserted some more `\"' to remove warnings if used
unstripped.
* src/roff/troff/troff.man: Fix order of parameter description.
* NEWS: Updated.
Simplify image handling for grohtml.
Fix <p> bug.
* src/devices/grohtml/html-text.cc (DEBUGGING): Don't undefine but
comment out.
(html_text::dump_stack): Don't emit newline while debugging.
(html_text::do_push) [DEBUGGING]: Print more info.
(html_text::check_emit_text): Fix handling of <p>.
* src/devices/grohtml/html.h: Updated.
* src/devices/grohtml/output.cc (FPUTC, FPUTS, PUTC): New macros,
replacing `fputc', `fputs', `putc'. If DEBUGGING is defined, they
send its data to stderr also.
Update all callers.
(simple_output::space_or_newline) [DEBUGGING]: Removed.
* src/devices/grohtml/post-html.cc (html_printer::do_links,
html_printer::html_printer): Remove `DEBUGGING' conditionals.
* src/include/html-strings.h (HTML_IMAGE_{CENTERED,LEFT,RIGHT,END}):
Removed.
* src/libs/libgroff/htmlhint.cc (is_in_graphic_start,
is_inline_image): Removed.
(html_begin_suppress, html_end_suppress): Don't take a parameter.
(graphic_start, graphic_end): Removed.
* src/include/htmlindicate.h: Updated.
* src/preproc/html/pre-html.cc (DEBUG_HTML): Removed.
(macroset_template): New global variable.
(makeFileName): Use `macroset_template'.
(write_end_image): Don't take a parameter.
Don't emit newline.
(write_start_image: Don't emit newline.
(char_buffer::write_upto_newline): Updated.
(char_buffer::skip_to_newline): Renamed to ...
(char_buffer::skip_until_newline): This.
Fix code.
(char_buffer::write_file_troff, char_buffer::write_file_html):
Simplified.
(createAllPages, createImage) [DEBUGGING]: Handle `debug' flag.
(removeAllPages): Remove `DEBUGGING' conditionals.
(addRegDef, dump_args): New functions.
(char_buffer::do_html, char_buffer::do_image): Handle
`www-image-template' command line variable.
Add more debugging code.
(addps4html): Removed.
(removeTempFiles) [DEBUGGING]: Handle `debug' flag.
* src/preproc/eqn/main.cc: Include `ctype.h'.
(suppress_html): Removed.
(do_file): Updated.
(inline_equation): Use `html_begin_suppress' and
`html_end_suppress'.
* src/preproc/pic/troff.cc: Don't include `htmlindicate.h'.
(troff_output::start_picture, troff_output::finish_picture):
Updated.
* src/preproc/tbl/main.cc: Don't include `htmlindicate.h'.
(process_input_file): Updated.
* src/roff/troff/div.cc (page_number): Set page number only if the
`ps4html' register isn't defined.
* src/roff/troff/input.cc (image_no): New external variable.
(do_suppress): Use it.
* src/roff/troff/node.h (suppress_node::image_id): New member.
* src/roff/troff/node.cc (image_no): Remove `static' keyword.
(suppress_node::suppress_node): Initialize `image_id' member.
(suppress_node::same): Handle `image_id' also.
(suppress_node::copy): Updated.
(last_image_id): New global variable.
(suppress_node::tprint): Use it.
* tmac/an-old.tmac (TS, TE, EQ, EN): Use HTML-IMAGE and
HTML-IMAGE-END.
* tmac/pspic.mac (PSPIC): Fix html support.
* tmac/s.tmac (@EQ, @EN, @TS, TE, PS, PE): Ditto.
* tmac/www.tmac (www-image-template): Set up.
(HTMLINDEX): Renamed to...
(HX): This.
(BODYCOLOR): Renamed to...
(BCL): This.
(BACKGROUND): Renamed to...
(BGIMG): This.
(URL): Change order of parameters for consistency.
(MAILTO): Renamed to...
(MTO): This.
(IMAGE, PNG-IMAGE, MARGIN-PNG-IMAGE): Renamed to...
(IMG, PIMG, MPIMG): This.
(HTML-H-BEGIN, HTML-H-END): Renamed to...
(HnS, HnE): This.
(LINKS): Renamed to...
(LK): This.
(LINE): Renamed to...
(HR): This.
(NO-AUTO-RULE): Renamed to...
(NHR): This.
(HTML-TL): Renamed to...
(HTL): This.
(UL-BEGIN, UL-END): Renamed to...
(ULS, ULE): This.
(DROPCAP): Renamed to...
(DC): This.
(TS, TE, EQ, EN): Provide default definitions.
(www-make-unique-name): Updated.
(HTML-IMAGE-INLINE): Fix typo.
* tmac/groff_www.man: Updated.
* doc/Makefile (homepage.html): Add option -r to grohtml.
Use shortened image name.
* doc/groff.texinfo: Updated info on grohtml strings and macros.
* doc/homepage.ms: Updated and extended.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
object files.
Add `const' to `Version_string'.
* src/utils/pfbtops/pfbtops.c (main), src/roff/groff/groff.cc
(main), src/roff/troff/input.cc (main), src/preproc/tbl/main.cc
(main), src/preproc/pic/main.cc (main), src/preproc/eqn/main.cc
(main), src/preproc/grn/main.cc (main), src/preproc/html/pre-html.cc
(scanArguments), src/preproc/refer/refer.cc (main),
src/preproc/soelim/soelim.cc (main), src/devices/grotty/tty.cc
(main), src/devices/grodvi/dvi.cc (main), src/devices/grolj4/lj4.cc
(main), src/devices/grohtml/post-html.cc (main),
src/devices/grolbp/lbp.cc (main), src/utils/tfmtodit/tfmtodit.cc
(main), src/utils/hpftodit/hpftodit.cc (main),
src/utils/lookbib/lookbib.cc (main), src/utils/indxbib/indxbib.cc
(main), src/utils/lkbib/lkbib.cc (main),
src/utils/addftinfo/addftinfo.cc (main): Implement it.
* src/roff/groff/pipeline.c: Add _UWIN.
* src/include/nonposix.h: Ditto.
* src/include/lib.h: Use HAVE_STRERROR.
* src/roff/groff/pipeline.c: Ditto.
* src/preproc/html/pre-html.cc: Remove declaration of `strerror'.
* src/libs/libgroff/Makefile.sub (version.cc): Add `extern "C"'.
* src/utils/pfbtops/pfbtops.c: Add copyright notice.
* win32-diffs: Updated.
* src/utils/hpftodit/hpftodit.cc (read_map): Fix compiler warning.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* font/devlbp/Makefile.sub (CLEANADD): Set it.
* tmac/Makefile.sub (CLEANADD): Add tmac.local-s.
* Makefile.in (dist): Don't remove src/xditview/Imakefile, but ...
* Makefile.sub (DISTCLEANFILES): Here.
* libs/libgroff/new.cc: Include `nonposix.h'.
* win32-diffs: Updated.
When inside displays, an empty input line warning should be
suppressed. If another macro call is put inside a display,
all subsequent empty lines found in that display caused a
warning to be emitted.
(doc-empty-line): Check the `doc-display-depth' register to
determine whether we are inside display or not.
the only change is that `.Fn' and `.Fc' put a final semicolon after
a function declaration in the SYNOPSIS section).
|
|
|
|
| |
in C also.
|
|
|