di-set: provide a lookup method
authorJim Meyering <meyering@redhat.com>
Mon, 7 Feb 2011 14:46:09 +0000 (15:46 +0100)
committerJim Meyering <meyering@redhat.com>
Mon, 7 Feb 2011 14:50:44 +0000 (15:50 +0100)
commitb9fc790ddc0db2522b0d20d08fd2b8d40ef0fa4e
tree96b967b3a0e5ca208933a97494fee2dd142c4855
parent2e636af1ef3f6a5ef872bdd2297dd25198c69395
di-set: provide a lookup method

This is required for patch, and hence is about to move to gnulib.
* gl/lib/di-set.c (di_set_lookup): New function.
* gl/lib/di-set.h: Declare it.
* gl/tests/test-di-set.c (main): Exercise it.

The bug was introduced on 2004-12-04 via commit 7380cf79.
gl/lib/di-set.c
gl/lib/di-set.h
gl/tests/test-di-set.c