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

Function list_equal

src/engine/modules/property-set.cpp:44–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

42}
43
44static int list_equal( LIST * lhs, LIST * rhs )
45{
46 LISTITER lhs_iter, lhs_end, rhs_iter;
47 if ( list_length( lhs ) != list_length( rhs ) )
48 {
49 return 0;
50 }
51 lhs_iter = list_begin( lhs );
52 lhs_end = list_end( lhs );
53 rhs_iter = list_begin( rhs );
54 for ( ; lhs_iter != lhs_end; ++lhs_iter, ++rhs_iter )
55 {
56 if ( ! object_equal( list_item( lhs_iter ), list_item( rhs_iter ) ) )
57 {
58 return 0;
59 }
60 }
61 return 1;
62}
63
64static void ps_map_init( struct ps_map * map )
65{

Callers 1

ps_map_insertFunction · 0.85

Calls 4

list_lengthFunction · 0.85
list_beginFunction · 0.85
list_endFunction · 0.85
object_equalFunction · 0.85

Tested by

no test coverage detected