]>
git.proxmox.com Git - ceph.git/blob - ceph/src/boost/tools/build/src/engine/modules/set.cpp
1 /* Copyright Vladimir Prus 2003. Distributed under the Boost */
2 /* Software License, Version 1.0. (See accompanying */
3 /* file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) */
13 if ! ( $(element) in $(A) )
15 result += $(element) ;
20 LIST
*set_difference( FRAME
*frame
, int flags
)
23 LIST
* b
= lol_get( frame
->args
, 0 );
24 LIST
* a
= lol_get( frame
->args
, 1 );
27 LISTITER iter
= list_begin( b
), end
= list_end( b
);
28 for( ; iter
!= end
; iter
= list_next( iter
) )
30 if (!list_in(a
, list_item(iter
)))
31 result
= list_push_back(result
, object_copy(list_item(iter
)));
39 const char* args
[] = { "B", "*", ":", "A", "*", 0 };
40 declare_native_rule("set", "difference", args
, set_difference
, 1);