/* Hash function used by ScanKeywordLookup */ typedefint (*ScanKeywordHashFunc) (constvoid *key, size_t keylen);
/* *ThisstructcontainsthedataneededbyScanKeywordLookuptoperforma *searchwithinasetofkeywords.Thecontentsaretypicallygeneratedby *src/tools/gen_keywordlist.plfromaheadercontainingPG_KEYWORDmacros.
*/ typedefstruct ScanKeywordList
{ constchar *kw_string; /* all keywords in order, separated by \0 */ const uint16 *kw_offsets; /* offsets to the start of each keyword */
ScanKeywordHashFunc hash; /* perfect hash function for keywords */ int num_keywords; /* number of keywords */ int max_kw_len; /* length of longest keyword */
} ScanKeywordList;
/* Code that wants to retrieve the text of the N'th keyword should use this. */ staticinlineconstchar *
GetScanKeyword(int n, const ScanKeywordList *keywords)
{ return keywords->kw_string + keywords->kw_offsets[n];
}
#endif/* KWLOOKUP_H */
Messung V0.5 in Prozent
¤ Dauer der Verarbeitung: 0.16 Sekunden
(vorverarbeitet am 2026-08-08)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.