lq-text: LQT_DeleteWordPlaces

API void LQT_DeleteWordPlaces (db, FirstBlock, WID) t_LQTEXT_Database *db; unsigned long FirstBlock; t_WID WID;

Purpose

Deletes the word places from disk for a given WID, marking the corresponding data blocks as unused.

The given FirstBlock argument is the first block in the chain of the linked list of blocks for the given WID. If the data is contained entirely in the WID index block, LQT_Delete­Word­Places should not be called, and this is a fatal error.

LQT_Delete­Word­Places does not remove the WID <--> Word mapping from the wordlist Key Value Database, and does not zero out the information in the widindex block.

Errors

Fatal (E_BUG) error if FirstBlock or WID are zero.

See Also: