MCPcopy Create free account
hub / github.com/JACoders/OpenJK / KeywordHash_Add

Function KeywordHash_Add

code/ui/ui_shared.cpp:1241–1248  ·  view source on GitHub ↗

================ KeywordHash_Add ================ */

Source from the content-addressed store, hash-verified

1239================
1240*/
1241void KeywordHash_Add(keywordHash_t *table[], keywordHash_t *key)
1242{
1243 int hash;
1244
1245 hash = KeywordHash_Key(key->keyword);
1246 key->next = table[hash];
1247 table[hash] = key;
1248}
1249
1250/*
1251===============

Callers 2

Item_SetupKeywordHashFunction · 0.70
Menu_SetupKeywordHashFunction · 0.70

Calls 1

KeywordHash_KeyFunction · 0.70

Tested by

no test coverage detected