[Date Prev][Date Next]
Re: back-bdb and IDL
At 02:53 AM 2001-10-02, Pierangelo Masarati wrote:
>I'm digging into back-bdb; I'd like to know what's the more
>appropriate (and the likely not to change very soon) way
>to determine the number of candidates are returned by
>search_candidates(); at a first glance
>(BDB_IDL_IS_RANGE( candidates ) ? candidates :
>Is this correct and reliable?
no, I think:
#define BDB_IDL_N(ids) (BDB_IDL_IS_RANGE(ids) \
? (ids-ids)+1 : ids )
would return the number of candidates.