| 122 | */ |
| 123 | |
| 124 | static 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 | |
| 140 | void rule_free( RULE * r ) |
no test coverage detected