Use quite klugy approach: when we add order dependency from 'a' to 'b', just * append 'b' to of value of variable 'a'. */
| 16 | * append 'b' to of value of variable 'a'. |
| 17 | */ |
| 18 | LIST * add_pair( FRAME * frame, int flags ) |
| 19 | { |
| 20 | LIST * arg = lol_get( frame->args, 0 ); |
| 21 | LISTITER iter = list_begin( arg ); |
| 22 | LISTITER const end = list_end( arg ); |
| 23 | var_set( frame->module, list_item( iter ), list_copy_range( arg, list_next( |
| 24 | iter ), end ), VAR_APPEND ); |
| 25 | return L0; |
| 26 | } |
| 27 | |
| 28 | |
| 29 | /* Given a list and a value, returns position of that value in the list, or -1 |
nothing calls this directly
no test coverage detected