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) \ { \