/*********************************************** !!!! DO NOT EDIT THIS FILE !!!! This file was auto-generated by Build.PL from lib/KinoSearch/Index/TermInfo.pm See KinoSearch::Docs::DevGuide for details. ***********************************************/ #line 149 "lib/KinoSearch/Index/TermInfo.pm" #include "KinoSearchIndexTermInfo.h" TermInfo* Kino_TInfo_new() { TermInfo* tinfo; Kino_New(0, tinfo, 1, TermInfo); Kino_TInfo_reset(tinfo); return tinfo; } /* Allocate and return a copy of the supplied TermInfo. */ TermInfo* Kino_TInfo_dupe(TermInfo *tinfo) { TermInfo* new_tinfo; Kino_New(0, new_tinfo, 1, TermInfo); new_tinfo->doc_freq = tinfo->doc_freq; new_tinfo->frq_fileptr = tinfo->frq_fileptr; new_tinfo->prx_fileptr = tinfo->prx_fileptr; new_tinfo->skip_offset = tinfo->skip_offset; new_tinfo->index_fileptr = tinfo->index_fileptr; return new_tinfo; } void Kino_TInfo_reset(TermInfo *tinfo) { tinfo->doc_freq = 0; tinfo->frq_fileptr = 0.0; tinfo->prx_fileptr = 0.0; tinfo->skip_offset = 0; tinfo->index_fileptr = 0.0; } void Kino_TInfo_destroy(TermInfo *tinfo) { Kino_Safefree(tinfo); }