• Teodor Sigaev's avatar
    Refactor from Heikki Linnakangas <heikki@enterprisedb.com>: · 57cafe79
    Teodor Sigaev authored
    * Defined new struct WordEntryPosVector that holds a uint16 length and a
    variable size array of WordEntries. This replaces the previous
    convention of a variable size uint16 array, with the first element
    implying the length. WordEntryPosVector has the same layout in memory,
    but is more readable in source code. The POSDATAPTR and POSDATALEN
    macros are still used, though it would now be more readable to access
    the fields in WordEntryPosVector directly.
    
    * Removed needfree field from DocRepresentation. It was always set to false.
    
    * Miscellaneous other commenting and refactoring
    57cafe79
tsvector_op.c 30.5 KB