aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/beam/erl_nif.h
diff options
context:
space:
mode:
authorSverker Eriksson <[email protected]>2015-05-27 17:53:59 +0200
committerSverker Eriksson <[email protected]>2015-05-27 17:53:59 +0200
commit951b8c9076cc9a5283483633052587984274b8aa (patch)
tree8b9600004ff4e380347fa17888a82b2a674fb27f /erts/emulator/beam/erl_nif.h
parent50cdb87765cd46e0a809d97f62df28baf8a2c16a (diff)
downloadotp-951b8c9076cc9a5283483633052587984274b8aa.tar.gz
otp-951b8c9076cc9a5283483633052587984274b8aa.tar.bz2
otp-951b8c9076cc9a5283483633052587984274b8aa.zip
erts: Rename ErlNifMapIteratorEntry enums
To differentiate between first/last map entry and head/tail which is before/after first/last map entry.
Diffstat (limited to 'erts/emulator/beam/erl_nif.h')
-rw-r--r--erts/emulator/beam/erl_nif.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/erts/emulator/beam/erl_nif.h b/erts/emulator/beam/erl_nif.h
index c4fdfd4187..af806736fd 100644
--- a/erts/emulator/beam/erl_nif.h
+++ b/erts/emulator/beam/erl_nif.h
@@ -218,8 +218,12 @@ typedef struct /* All fields all internal and may change */
} ErlNifMapIterator;
typedef enum {
- ERL_NIF_MAP_ITERATOR_HEAD = 1,
- ERL_NIF_MAP_ITERATOR_TAIL = 2
+ ERL_NIF_MAP_ITERATOR_FIRST = 1,
+ ERL_NIF_MAP_ITERATOR_LAST = 2,
+
+ /* deprecated synonyms (undocumented in 17 and 18-rc) */
+ ERL_NIF_MAP_ITERATOR_HEAD = ERL_NIF_MAP_ITERATOR_FIRST,
+ ERL_NIF_MAP_ITERATOR_TAIL = ERL_NIF_MAP_ITERATOR_LAST
} ErlNifMapIteratorEntry;
#if (defined(__WIN32__) || defined(_WIN32) || defined(_WIN32_))