CVS log for mandoc/dba.c

[BACK] Up to [cvsweb.bsd.lv] / mandoc

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.10 / (download) - annotate - [select for diffs], Fri Feb 17 14:43:54 2017 UTC (3 years, 5 months ago) by schwarze
Branch: MAIN
CVS Tags: VERSION_1_14_5, VERSION_1_14_4, VERSION_1_14_3, VERSION_1_14_2, VERSION_1_14_1, HEAD
Changes since 1.9: +7 -7 lines
Diff to previous 1.9 (colored)

Improve clarity of some casts;
from Christos Zoulas <christos at NetBSD>.

Revision 1.9 / (download) - annotate - [select for diffs], Sun Jan 15 15:28:55 2017 UTC (3 years, 6 months ago) by schwarze
Branch: MAIN
Changes since 1.8: +131 -63 lines
Diff to previous 1.8 (colored)

When looking up macro values while the macro tables are being built
in makewhatis(8), use ohash rather than linear searches.

This was identified as the main makewhatis(8) performance bottleneck
by Baptiste Daroussin <bapt at FreeBSD>, who also suggested part
of the improved algorithm.

This reduces the run time of "makewhatis /usr/share/man" from eleven
to five seconds on my notebook.  Note that the changed code is not
used in apropos(1), so don't expect speedups there.

While here, sort macro values asciibetically, to improve reproducibility -
which still isn't perfect, but getting better.

Revision 1.8 / (download) - annotate - [select for diffs], Wed Aug 17 20:46:56 2016 UTC (3 years, 11 months ago) by schwarze
Branch: MAIN
Changes since 1.7: +3 -6 lines
Diff to previous 1.7 (colored)

When the content of a manual page does not specify a section, the
empty string got added to the list of sections, breaking the database
format slightly and causing the page to not be considered part of
any section, not even if a section could be deduced from the directory
or from the file name.
Bug found due to the bogus pcredemo(3) "manual" in the pcre-8.38p0 package.

Revision 1.7 / (download) - annotate - [select for diffs], Wed Aug 17 18:59:37 2016 UTC (3 years, 11 months ago) by schwarze
Branch: MAIN
Changes since 1.6: +3 -2 lines
Diff to previous 1.6 (colored)

When reading back a mandoc.db(5) file in order to apply incremental
changes, do not prepend a stray NAME_FILE (0x10) byte to the first
names of pages.
Bug found while investigating another issue reported by sthen@.

Revision 1.6 / (download) - annotate - [select for diffs], Wed Aug 17 18:10:39 2016 UTC (3 years, 11 months ago) by schwarze
Branch: MAIN
Changes since 1.5: +2 -2 lines
Diff to previous 1.5 (colored)

Make sure manuals in architecture-independent directories are treated
as architecture-independent even if they abuse the third (architecture)
argument of the .Dt macro for random stuff like "freetds reference manual".
While the .Dt syntax is not the same as the .TH syntax in man(7),
punishing offenders by treating them as architecture-dependent and
hence completely excluding them from searches is too severe.
Problem reported by sthen@.

Revision 1.5 / (download) - annotate - [select for diffs], Fri Aug 5 23:15:08 2016 UTC (4 years ago) by schwarze
Branch: MAIN
Changes since 1.4: +9 -1 lines
Diff to previous 1.4 (colored)

The concept of endianness seems to be somewhat newfangled, so the
respective conversion functions are not yet properly standardized.
Rumour has it that POSIX is working on it, though.
For now, sprinkle some configuration glue.

Revision 1.4 / (download) - annotate - [select for diffs], Fri Aug 5 21:38:11 2016 UTC (4 years ago) by schwarze
Branch: MAIN
Changes since 1.3: +2 -1 lines
Diff to previous 1.3 (colored)

missing <endian.h> reported by Bapt@iste Daroussin, found on FreeBSD

Revision 1.3 / (download) - annotate - [select for diffs], Fri Jul 29 15:29:32 2016 UTC (4 years ago) by schwarze
Branch: MAIN
Changes since 1.2: +19 -7 lines
Diff to previous 1.2 (colored)

Sort sections and architectures in the pages table.

Revision 1.2 / (download) - annotate - [select for diffs], Fri Jul 29 15:23:57 2016 UTC (4 years ago) by schwarze
Branch: MAIN
Changes since 1.1: +5 -2 lines
Diff to previous 1.1 (colored)

No need to populate the TYPE_arch and TYPE_sec bits, the information
is provided directly to dba_page_add() in dbadd_mlink()
and to dba_page_new() in dbadd().

No need for a dedicated loop for NAME_FILE.
It's done in dbadd_mlink() anyway.

In this context, also record section numbers taken from filenames
and from .Dt and .TH macros, architectures taken from .Dt macros,
and fix the filtering of duplicate filename entries.

Revision 1.1 / (download) - annotate - [select for diffs], Tue Jul 19 21:31:55 2016 UTC (4 years ago) by schwarze
Branch: MAIN

Remove the dependency on SQLite without loss of functionality.
Stop supporting systems that don't have mmap(3).
Drop the obsolete names_check() now that we deleted MLINKS.

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.




CVSweb