Add const to function definition.
This commit is contained in:
1 parent
138d3fe4eb
commit
2ef2dd1231
1 file changed
+2
-2
@@ -404,7 +404,7 @@
|
||||
} \
|
||||
\
|
||||
static inline M_C3(dict_pair_,name,_t) * \
|
||||
M_C3(dict_, name, _ref)(dict_it_t it) \
|
||||
M_C3(dict_, name, _ref)(const dict_it_t it) \
|
||||
{ \
|
||||
assert(it != NULL); \
|
||||
/* NOTE: partially unsafe if the user modify the 'key'. */ \
|
||||
@@ -1128,7 +1128,7 @@ typedef enum {
|
||||
\
|
||||
/* FIXME: Wrong level of indirection compared to std dict? */ \
|
||||
static inline M_C3(dict_pair_,name,_t) * \
|
||||
M_C3(dict_, name, _ref)(dict_it_t it) \
|
||||
M_C3(dict_, name, _ref)(const dict_it_t it) \
|
||||
{ \
|
||||
assert (it != NULL); \
|
||||
DICTI_OA_CONTRACT (it -> dict); \
|
||||
|
||||
Reference in new issue
Block a user