MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / lookup

Method lookup

src/jrd/flu.cpp:163–179  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

161
162
163 FPTR_INT Module::lookup(const char* module, const char* name, Database* dbb)
164 {
165 // Try to find loadable module
166 Module m = lookupModule(module);
167 if (! m)
168 {
169 return 0;
170 }
171
172 Firebird::string symbol;
173 terminate_at_space(symbol, name);
174 void* rc = m.lookupSymbol(symbol);
175 if (rc)
176 dbb->registerModule(m);
177
178 return (FPTR_INT)rc;
179 }
180
181 // flag 'udf' means pass name-path through UdfDirectoryList
182 Module Module::lookupModule(const char* name)

Callers 6

getMethod · 0.45
putMethod · 0.45
initMethod · 0.45
~GlobalObjectHolderMethod · 0.45
setSequenceMethod · 0.45
REPL_gen_idFunction · 0.45

Calls 3

terminate_at_spaceFunction · 0.85
lookupSymbolMethod · 0.80
registerModuleMethod · 0.45

Tested by

no test coverage detected