From 28620c8cb5738aca43bf464d10c76fbb0e61f6f3 Mon Sep 17 00:00:00 2001 From: Patrick Pelissier Date: Wed, 12 Jul 2017 23:52:13 +0200 Subject: [PATCH] Fix issue: the function dict_oa_it_end was in fact dict_oa_it_last. add function dict_oa_it_end --- m-dict.h | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/m-dict.h b/m-dict.h index 16da9bb0..808847d0 100644 --- a/m-dict.h +++ b/m-dict.h @@ -1063,7 +1063,7 @@ typedef enum { } \ \ static inline void \ - M_C3(dict_, name, _it_end)(dict_it_t it, dict_t d) \ + M_C3(dict_, name, _it_last)(dict_it_t it, dict_t d) \ { \ DICTI_OA_CONTRACT(d); \ assert (it != NULL); \ @@ -1077,6 +1077,15 @@ typedef enum { it->index = i; \ } \ \ + static inline void \ + M_C3(dict_, name, _it_end)(dict_it_t it, dict_t d) \ + { \ + DICTI_OA_CONTRACT(d); \ + assert (it != NULL); \ + it->dict = d; \ + it->index = d->mask+1; \ + } \ + \ static inline bool \ M_C3(dict_, name, _end_p)(const dict_it_t it) \ { \