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

Function enter_rule

v2/engine/rules.c:100–115  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

98 */
99
100static RULE * enter_rule( OBJECT * rulename, module_t * target_module )
101{
102 int found;
103 RULE * const r = (RULE *)hash_insert( demand_rules( target_module ),
104 rulename, &found );
105 if ( !found )
106 {
107 r->name = object_copy( rulename );
108 r->procedure = 0;
109 r->module = 0;
110 r->actions = 0;
111 r->exported = 0;
112 r->module = target_module;
113 }
114 return r;
115}
116
117
118/*

Callers 2

define_ruleFunction · 0.85
bindruleFunction · 0.85

Calls 3

hash_insertFunction · 0.85
demand_rulesFunction · 0.85
object_copyFunction · 0.85

Tested by

no test coverage detected