| 1209 | */ |
| 1210 | |
| 1211 | LIST * builtin_export( FRAME * frame, int flags ) |
| 1212 | { |
| 1213 | LIST * const module_list = lol_get( frame->args, 0 ); |
| 1214 | LIST * const rules = lol_get( frame->args, 1 ); |
| 1215 | module_t * const m = bindmodule( list_empty( module_list ) ? 0 : list_front( |
| 1216 | module_list ) ); |
| 1217 | |
| 1218 | LISTITER iter = list_begin( rules ); |
| 1219 | LISTITER const end = list_end( rules ); |
| 1220 | for ( ; iter != end; iter = list_next( iter ) ) |
| 1221 | { |
| 1222 | RULE * r; |
| 1223 | if ( !m->rules || !( r = (RULE *)hash_find( m->rules, list_item( iter ) |
| 1224 | ) ) ) |
| 1225 | unknown_rule( frame, "EXPORT", m, list_item( iter ) ); |
| 1226 | r->exported = 1; |
| 1227 | } |
| 1228 | return L0; |
| 1229 | } |
| 1230 | |
| 1231 | |
| 1232 | /* |
nothing calls this directly
no test coverage detected