ranges: introduce rl_invert(), rl_filter() and rl_intersection()
commit0c412610f0424adf21cf70ec0af4ec0217edf7e6
authorDan Carpenter <dan.carpenter@oracle.com>
Fri, 14 Dec 2012 12:12:46 +0000 (14 15:12 +0300)
committerDan Carpenter <dan.carpenter@oracle.com>
Fri, 14 Dec 2012 12:12:46 +0000 (14 15:12 +0300)
treea6a7d17060919fdca048ee1a7fa69bc533fc2b5f
parent07a68a68e8ad276644d7ae416a127649465c6c48
ranges: introduce rl_invert(), rl_filter() and rl_intersection()

Some new helper functions for manipulating range_lists.  I will use them in
a later patch.

rl_invert() takes a range list and gives you the opposite ranges.
rl_filter() takes two ranges lists and returns everything that is in the
            first but not in the second.
rl_intersection() takes two range lists and returns what ever is in both.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
smatch_extra.h
smatch_ranges.c