[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Groff-commit] Changes to //var/cvs/groff

From: wlemb
Subject: [Groff-commit] Changes to //var/cvs/groff
Date: 11 Feb 2003 06:13:39 -0000

Log from commit: 

Update of /var/cvs/groff/src/libs/libdriver
In directory genba:/tmp/cvs-serv10281/src/libs/libdriver

Modified Files: 
Log Message:
Improve error messages for `x F' (and `F') commands.

* src/include/error.h: Add declaration for
* src/libs/libgroff/ Add `current_source_filename'.
* src/libs/libgroff/ (do_error_with_file_and_line): Add
parameter for source file string.
Updated all callers.

* src/libs/libdriver/ Add `current_source_filename'.
(remember_source_filename): New function.
(parse_x_command <'F'>, do_file <'F'>): Use it.

Make grotty not emit warnings about unknown colors more than

* src/devices/grotty/ Include `ptable.h'.
(TTY_MAX_COLORS): Removed.
(DEFAULT_COLOR_IDX): Defined to -1.
(glyph): Change `back_color_idx' and `fore_color_idx' to `char'.
(tty_printer): Change `curr_back_idx' and `curr_fore_idx' to `char'.
Change `tty_colors' to be a ptable.
First arg of `put_color' is now `char'.
New functions `make_rgb_string' and `tty_color'.
(tty_printer::tty_printer): Use `tty_color'.
(tty_printer::color_to_idx): Return value is now `char'.
Use `tty_color'.

* src/include/color.h (color): Add `print_color' member function.
* src/libs/libgroff/ (color::print_color): Implement it.

Valgrind fixes.

* src/devices/grops/ (ps_printer::define_encoding): Close
encoding file.

* src/include/ptable.h (PTABLE::~PTABLE, PTABLE::define): Always
assume that value has been allocated with `new[]', thus use
`a_delete' for deallocation.

* src/libs/libdriver/ (get_integer_arg,
get_possibly_int_args, parse_x_command, do_file): Use `a_delete'
where appropriate.

* src/libs/libgroff/ (delete) [!COOKIE_BUG]: Define.
* src/libs/libgroff/
(character_indexer::named_char_index): Use `new <type>[1]'.

* src/preproc/eqn/ (init_table, do_definition): Use `new
* src/preproc/eqn/ (set_special_char_type): Ditto.
(split_text): Use `a_delete'.

* src/preproc/pic/pic.y (define_label, define_variable): Use `new

* src/roff/troff/ (environment::choose_breakpoint): Avoid
harmless memory leak.
(hyphen_trie::read_patterns_file): Initialize `buf'.
* src/roff/troff/ (troff_output_file::troff_output_file):
Initialize `current_fill_color'and `current_glyph_color'.
* src/roff/troff/
(glyph_to_unicode_init::glyph_to_unicode_init): Use `new <type>[1]'.
* src/roff/troff/
(unicode_decompose_init::unicode_decompose_init): Ditto.
* src/roff/troff/
(unicode_to_glyph_init::unicode_to_glyph_init): Ditto.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]