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

Function PC_FindHashedDefine

codemp/botlib/l_precomp.cpp:605–616  ·  view source on GitHub ↗

end of the function PC_AddDefineToHash ============================================================================ Parameter: - Returns: - Changes Globals: - ============================================================================

Source from the content-addressed store, hash-verified

603// Changes Globals: -
604//============================================================================
605define_t *PC_FindHashedDefine(define_t **definehash, char *name)
606{
607 define_t *d;
608 int hash;
609
610 hash = PC_NameHash(name);
611 for (d = definehash[hash]; d; d = d->hashnext)
612 {
613 if (!strcmp(d->name, name)) return d;
614 } //end for
615 return NULL;
616} //end of the function PC_FindHashedDefine
617#endif //DEFINEHASHING
618//============================================================================
619//

Callers 6

PC_Directive_defineFunction · 0.85
PC_Directive_if_defFunction · 0.85
PC_EvaluateTokensFunction · 0.85
PC_EvaluateFunction · 0.85
PC_DollarEvaluateFunction · 0.85
PC_ReadTokenFunction · 0.85

Calls 1

PC_NameHashFunction · 0.85

Tested by

no test coverage detected