<!DOCTYPE File PUBLIC "-//Liam Quin//DTD C API Documentation v1.1//EN" "doc.dtd"><File>
<Entry dir="liblqtext">
<Function File="../../src/liblqtext/wordinfo.c">
<Name>LQT_UpdateWIDMatchCount</Name>
<Class>Database/Update, Database/Words
<Purpose>
Revises the count of the number of occurrences of the given word
held in the WIDindex file.  It is the caller's responsibility to
ensure that this number is the same as the number of matches that
are stored with LQT_WriteWordPlaces before the next call to
LQT_GetWordPlaces.  In particular, reducing the number of occurrences
with this call will not cause word places to be deleted; a fatal
(E_BUG) error will generally be produced on trying to read back a word
with an inconsistent Match Count.
<Errors>
It's a fatal error (E_BUG) if the WID isn't in the index.
</Function>
<Decl>
API void
LQT_UpdateWIDMatchCount(db, WID, AddedThese)
    t_LQTEXT_Database *db;
    t_WID WID;
    unsigned long AddedThese;
</Decl>
</Entry>
