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

Function add_pair

v2/engine/modules/order.c:18–26  ·  view source on GitHub ↗

Use quite klugy approach: when we add order dependency from 'a' to 'b', just * append 'b' to of value of variable 'a'. */

Source from the content-addressed store, hash-verified

16 * append 'b' to of value of variable 'a'.
17 */
18LIST * 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

Callers

nothing calls this directly

Calls 5

lol_getFunction · 0.85
list_beginFunction · 0.85
list_endFunction · 0.85
var_setFunction · 0.85
list_copy_rangeFunction · 0.85

Tested by

no test coverage detected