[Date Prev][Date Next] [Chronological] [Thread] [Top]

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[2] :
>Is this correct and reliable?

no, I think:

#define BDB_IDL_N(ids) (BDB_IDL_IS_RANGE(ids) \
        ? (ids[2]-ids[1])+1 : ids[0] )

would return the number of candidates.