summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* Formatting, copyright year, minor fixes.wl2006-01-181-4/+3
|
* * configure.ac: Test for getc_unlocked (needed for localcharset).wl2006-01-114-17/+25
| | | | | | | | | | | | | * configure, src/include/config.hin: Regenerated. * src/libs/libgroff/Makefile.sub (EXTRA_CFLAGS): Define ENABLE_RELOCATABLE. * src/libs/libgroff/relocatable.h: New dummy header file for localcharset.c. * src/libs/libgroff/localcharset.c: Updated to (unchanged) CVS gnulib version.
* Work around unportability of nl_langinfo(CODESET).wl2006-01-109-16/+1234
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * m4/glibc21.m4: New file, from gnulib. * Makefile.sub (M4MACROS): Add m4/glibc21.m4. * configure.ac: Also test for stddef.h, and invoke jm_GLIBC21. * Makefile.in (HOST, GLIBC21): New variables. (MDEFINES): Pass them to subdirectories. * src/include/relocate.h (relocatep): Define with C linkage. * src/include/localcharset.h: New file, from gnulib. * src/libs/libgroff/localcharset.c: New file, from gnulib with a modification for relocate(). * src/libs/libgroff/config.charset: New file, from gnulib. * src/libs/libgroff/ref-add.sin: New file, from gnulib. * src/libs/libgroff/ref-del.sin: New file, from gnulib. * src/libs/libgroff/Makefile.sub (EXTRA_CFLAGS): Also define LIBDIR. (OBJS): Add localcharset.o. (CSRCS): Add localcharset.c. (all): Add dependencies to charset.alias, ref-add.sed, ref-del.sed. (charset.alias): New rule. (PACKAGE): New variable. (ref-add.sed, ref-del.sed): New rules. (MKINSTALLDIRS): New variable. (install_data): Depend on install_charset_data. (install_charset_data): New rule for creating or updating charset.alias. (uninstall_sub): Depend on uninstall_charset_data. (uninstall_charset_data): New rule for uninstalling or updating charset.alias. * src/preproc/preconv/preconv.cpp: Include localcharset.h instead of <langinfo.h>. (main): Initialize default_encoding from locale_charset() instead of nl_langinfo(CODESET). * aclocal.m4, configure, src/include/config.hin: Regenerated.
* * src/preproc/preconv/preconv.cpp (conversion_iconv): Usewl2006-01-101-2/+4
| | | | ICONV_CONST in call to iconv. Reported by Robert Goulding.
* * src/preproc/preconv/preconv.cpp (do_file): Don't pass BOM towl2006-01-053-5/+165
| | | | | | | `conversion_utf8'. * src/preproc/preconv/preconv.man: New file. Not complete yet. * src/preproc/proconv/Makefile.sub (MAN1): New variable.
* * src/preproc/preconv/preconv.cpp: s/debug/debug_flag/.wl2006-01-051-18/+26
| | | | | | | | (raw_flag): New global variable. (do_file): Use .lf to set file name (if `raw_flag' isn't set). (usage): Updated. (main): Handle `-r' command line switch to set `raw_flag'. (get_BOM): Fix encodings in `BOM_table'.
* * src/preproc/preconv/preconv.cpp (emacs_to_mime): As suggested bywl2006-01-051-225/+297
| | | | | | | | | | | | | Bruno, comment out most encodings to support only a small set of coding tags, thus reducing potential problems with legacy encodings and character sets in the future. Add many XEmacs coding tags (now commented out). Add `cp1047'. (check_encoding_tag): Renamed to... (check_coding_tag): This. (get_BOM): Return encoding as specified by BOM. Test for UTF32-LE too. (do_file): Don't check for coding tag if a BOM has been found.
* * m4/groff.m4: Renamed from aclocal.m4.wl2006-01-033-10/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | * m4/codeset.m4: New file, from gnulib. * m4/iconv.m4: New file, from gnulib. * m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4: New files, from gnulib. * config.rpath: New file, from gnulib. * config.guess, config.sub: New files, from gnulib. * Makefile.sub (M4MACROS): New variable. (configure): Fix typo. (aclocal.m4): New rule. (stamp-h.in): Depend on aclocal.m4. * configure.ac: Invoke AM_ICONV and AM_LANGINFO_CODESET. * Makefile.in (LIBICONV): New variable. (MDEFINES): Pass it to recursive makes. * src/preproc/preconv/preconv.cpp: Use HAVE_LANGINFO_CODESET and HAVE_ICONV instead of I18N macro. * src/preproc/preconv/Makefile.sub (EXTRA_LDFLAGS): New variable. * aclocal.m4, configure, src/include/config.hin: (Re)generated. * doc/Makefile.in (webpage.html): Simplify. * doc/Makefile.sub (webpage.html): Synchronize with doc/Makefile.in. * doc/webpage.ms, tmac/groff_www.man, tmac/www.tmac: Minor updates.
* Fixed typo. From Michail.wl2006-01-011-1/+1
|
* * src/preproc/preconv/preconv.cpp (emacs_to_mime): Variouswl2006-01-012-41/+52
| | | | | | | | | | corrections: . Don't map ascii to latin-1. . Don't use IBMxxx encodings but cpxxx for portability. . Map cp932, cp936, cp949, cp950 to itself. (emacs2mime): Protect calls to strcasecmp. (conversion_iconv): Add missing call to iconv_close. (do_file): Emit error message in case of unsupported encoding.
* Integrate preconv into the groff binary. Changes based on a patchwl2005-12-314-52/+181
| | | | | | | | | | | | | | | | | | | | | from Michail Vidiassov. * src/roff/groff/pipeline.h (MAX_COMMANDS): Increase by 1. * src/roff/groff/groff.cpp (PRECONV_INDEX): New macro. (SOELIM_INDEX): Updated. (help, synopsis): Updated. (main): Add command line options `-k' and `-K enc' to select encoding. Add support for GROFF_ENCODING environment variable. * src/roff/groff/groff.man: Updated and revised. Start with autoconf support for preconv. * configure.ac: Call AC_C_BIGENDIAN. * configure, src/include/config.hin: Regenerated.
* New preprocessor `preconv' to convert input encodings to somethingwl2005-12-303-0/+1095
| | | | | | | | | | | | | | | groff can understand. Not yet integrated within groff. Proper autoconf stuff is missing too. Tomohiro Kubota has written a first draft of this program, and some ideas have been reused (while almost no code has been taken actually). * src/preproc/preconv/preconv.cpp. src/preproc/preconv/Makefile.sub: New files. * MANIFEST, Makefile.in (CCPROGDIRS), test-groff.in (GROFF_BIN_PATH): Add preconv.
* Remove redundant braces.wl2005-12-292-12/+8
|
* * src/libs/libgroff/make-uniuni: New script to generate uniuni.cpp.wl2005-12-096-6029/+6545
| | | | | | | | | | | | | | | | | | * src/libs/libgroff/uniuni.cpp: Regenerated, using data from Unicode 4.1.0. * src/utils/afmtodit/make-afmtodit-tables: New script to generate afmtodit.tables. * src/utils/afmtodit/afmtodit.tables: New file, representing Unicode 4.1.0 data. * src/utils/afmtodit/afmtodit.pl (%unicode_decomposed, %AGL_to_unicode): Removed. Replace it with a tag. * src/utils/afmtodit/Makefile.sub (afmtodit): Adjust sed expression to replace tag with actual file contents.
* * src/utils/afmtodit.pl: Fix kerning output to avoid warnings forwl2005-12-071-1/+2
| | | | | glyphs which have kern values but aren't handled (glyph variants, for example).
* doc fixeswl2005-12-032-8/+9
|
* * src/devices/grops/ps.cpp (ps_printer::get_subfont): Use correctwl2005-12-021-2/+2
| | | | subfont index. Reported by Michail Vidiassov <master@iaas.msu.ru>.
* * src/devices/grohtml/post-html.cpp (html_printer::do_file_components):gaius2005-11-251-0/+2
| | | | | added fputs calls to emit the head contents and shutdown the head tag whenever a new file component is generated.
* * src/devices/grohtml/post-html.cpp (html_printer::flush_page):gaius2005-11-221-0/+1
| | | | | added call to flush_text to flush any outstanding html tags on the paragraph stack.
* * src/utils/pfbtops/pfbtops.c, src/utils/xtotroff/xtotroff.c: Movewl2005-11-162-2/+4
| | | | | | definition of __GETOPT_PREFIX to the beginning of file to ensure that it is defined even on platforms where getopt.h is already included by other header files.
* * src/devices/grohtml/post-html.cppgaius2005-11-101-1/+6
| | | | | (html_printer::do_heading): reset font to NULL to ensure that a font block is recreated during the next paragraph.
* Mention $MANPAGER variable used with some `man' systems.wl2005-10-171-1/+37
| | | | * doc/webpage.ms, src/devices/grotty/grotty.man, NEWS: Updated.
* * src/devices/xditview/gxditview.man: Change many `.I' to `.B'.wl2005-07-033-35/+51
| | | | | * man/groff_out.man: More markup and minor improvements. * src/roff/groff/groff.man: Minor improvements.
* * src/devices/xditview/gxditview.man: More minor fixes.wl2005-06-261-30/+42
|
* * src/preproc/pic/troff.cpp (troff_output::set_fill,wl2005-06-242-18/+25
| | | | | | | | | troff_output::set_color, troff_output::reset_color): Use .bcolor and .fcolor instead of \m and \M, respectively. * src/devices/xditview/gxditview.man: More minor fixes. * README: Formatting issues. Mention some problems with Debian.
* * src/devices/xditview/gxditview.man: Revised and improved.wl2005-06-231-45/+139
|
* Another round in fixing getopt problems. Hopefully the last one!wl2005-06-2310-224/+165
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | This time we use the getopt stuff from gnulib and define a prefix unconditionally so that there are no collisions with any other getopt implementations. This is a slight waste of space in case we already use a GNU getopt implementation, but on the other hand it really simplifies life. * src/include/getopt.h: Use gnulib version. * src/include/getopt_int.h: Use gnulib version. * src/include/groff-getopt.h: Removed. Obsolete now. * src/include/lib.h: Regarding getopt, don't handle any platform specially; just include getopt.h. (__GETOPT_PREFIX): Define (before getopt.h). * src/include/Makefile.sub (HDRS): Updated. * src/libs/libgroff/getopt1.c, src/libs/libgroff/getopt.c: Use gnulib version. * src/libs/libgroff/Makefile.sub (EXTRA_CFLAGS): Set __GETOPT_PREFIX. * src/utils/pfbtops/pfbtops.c, src/utils/xtotroff/xtotroff.c (__GETOPT_PREFIX): Define (before getopt.h).
* * src/include/lib.h: Provide a fix for Mac OS X to not includewl2005-06-221-2/+3
| | | | groff-getopt.h.
* * src/preproc/soelim/soelim.cpp (do_file): Append trailing zerowl2005-06-201-2/+2
| | | | earlier to get correct error message.
* * src/roff/nroff/nroff.sh: Add support for iso-8859-15.wl2005-06-171-2/+3
|
* Another try to update getopt files. This time we add a dummywl2005-06-1617-398/+571
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | gettext.h file to satisfy the dependency. * src/include/getopt.h, src/libs/libgroff/getopt.c, src/libs/libgroff/getopt1.c: Updated from GNU libc CVS. * src/include/getopt_int.h: New file (from GNU libc CVS). * src/include/gettext.h: Dummy file which just defines a gettext() macro. * src/include/groff-getopt.h: Updated. * src/include/Makefile.sub (HDRS): Add getopt_int.h and gettext.h. * src/libs/libdriver/input.cpp (IntArray): Remove superfluous `const' keywords in return value. * src/preproc/html/pushback.cpp (pushBackBuffer::~pushBackBuffer): Remove redundant variable `old'. (pushBackBuffer::skipToNewline): Remove redundant variable `ch'. * src/preproc/tbl/main.cpp (process_table): Remove redundant variable `c'. Fix more friend name injection problems since modern C++ compilers fail otherwise. We simply provide (global) declarations for all functions declared as friends. This is not really necessary but doesn't harm. * src/preproc/eqn/lex.cpp: Provide declarations for get_char, peek_char, and get_location. * src/preproc/refer/ref.h: Provide declarations for compare_reference, same_reference, same_year, same_date, same_author_last_name, and same_author_name. * src/roff/troff/div.h: Provide declarations for do_divert and page_offset. * src/roff/troff/env.h: Provide declarations for title_length, space_size, fill, no_fill, adjust, no_adjust, center, right_justify, vertical_spacing, post_vertical_spacing, line_spacing, line_length, indent, temporary_indent, do_underline, do_input_trap, set_tabs, margin_character, no_number, number_lines, leader_character, tab_character, hyphenate_request, no_hyphenate, hyphen_line_max_request, hyphenation_space_request, hyphenation_margin_request, line_width, tabs_save, tabs_restore, line_tabs_request, widow_control_request, and do_divert. * src/roff/troff/input.cpp: Provide declaration for chop_macro. * src/roff/troff/node.cpp: Provide declarations for class tfont_spec. Provide declaration for make_tfont.
* * contrib/pdfmark/Makefile.sub (.ms.pdf): Use `--stylesheet', notwl2005-05-286-14/+18
| | | | | | | | | | | `--style'. * src/devices/grolbp/lbp.cpp, src/devices/grolbp/lbp.h: Remove redundant semicolons. * src/preproc/eqn/Makefile.sub, src/preproc/html/Makefile.sub, src/preproc/soelim/Makefile.sub, src/preproc/tbl/Makefile.sub: Define `MLIB'. Some compilers need this for linking with libgroff.
* * All affected files: Update postal address of FSF.wl2005-05-26182-188/+188
|
* Miscellaneous script portability enhancements.wl2005-05-185-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * aclocal.m4: (GROFF_CSH_HACK): Add space in shebang prototype for generated conftest.sh script, conforming to portability recommendation in autoconf docs. * configure: Likewise, for code generated by GROFF_CSH_HACK. * contrib/eqn2graph/eqn2graph.sh: Add space in shebang, conforming to portability recommendation in autoconf docs. * contrib/gdiffmk/gdiffmk.sh: Likewise. * contrib/gdiffmk/tests/runtests.in: Likewise. * contrib/grap2graph/grap2graph.sh: Likewise. * contrib/groffer/groffer.sh: Likewise. * contrib/mm/mmroff.pl: Likewise. * contrib/mom/momdoc/appendices.html: Likewise. * contrib/pic2graph/pic2graph.sh: Likewise. * font/devps/generate/afmname: Likewise. * src/devices/xditview/ad2c: Likewise. * src/preproc/eqn/neqn.sh: Likewise. * src/roff/grog/grog.pl: Likewise. * src/roff/grog/grog.sh: Likewise. * src/roff/nroff/nroff.sh: Likewise. * PROBLEMS: Likewise, in embedded script examples. Improve portability of `pdfroff' shell script. * arch/misc/shdeps.sh: Add space in shebang, conforming to portability guidelines in `autoconf' docs. (PATH_SEARCH_SETUP): New substitution; emits PATH_SEPARATOR initialization code. Used by contrib/pdfmark/pdfroff.sh's `searchpath' function.
* * src/preproc/refer/refer.man: Many small typographic fixes.wl2005-05-071-64/+243
|
* * src/devices/grohtml/post-html.cpp (assert_state::~assert_state):wl2005-05-061-4/+4
| | | | Use `char *' cast for a_delete.
* * src/libs/libgroff/maxpathname.cpp: Include stdlib.h.wl2005-05-032-2/+4
| | | | src/libs/libgroff/relocate.cpp: Use path_name_max everywhere.
* * src/devices/grohtml/post-html.cpp: Use casts to `char *' if usingwl2005-05-036-80/+110
| | | | | | | | | | | | | | | | | | `a_delete' for `const char *'. * src/devices/grohtml/post-html.cpp, src/devices/grohtml/html-table.cpp, src/devices/grohtml/html-text.cpp, src/devices/grohtml/output.cpp: Replace malloc/free with new/delete/a_delete. * src/devices/grolbp/lbp.h: Remove superfluous semicolons which are prohibited with ANSI C++. (lbpprintf, vdmprintf): Remove useless `inline' keyword (since the function has a variable number of arguments). * src/preproc/grn/main.cpp (doinput): Change return type to `int'. Simplify function and update all callers.
* * src/include/nonposix.h (access) [_MSC_VER]: New macro.wl2005-05-023-2/+7
| | | | | | | | * 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.
* Undo getopt changes from 2004-04-30. We don't want a dependencywl2005-05-026-465/+353
| | | | | | | | | | on gettext. * src/include/getopt_int.h: Removed. * src/include/getopt.h, src/include/groff-getopt.h, src/include/Makefile.sub, src/libs/libgroff/getopt.c, src/libs/libgroff/getopt1.c: Revert to previous version.
* New file.wl2005-04-301-0/+130
|
* AC_TYPE_SIGNAL from current autoconf can fail if CC=g++.wl2005-04-308-357/+352
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * aclocal.m4 (GROFF_TYPE_SIGNAL): New function. * configure.ac: Use GROFF_TYPE_SIGNAL, not AC_TYPE_SIGNAL. * configure, src/include/config.hin: Regenerated. * PROBLEMS: Updated. Update getopt files. * src/include/getopt.h, src/libs/libgroff/getopt.c, src/libs/libgroff/getopt1.c: Updated from GNU libc CVS. * src/include/getopt_int.h: New file (from GNU libc CVS). * src/include/groff-getopt.h: Updated. * src/include/Makefile.sub (HDRS): Add getopt_int.h. * font/devutf8/NOTES: Updated. Bug fix for Win32 relocatable code. Based on a patch from Keith Marshall. * src/libs/libgroff/maxpathname.cpp (PATH_MAX): Test for `_MAX_PATH' also. * src/libs/libgroff/relocate.c (DEBUG): Define it conditionally. (searchpath) [_WIN32]: Use `_fullpath', not `realpath'.
* Implement the rulewl2005-04-271-1/+27
| | | | | | | | | | | position: '(' position ')' in pic. * src/preproc/pic/pic.y (position, position_not_place): Handle additional parentheses. * doc/pic.ms: Updated.
* * src/utils/xtotroff/xtotroff.c (MapFont): Fix variable declaration.wl2005-04-241-1/+2
|
* * src/roff/groff/pipeline.c: Don't include ctype.h.wl2005-04-181-2/+1
|
* * src/roff/nroff/nroff.man: Document option `-M'.wl2005-04-132-5/+14
| | | | * src/roff/nroff/nroff.sh: Make the script accept option `-M'.
* Add binary relocation support for Windows platforms.wl2005-04-0211-38/+388
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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.
* * src/devices/grotty/tty.cpp (glyph): Add width.wl2005-03-281-31/+47
| | | | | | | (tty_printer::make_underline, tty_printer::make_bold, tty_printer::add_character): Add parameter to pass character width. Update all callers. (tty_printer::end_page): Increase hpos by actual character width.
* * src/include/lib.h: Updated.wl2005-03-181-1/+1
|
* * src/libs/libgroff/hypot.c: Renamed to...wl2005-03-182-9/+1
| | | | | | * src/libs/libgroff/hypot.cpp: This. Updated to C++. * src/libs/libgroff/Makefile.sub (CCSRCS, CSRCS): Updated.