]> git.sur5r.net Git - openldap/blobdiff - servers/slapd/back-bdb/idl.h
Happy New Year
[openldap] / servers / slapd / back-bdb / idl.h
index a606488337f12beec28df06ee22c4665775f3d5f..9773516b90b51348c69fd0d674a44ba5ec2a6ad1 100644 (file)
@@ -2,7 +2,7 @@
 /* $OpenLDAP$ */
 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
  *
- * Copyright 2000-2013 The OpenLDAP Foundation.
+ * Copyright 2000-2018 The OpenLDAP Foundation.
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
@@ -62,6 +62,7 @@
 #define BDB_IDL_ALL( bdb, ids ) BDB_IDL_RANGE( ids, 1, ((bdb)->bi_lastid) )
 
 #define BDB_IDL_FIRST( ids )   ( (ids)[1] )
+#define BDB_IDL_LLAST( ids )   ( (ids)[(ids)[0]] )
 #define BDB_IDL_LAST( ids )            ( BDB_IDL_IS_RANGE(ids) \
        ? (ids)[2] : (ids)[(ids)[0]] )