summaryrefslogtreecommitdiffstatshomepage
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-98/+82
| | | | This is much more efficient.
* Fixed some uninitialised values found during lint check.Kristaps Dzonsons2011-07-121-4/+4
|
* Fairly straightforward patch adding basic update (-u) and remove (-r)Kristaps Dzonsons2011-07-111-17/+153
| | | | | 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-79/+56
| | | | 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-2/+5
|
* Added `Er' in ERRORS scan to makewhatis.Kristaps Dzonsons2011-07-011-2/+16
|
* Added search for `Ev' environment variables in ENVIRONMENT section.Kristaps Dzonsons2011-07-011-2/+16
|
* Allow `Nd' scarfed data to allow for non-text nodes as the first node, as well.Kristaps Dzonsons2011-07-011-22/+21
|
* Make scan for text tokens in a line recursive. This is really only forKristaps Dzonsons2011-07-011-35/+39
| | | | | 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-2/+19
|
* Add cross-reference records to makewhatis.Kristaps Dzonsons2011-06-251-2/+23
|
* Clean up makewhatis.c a little bit and add verbosity (-v).Kristaps Dzonsons2011-06-221-30/+38
|
* Make sure hash is initialised to NULL and remove an unused variable.Kristaps Dzonsons2011-06-221-3/+3
|
* Try again to get the transfer from hash to btree working. This timeKristaps Dzonsons2011-06-221-18/+19
| | | | | | | 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-12/+11
|
* Let descriptions (bit-mask 0x100) also be mined for text. This doublesKristaps Dzonsons2011-06-211-6/+17
| | | | | 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-111/+53
| | | | 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-2/+3
|
* Big change to makewhatis: use an in-memory hashtable to collapseKristaps Dzonsons2011-06-211-130/+184
| | | | | | 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-43/+1
| | | | 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.