diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2015-01-10 22:10:51 +0000 |
---|---|---|
committer | Laurent Bercot <ska-skaware@skarnet.org> | 2015-01-10 22:10:51 +0000 |
commit | b7c6bde2b64dcea4e6d272b11dd111b704309f93 (patch) | |
tree | f8451de47974e954856d2e4848428333d7609d8e /src/include | |
parent | 1a83aaeb67d50f321fbf4caf0d402bbacebd6857 (diff) | |
download | skalibs-b7c6bde2b64dcea4e6d272b11dd111b704309f93.tar.xz |
Change gensetdyn_iter to be a boolean. The old behaviour is still
accessible via gensetdyn_iter_nocancel.
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/skalibs/gensetdyn.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/include/skalibs/gensetdyn.h b/src/include/skalibs/gensetdyn.h index 7a1cc47..7cb8f1a 100644 --- a/src/include/skalibs/gensetdyn.h +++ b/src/include/skalibs/gensetdyn.h @@ -36,7 +36,7 @@ extern int gensetdyn_delete (gensetdyn *, unsigned int) ; #define GENSETDYN_P(type, g, i) ((type *)gensetdyn_p(g, i)) extern unsigned int gensetdyn_iter_nocancel (gensetdyn *, unsigned int, iterfunc_t_ref, void *) ; -#define gensetdyn_iter(g, f, stuff) gensetdyn_iter_nocancel(g, (g)->storage.len, f, stuff) +#define gensetdyn_iter(g, f, stuff) (gensetdyn_iter_nocancel(g, (g)->storage.len, f, stuff) == (g)->storage.len) extern int gensetdyn_iter_withcancel (gensetdyn *, iterfunc_t_ref, iterfunc_t_ref, void *) ; #endif |