summaryrefslogtreecommitdiffstats
path: root/makewhatis.c
Commit message (Collapse)AuthorAgeFilesLines
* Apparently these weren't removed properly...Kristaps Dzonsons2011-07-141-1105/+0
|
* Re-ordered logic in makewhatis to iterate over the index file only once.Kristaps Dzonsons2011-07-121-97/+81
| | | | This is much more efficient.
* Fixed some uninitialised values found during lint check.Kristaps Dzonsons2011-07-121-3/+3
|
* Fairly straightforward patch adding basic update (-u) and remove (-r)Kristaps Dzonsons2011-07-111-16/+152
| | | | | functionality to makewhatis. This is somewhat expensive (requiring the index file to be trawled multiple times), but it's a good start.
* Don't use a temporary buffer (unless people yell to have it back in),Kristaps Dzonsons2011-07-111-78/+55
| | | | and clean up the parse process a bit. No big changes.
* Have descriptions for -man documents in makewhatis be properly collected.Kristaps Dzonsons2011-07-101-1/+4
|
* Added `Er' in ERRORS scan to makewhatis.Kristaps Dzonsons2011-07-011-1/+15
|
* Added search for `Ev' environment variables in ENVIRONMENT section.Kristaps Dzonsons2011-07-011-1/+15
|
* Allow `Nd' scarfed data to allow for non-text nodes as the first node, as well.Kristaps Dzonsons2011-07-011-21/+20
|
* Make scan for text tokens in a line recursive. This is really only forKristaps Dzonsons2011-07-011-34/+38
| | | | | the benefit of `Nd', which is the only [to date] node that can consist of sub-nodes.
* Add path reference (`Pa' in FILES section).Kristaps Dzonsons2011-07-011-1/+18
|
* Add cross-reference records to makewhatis.Kristaps Dzonsons2011-06-251-1/+22
|
* Clean up makewhatis.c a little bit and add verbosity (-v).Kristaps Dzonsons2011-06-221-29/+37
|
* Make sure hash is initialised to NULL and remove an unused variable.Kristaps Dzonsons2011-06-221-2/+2
|
* Try again to get the transfer from hash to btree working. This timeKristaps Dzonsons2011-06-221-17/+18
| | | | | | | just closing and re-opening the database, as deleting records with (*hash->del) either in the scan loop or after it causes uncertain behaviour (left-over keys, mystery keys, etc.). This finally does the Right Thing (tm).
* Fix broken transfer from hashtable to btree for makewhatis.c.Kristaps Dzonsons2011-06-211-11/+10
|
* Let descriptions (bit-mask 0x100) also be mined for text. This doublesKristaps Dzonsons2011-06-211-5/+16
| | | | | the database size (one record for each file), but it's critical information.
* Have descriptions also use struct buf. This completes the internalKristaps Dzonsons2011-06-211-110/+52
| | | | migration to in-memory hashing and passing buffers instead of DBTs.
* Don't let empty strings into the makewhatis keyword database.Kristaps Dzonsons2011-06-211-1/+2
|
* Big change to makewhatis: use an in-memory hashtable to collapseKristaps Dzonsons2011-06-211-129/+183
| | | | | | multiple types of the same name (e.g., "foo" being a manual name, utility name, etc.) into a single bitmask'd region. This considerably reduces the size of the keyword database.
* Get rid of an "#if 0" that I don't anticipate being fixed ever (nor doesKristaps Dzonsons2011-05-151-42/+0
| | | | it really need to be fixed, anyway).
* Rename mandoc-db to makewhatis. On the suggestion of schwarze@; I agree.Kristaps Dzonsons2011-05-131-0/+962
Add initial version notes.