MCPcopy Create free account
hub / github.com/GJDuck/e9patch / getTokenInfo

Function getTokenInfo

src/e9tool/e9parser.cpp:388–394  ·  view source on GitHub ↗

* Get a token info. */

Source from the content-addressed store, hash-verified

386 * Get a token info.
387 */
388static const TokenInfo *getTokenInfo(const char *name)
389{
390 TokenInfo key = {name, TOKEN_ERROR, 0};
391 const TokenInfo *entry = (const TokenInfo *)bsearch(&key, tokens,
392 sizeof(tokens) / sizeof(tokens[0]), sizeof(tokens[0]), compareName);
393 return entry;
394}
395
396/*
397 * Get the name of a token.

Callers 1

getTokenFromNameMethod · 0.85

Calls 1

bsearchFunction · 0.85

Tested by

no test coverage detected