lp:man-db

Created by Colin Watson on 2014-02-08 and last modified on 2019-02-05
Get this branch:
bzr branch lp:man-db

Branch merges

Related bugs

Related blueprints

Branch information

Owner:
Colin Watson
Project:
man-db
Status:
Mature

Import details

Import Status: Reviewed

This branch is an import of the HEAD branch of the Git repository at git://git.sv.gnu.org/man-db.git.

The next import is scheduled to run in 2 hours.

Last successful import was 3 hours ago.

Import started 3 hours ago on alnitak and finished 3 hours ago taking 20 seconds — see the log
Import started 9 hours ago on alnitak and finished 9 hours ago taking 15 seconds — see the log
Import started 15 hours ago on alnitak and finished 15 hours ago taking 15 seconds — see the log
Import started 21 hours ago on alnitak and finished 21 hours ago taking 20 seconds — see the log
Import started on 2019-02-19 on izar and finished on 2019-02-19 taking 15 seconds — see the log
Import started on 2019-02-19 on alnitak and finished on 2019-02-19 taking 20 seconds — see the log
Import started on 2019-02-19 on izar and finished on 2019-02-19 taking 15 seconds — see the log
Import started on 2019-02-19 on izar and finished on 2019-02-19 taking 15 seconds — see the log
Import started on 2019-02-18 on izar and finished on 2019-02-18 taking 20 seconds — see the log
Import started on 2019-02-18 on alnitak and finished on 2019-02-18 taking 20 seconds — see the log

Recent revisions

1884. By Colin Watson on 2019-02-05

Add some missing entries to lib/README

* lib/README: Add glcontainers.*, orderfiles.*, and sandbox.*.

1883. By Colin Watson on 2019-02-05

Remove pipeline.* from lib/README

It's been a separate library since 2010.

* lib/README: Remove pipeline.*.

1882. By Colin Watson on 2019-02-05

Inline lower into name_to_key

With only one remaining user, it wasn't pulling its weight.

* libdb/db_lookup.c (name_to_key): Inline the implementation of lower.
* lib/Makefile.am (libman_la_SOURCES): Remove lower.c and lower.h.
* lib/README: Remove lower.*.
* lib/lower.c, lib/lower.h: Remove.

1881. By Colin Watson on 2019-02-05

Simplify case-insensitivity in word_fnmatch

Using FNM_CASEFOLD saves us from having to lower-case the pattern
manually, and it also fixes the behaviour of "apropos -w" when given a
non-lower-case pattern.

* lib/wordfnmatch.c (word_fnmatch): Use isalpha and FNM_CASEFOLD rather
than manually lower-casing string or expecting pattern to have already
been lower-cased.
* NEWS: Document this.

1880. By Colin Watson on 2019-02-05

Simplify case-insensitive comparisons in whatis

We can just use strcasecmp and similar functions rather than
lower-casing comparands manually.

In some corner cases this may result in matches that would not
previously have been returned (e.g. "whatis -w" with a non-lower-case
pattern).

* src/whatis.c (parse_name): Use strcasecmp and FNM_CASEFOLD rather than
manually lower-casing dbname or expecting pages to have already been
lower-cased.
(match): Use strcasestr and isalpha rather than manually lower-casing
whatis or expecting page to have already been lower-cased.
(parse_whatis): Remove lowpages parameter; pass pages directly to match
instead.
(do_apropos): Remove lowpages; parse_name and parse_whatis no longer
need it.

1879. By Colin Watson on 2019-02-04

Import Gnulib's strcase module

We're already using strcasecmp and strncasecmp.

* bootstrap.conf (gnulib_modules): Add strcase.

1878. By Colin Watson on 2019-02-04

Add missing #include

* src/straycats.c: Include <stdbool.h>.

1877. By Colin Watson on 2019-02-04

Use bool for boolean command-line options

* include/manconfig.h.in (debug_level): Change type to bool. Update all
definitions and users.
* lib/encodings.c (get_roff_encoding): Change type of "found" to bool.
* libdb/db_lookup.c (dblookup_all, dblookup_exact): Change "match_case"
parameter type to bool. Update all callers.
(dblookup_pattern): Change "match_case", "pattern_regex", and
"try_descriptions" parameter types to bool. Update all callers.
* libdb/db_storage.h (dblookup_all, dblookup_exact, dblookup_pattern):
Update prototypes.

* src/descriptions_store.c (store_descriptions): Change types of
"found_real_page" and "found_external" to bool.
* src/lexgrog_test.c (main): Change types of "some_failed" and "found"
to bool.
* src/man.c (parse_opt): Change types of "apropos" and "whatis" to bool.
(add_roff_line_length): Change "save_cat_p" parameter type to bool *.
Update all callers.
(make_browser): Change "found_percent_s" type to bool.
(display): Change "display_to_stdout" type to bool.
(try_db): Change "found_stale" type to bool.
(local_man_loop): Change "local_mf" type to bool.
(main): Change "found_subpage" type to bool.
* src/manp.c (read_config_file): Change "optional" parameter type to
bool. Update all callers.
* src/manp.h (read_config_file): Update prototype.

* src/check_mandirs.c (opt_test, force_rescan): Change types to bool.
Update all users.
* src/globbing_test.c (match_case, regex_opt, wildcard): Likewise.
* src/lexgrog_test.c (parse_man, parse_cat, show_whatis, show_filters):
Likewise.
* src/man.c (disable_cache, troff, global_apropos, print_where,
print_where_cat, catman, local_man_file, findall, update, match_case,
regex_opt, wildcard, names_only, no_hyphenation, no_justification,
subpages, ascii, save_cat, ditroff, htmlout): Likewise.
* src/mandb.c (opt_test, force_rescan, check_for_strays, purge, user,
create): Likewise.
* src/manp.c (disable_cache): Likewise.
* src/manpath.c (cat, global): Likewise.
* src/whatis.c (am_apropos, regex_opt, exact, wildcard, require_all,
long_output): Likewise.

1876. By Colin Watson on 2019-02-04

Port roff_warnings to gl_list

* src/man.c (struct string_llist): Remove.
(parse_opt, make_roff_command): Convert roff_warnings to gl_list.
(main): Initialise roff_warnings.

1875. By Colin Watson on 2019-02-04

Port parse_descriptions to gl_list

* src/descriptions.c (free_descriptions): Rename to ...
(page_description_free): ... this. Adjust for gl_list's expected
interface.
(parse_descriptions): Convert to gl_list. Return a zero-length list if
whatis is NULL, where previously we returned NULL.
* src/descriptions_store.c (store_descriptions): Convert descs to
gl_list.
* src/descriptions.h (struct page_description): Remove next member.
(parse_descriptions, store_descriptions): Update prototypes.
(free_descriptions): Remove prototype.
* src/lexgrog_test.c (main): Convert descs to gl_list.
* src/straycats.c (check_for_stray): Likewise. Remove conditional,
since parse_descriptions now never returns NULL.

Branch metadata

Branch format:
Branch format 7
Repository format:
Bazaar repository format 2a (needs bzr 1.16 or later)
This branch contains Public information 
Everyone can see this information.

Subscribers