| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
|
|
|
|
| |
Rename class `constant_int_reg` to `readonly_register`. Say "readonly"
instead of "const" to try to avoid confusion with C++ constness. Drop
"int" because integer-valued registers are the norm, not the exception.
* src/roff/troff/column.cpp (init_column_requests):
* src/roff/troff/div.cpp (init_div_requests):
* src/roff/troff/input.cpp (top level, init_input_requests):
* src/roff/troff/node.cpp (init_node_requests):
* src/roff/troff/reg.h: Do it.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Rename `number_reg_dictionary` to `register_dictionary`. It's shorter
_and_ non-abbreviated _and_ matches our documentation.
* src/roff/troff/column.cpp (init_column_requests):
* src/roff/troff/div.cpp (page_number, init_div_requests):
* src/roff/troff/env.cpp (print_env, init_env_requests)
(init_hyphen_requests):
* src/roff/troff/input.cpp (length_request, interpolate_number_format)
(do_register, do_if_request, main, init_registers)
(init_input_requests):
* src/roff/troff/node.cpp (get_register, init_node_requests):
* src/roff/troff/reg.cpp (top level, define_number_reg
(inline_define_reg, alter_format, remove_reg, alias_reg, rename_reg)
(print_number_regs):
* src/roff/troff/reg.h: Do it.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
... for the `delete` operator. It has been rendered unnecessary by the
removal of support for ancient C++ compilers.
* src/include/lib.h (a_delete): Drop symbol definition.
* src/devices/grohtml/output.cpp (word::~word):
* src/devices/grohtml/post-html.cpp (char_block::char_block,
assert_state::~assert_state, assert_state::add,
assert_state::close, replace_negate_str):
* src/devices/grops/ps.cpp (ps_font::ps_font,
subencoding::subencoding, ps_printer::define_encoding,
ps_printer::encode_fonts):
* src/devices/grops/psrm.cpp (resource_manager::document_setup,
resource_manager::supply_resource):
* src/devices/grotty/tty.cpp (tty_printer::tty_color,
tty_printer::tty_printer, tty_printer::color_to_idx,
tty_printer::add_char):
* src/include/itable.h (ITABLE(T)::~ITABLE(T),
ITABLE(T)::define):
* src/include/ptable.h (PTABLE(T)::~PTABLE(T),
PTABLE(T)::define):
* src/libs/libbib/index.cpp
(index_search_item::~index_search_item, make_index_search_item,
index_search_item_iterator::index_search_item_iterator,
index_search_item::get_tag, index_search_item::munge_filename,
index_search_item::search):
* src/libs/libbib/linear.cpp (bmpattern::~bmpattern,
file_buffer::file_buffer, file_buffer::load,
linear_searcher::linear_searcher,
linear_searcher::~linear_searcher):
* src/libs/libbib/search.cpp
(search_list_iterator::search_list_iterator,
search_item::search_item):
* src/libs/libdriver/input.cpp (IntArray::~IntArray,
IntArray::append, StringBuf::~StringBuf, StringBuf::append,
get_integer_arg, parse_x_command, do_file):
* src/libs/libdriver/printer.cpp (printer::printer,
printer::load_font, text_file::~text_file, text_file::next,
font::~font, font_widths_cache::~font_widths_cache,
font:alloc_ch_index, font::extend_ch, font::compact,
font::load_desc):
* src/libs/libgroff/fontfile.cpp (font::open_file):
* src/libs/libgroff/relocate.cpp (searchpath, searchpathext,
set_current_prefix):
* src/libs/libgroff/searchpath.cpp (search_path::search_path,
search_path::command_line_dir, search_path::open_file,
search_path::open_file_cautious):
* src/libs/libgroff/string.cpp (sfree, srealloc,
string::remove_spaces):
* src/libs/libgroff/symbol.cpp (symbol::symbol, concat):
* src/libs/libgroff/tmpfile.cpp (temp_init::temp_init,
xtmpfile_list_init::~xtmpfile_list_init, xtmpfile):
* src/preproc/eqn/box.cpp (set_gfont, set_grfont, set_gbfont,
box_list::append, box_list::~box_list):
* src/preproc/eqn/delim.cpp (make_delim_box,
delim_box::~delim_box):
* src/preproc/eqn/eqn.ypp (number):
* src/preproc/eqn/lex.ypp (file_input::~file_input,
argument_macro_input::~argument_macro_input):
* src/preproc/eqn/pile.ypp (matrix_box::~matrix_box,
matrix_box::append):
* src/preproc/eqn/special.cpp (special_box::~special_box):
* src/preproc/eqn/text.ypp (set_char_type):
* src/preproc/html/pre-html.cpp (get_line, scanArguments):
* src/preproc/pic/object.cpp (output::~output,
output::set_args, text_item::~text_item,
object_spec::~object_spec, command_object::~command_object,
line_object::~line_object):
* src/preproc/pic/pic.ypp (placeless_element, reset_variables,
print_args, text_expr, object_spec, text, sprintf_args, path):
* src/preproc/refer/command.cpp (input_item::~input_item,
input_item::peek_char):
* src/preproc/refer/label.ypp (lookup_label):
* src/preproc/refer/refer.cpp (store_citation, store_reference):
* src/preproc/tbl/main.cpp (format::add_rows, format::~format):
* src/preproc/tbl/table.cpp (block_entry::~block_entry,
table::~table, table::allocate):
* src/roff/groff/groff.cpp (possible_command::~possible_command,
possible_command::clear_name):
* src/roff/troff/column.cpp
(justification_spec::~justification_spec,
justification_spec::append):
* src/roff/troff/dictionary.cpp (dictionary::lookup):
* src/roff/troff/env.cpp (override_sizes, tab_stops::to_string,
hyphen_word, hyphen_trie::insert_hyphenation):
* src/roff/troff/input.cpp (read_long_escape_name, token::next,
do_get_long_name, temp_iterator::~temp_iterator, get_delim_name,
pipe_source, read_string, pipe_output, system_request,
open_mac_file, do_macro_source, do_register_assignment,
do_string_assignment, read_draw_node, copy_mode_error):
* src/roff/troff/node.cpp (troff_output_file::set_font,
troff_output_file::~troff_output_file, draw_node::is_tag,
grow_font_table, font_family::~font_family,
font_family::make_definite):
* src/utils/hpftodit/hpftodit.cpp (name_list::~name_list,
read_map):
* src/utils/indxbib/indxbib.cpp (main, get_cwd):
* src/utils/tfmtodit/tfmtodit.cpp (tfm::~tfm, tfm::load): Port
uses of `a_delete(xxx)` to `delete[]`.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Make the source code slightly more accessible by using a `bool` type for
a function's default parameter used as a Boolean, and comment it at call
sites where the default is overridden.
See also commit d56e0f1d, 25 June.
* src/roff/troff/token.h (get_name, get_long_name): Change type of
parameter from `int` to `bool` and default from 0 to `false`.
* src/roff/troff/input.cpp (do_get_long_name, empty_name_warning,
get_name, get_long_name): Change type of parameter from `int` to
`bool` in declarations and definitions.
* src/roff/troff/column.cpp (column_justify):
* src/roff/troff/div.cpp (diversion_trap):
* src/roff/troff/env.cpp (environment_switch, environment_copy,
do_input_trap, set_hyphenation_language,
do_hyphenation_patterns_file):
* src/roff/troff/input.cpp (define_color, composite_request,
do_define_string, do_define_macro, rename_macro, alias_macro,
chop_macro, do_string_case_transform, substring_request,
length_request, asciify_macro, unformat_macro, do_register,
device_macro_request, do_if_request, do_source, ps_bbox_request,
do_open, close_request, do_write_request, write_macro_request,
define_class, copy_file, vjustify, transparent_file, do_macro_source):
* src/roff/troff/node.cpp (font_translate, font_position, style,
get_fontno):
* src/roff/troff/reg.cpp (define_number_reg, inline_define_reg,
alter_format, alias_reg, rename_reg): Update call sites. Add comment
indicating meaning of parameter.
|
| |
|
|
|
|
|
|
| |
* update-copyright.sh: use gnulib's 'update-copyright' script. Pass
this script in directories 'arch', 'contrib', 'font', 'man', 'tmac',
'src' and on a list of extra files.
* FOR-RELEASE: mention this point.
|
| |
|
|
|
|
| |
This reverts commit a2e955e07354c83939fabffebcf720d3333d1f6b.
Some files (COPYING, FDL, bootstrap) should not have been updated
|
| |
|
|
|
|
|
|
| |
Use gnulib's update-copyright script.
* src/roff/groff/groff.cpp: update the printf displayed when 'groff -v' is invoked.
* FOR-RELEASE: mention this point.
|
| | |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Fixes half of Savannah #51609 but applies it much more generally.
This is a wide-ranging change, but it makes these notices consistent
with modern copies of the GPLv3 text. (Some of these files are not
GPLv3, but that's where the boilerplate comes from; GPLv2 and LGPLv2.x
used semicolons to separate these clauses instead.)
If the next resync with Autotools regresses some of these, well, that's
a bug in Autotools.
I checked with wc -L, and no file grew its longest line to 81 characters
due to this change.
contrib/hdtbl/hdmisc.tmac-u only:
Signed-off-by: Bjarni Ingi Gislason <bjarniig@rhi.hi.is>
Blame me for the rest.
Signed-off-by: G. Branden Robinson <g.branden.robinson@gmail.com>
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* src/roff/troff/div.h: Include `mtsm.h'.
(diversion): New variables `any_chars_added', `needs_push',
`saved_seen_break', `saved_seen_space', `saved_seen_eol',
`saved_suppress_next_eol', `modified_tag'.
New virtual member function `is_diversion'. Update all descendants.
* src/roff/troff/div.cpp (diversion::diversion,
macro_diversion::macro_diversion): Updated.
(do_divert): Handle `seen_break', `seen_space', `seen_eol',
`suppress_next_eol'.
(top_level_diversion::space): Handle `curenv->seen_space'.
(page_offset): Update tag handling.
(space_request, blank_line, flush_output): Don't call `add_html_tag'.
* src/roff/troff/env.h (environment): Make `tabs' public.
Remove `ignore_next_eol', `emitted_node'.
Update `output_line', `output'.
New variables `seen_space', `seen_eol', `suppress_next_eol',
`seen_break'.
New member functions `construct_state', `make_tag',
`construct_format_state, `construct_new_line_state,
`dump_troff_state'.
Remove `add_html_tag', `make_html_tag'.
* src/roff/troff/env.cpp: New externs `suppress_push',
`get_diversion_state', `global_diverted_space'.
(pending_output_line): New variable `was_centered'.
Update constructor and all callers.
(pending_output_line::output): Call `curenv->construct_format_state'.
(environment::environment, environment::copy): Updated.
(environment::output): Handle `was_centered'.
(environment::add_char): Handle construct and diversion state.
(environment::add_node): Handle construct state.
(environment::newline): Handle `was_centered'.
(environment::output_line): Updated.
(environment::possibly_break_line): Updated.
Update tag handling.
(environment::add_html_tag): Replaced with...
(environment::make_tag): New function.
(environment::add_html_tag_tabs, environment::make_html_tag): Removed.
(environment::dump_troff_state): New debugging function.
(environment::construct_state, environment::construct_format_state,
environment::construct_new_line_state): New functions.
(environment::do_break): Updated.
Handle `global_diverted_space'.
(environment::handle_tag): Update tag handling.
(point_size, fill, do_break_request): Don't call `add_html_tag'.
(no_fill): Don't call `add_html_tag'.
Set `suppress_next_eol'.
(center, right_justify, line_length, indent, temporary_indent,
set_tabs):
Update tag handling.
* src/roff/troff/input.cpp: Don't include `stringclass.h'.
(input_iterator): New variables `is_diversion', `diversion_state'.
Update constructors.
(input_stack): New member functions `get_div_level',
`get_diversion_state', `check_end_diversion'.
New variables `div_level', `diversion_state'. Initialize them.
(suppress_push, global_diverted_space): New global variables.
(input_stack::finish_get, input_stack::finish_peek,
input_stack::remove_boundary, input_stack::end_file,
input_stack::clear, input_stack::pop_macro): Call
`check_end_diversion'.
(input_stack::push): Handle `div_level' and `diversion_state'.
(get_diversion_state): New function.
(diverted_space_node::reread): Handle `global_diverted_space'.
(macro::macro): Update constructors.
(macro::is_diversion): New function.
(macro::operator=): Set `is_a_diversion'.
(string_iterator): New member function `is_diversion'.
(string_iterator::string_iterator): Update constructors.
(string_iterator::fill): Set `div_nest_level'.
(macro_iterator): New member function `is_diversion'.
(do_if_request): Handle `suppress_push'.
(tag, taga): New functions.
(init_input_requests): Add `tag' and `taga' requests.
|
|
|
Updated all configuration files, makefiles, and documentation.
|