From ce6a7f6cb31bc76102d1ef8a2c5ac92f8528563c Mon Sep 17 00:00:00 2001 From: Patrick Pelissier Date: Fri, 15 Mar 2019 07:44:58 +0100 Subject: [PATCH] Add missing _it_end for normal dict & export it for both dict --- m-dict.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/m-dict.h b/m-dict.h index 09a1a69a..569662bb 100644 --- a/m-dict.h +++ b/m-dict.h @@ -519,6 +519,13 @@ M_C(name, _list_pair_it_set)(it->list_it, ref->list_it); \ } \ \ + static inline void \ + M_C(name, _it_end)(dict_it_t it, const dict_t d) \ + { \ + DICTI_CONTRACT(name, d); \ + M_C(name, _array_list_pair_it_end)(it->array_it, d->table); \ + } \ + \ static inline bool \ M_C(name, _end_p)(const dict_it_t it) \ { \ @@ -829,6 +836,7 @@ IT_TYPE(M_C(name, _it_t)), \ IT_FIRST(M_C(name,_it)), \ IT_SET(M_C(name, _it_set)), \ + IT_END(M_C(name,_it_end)), \ IT_END_P(M_C(name,_end_p)), \ IT_LAST_P(M_C(name,_last_p)), \ IT_NEXT(M_C(name,_next)), \ @@ -880,6 +888,7 @@ IT_TYPE(M_C(name, _it_t)), \ IT_FIRST(M_C(name,_it)), \ IT_SET(M_C(name, _it_set)), \ + IT_END(M_C(name,_it_end)), \ IT_END_P(M_C(name,_end_p)), \ IT_LAST_P(M_C(name,_last_p)), \ IT_NEXT(M_C(name,_next)), \