aboutsummaryrefslogtreecommitdiffstats
path: root/erts/preloaded
diff options
context:
space:
mode:
authorBjörn-Egil Dahlberg <[email protected]>2014-05-09 18:32:05 +0200
committerBjörn-Egil Dahlberg <[email protected]>2014-05-09 18:32:05 +0200
commit5b62ab3db6292a731fccfc31eafec7e9fb0906df (patch)
tree9f9efcdbeecce90b561a3ec1c5949c94acfa215e /erts/preloaded
parent7059845da597df041dc74f5d2f5efdc534a4af5a (diff)
downloadotp-5b62ab3db6292a731fccfc31eafec7e9fb0906df.tar.gz
otp-5b62ab3db6292a731fccfc31eafec7e9fb0906df.tar.bz2
otp-5b62ab3db6292a731fccfc31eafec7e9fb0906df.zip
erts: Add spec for erts_internal:map_to_tuple_keys/1
Diffstat (limited to 'erts/preloaded')
-rw-r--r--erts/preloaded/src/erts_internal.erl9
1 files changed, 9 insertions, 0 deletions
diff --git a/erts/preloaded/src/erts_internal.erl b/erts/preloaded/src/erts_internal.erl
index edcd50c77e..764d7730aa 100644
--- a/erts/preloaded/src/erts_internal.erl
+++ b/erts/preloaded/src/erts_internal.erl
@@ -31,6 +31,7 @@
-export([await_port_send_result/3]).
-export([binary_to_term/1, binary_to_term/2]).
-export([cmp_term/2]).
+-export([map_to_tuple_keys/1]).
-export([port_command/3, port_connect/2, port_close/1,
port_control/3, port_call/3, port_info/1, port_info/2]).
@@ -181,3 +182,11 @@ binary_to_term(_Binary, _Opts) ->
cmp_term(_A,_B) ->
erlang:nif_error(undefined).
+
+%% return the internal key tuple for map keys
+-spec map_to_tuple_keys(M) -> Keys when
+ M :: map(),
+ Keys :: tuple().
+
+map_to_tuple_keys(_M) ->
+ erlang:nif_error(undefined).