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

Function define_rule

v2/engine/rules.c:124–137  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

122 */
123
124static RULE * define_rule( module_t * src_module, OBJECT * rulename,
125 module_t * target_module )
126{
127 RULE * const r = enter_rule( rulename, target_module );
128 if ( r->module != src_module )
129 {
130 /* If the rule was imported from elsewhere, clear it now. */
131 set_rule_body( r, 0 );
132 set_rule_actions( r, 0 );
133 /* r will be executed in the source module. */
134 r->module = src_module;
135 }
136 return r;
137}
138
139
140void rule_free( RULE * r )

Callers 4

global_ruleFunction · 0.85
new_rule_bodyFunction · 0.85
new_rule_actionsFunction · 0.85
import_ruleFunction · 0.85

Calls 3

enter_ruleFunction · 0.85
set_rule_bodyFunction · 0.85
set_rule_actionsFunction · 0.85

Tested by

no test coverage detected