| 1274 | */ |
| 1275 | |
| 1276 | LIST * builtin_export( FRAME * frame, int flags ) |
| 1277 | { |
| 1278 | LIST * const module_list = lol_get( frame->args, 0 ); |
| 1279 | LIST * const rules = lol_get( frame->args, 1 ); |
| 1280 | module_t * const m = bindmodule( list_empty( module_list ) ? 0 : list_front( |
| 1281 | module_list ) ); |
| 1282 | |
| 1283 | LISTITER iter = list_begin( rules ); |
| 1284 | LISTITER const end = list_end( rules ); |
| 1285 | for ( ; iter != end; iter = list_next( iter ) ) |
| 1286 | { |
| 1287 | RULE * r = nullptr; |
| 1288 | if ( !m->rules || !( r = (RULE *)hash_find( m->rules, list_item( iter ) |
| 1289 | ) ) ) |
| 1290 | { |
| 1291 | unknown_rule( frame, "EXPORT", m, list_item( iter ) ); |
| 1292 | } |
| 1293 | r->exported = 1; |
| 1294 | } |
| 1295 | return L0; |
| 1296 | } |
| 1297 | |
| 1298 | |
| 1299 | /* |
nothing calls this directly
no test coverage detected