MCPcopy Create free account
hub / github.com/boostorg/build / bindmodule

Function bindmodule

src/engine/modules.cpp:27–60  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25
26
27module_t * bindmodule( OBJECT * name )
28{
29 if ( !name )
30 return &root;
31
32 {
33 PROFILE_ENTER( BINDMODULE );
34
35 module_t * m;
36 int found;
37
38 if ( !module_hash )
39 module_hash = hashinit( sizeof( module_t ), "modules" );
40
41 m = (module_t *)hash_insert( module_hash, name, &found );
42 if ( !found )
43 {
44 m->name = object_copy( name );
45 m->variables = 0;
46 m->variable_indices = 0;
47 m->num_fixed_variables = 0;
48 m->fixed_variables = 0;
49 m->rules = 0;
50 m->imported_modules = 0;
51 m->class_module = 0;
52 m->native_rules = 0;
53 m->user_module = 0;
54 }
55
56 PROFILE_EXIT( BINDMODULE );
57
58 return m;
59 }
60}
61
62
63/*

Callers 15

import_base_rulesFunction · 0.85
make_class_moduleFunction · 0.85
var_getFunction · 0.85
variableMethod · 0.85
lookup_ruleFunction · 0.85
builtin_rulenamesFunction · 0.85
builtin_varnamesFunction · 0.85
builtin_delete_moduleFunction · 0.85
builtin_importFunction · 0.85
builtin_exportFunction · 0.85
builtin_import_moduleFunction · 0.85
builtin_imported_modulesFunction · 0.85

Calls 3

hashinitFunction · 0.85
hash_insertFunction · 0.85
object_copyFunction · 0.85

Tested by

no test coverage detected