aboutsummaryrefslogtreecommitdiffstats
path: root/erts/preloaded/src
diff options
context:
space:
mode:
authorBjörn-Egil Dahlberg <[email protected]>2015-11-13 17:41:36 +0100
committerBjörn-Egil Dahlberg <[email protected]>2015-12-07 19:34:56 +0100
commitf6eacb9981b40604a031c9d61967b0c3a3588bdb (patch)
tree68cb49bcc79b486b6fde58c2612655f57807aace /erts/preloaded/src
parent2ae91c3ade0538500ff4dbda29ad539e595f64df (diff)
downloadotp-f6eacb9981b40604a031c9d61967b0c3a3588bdb.tar.gz
otp-f6eacb9981b40604a031c9d61967b0c3a3588bdb.tar.bz2
otp-f6eacb9981b40604a031c9d61967b0c3a3588bdb.zip
erts: Let term_type/1 encompass all types
Diffstat (limited to 'erts/preloaded/src')
-rw-r--r--erts/preloaded/src/erts_internal.erl16
1 files changed, 11 insertions, 5 deletions
diff --git a/erts/preloaded/src/erts_internal.erl b/erts/preloaded/src/erts_internal.erl
index 023af1579f..ce0a6a1d9e 100644
--- a/erts/preloaded/src/erts_internal.erl
+++ b/erts/preloaded/src/erts_internal.erl
@@ -216,11 +216,17 @@ map_to_tuple_keys(_M) ->
erlang:nif_error(undefined).
%% return the internal term type
--spec term_type(M) -> Type when
- M :: term(),
- Type :: 'flatmap' | 'hashmap' | 'hashmap_node' | 'small' | 'big' | 'ifloat' | 'hfloat'.
-
-term_type(_M) ->
+-spec term_type(T) -> Type when
+ T :: term(),
+ Type :: 'flatmap' | 'hashmap' | 'hashmap_node'
+ | 'fixnum' | 'bignum' | 'hfloat'
+ | 'list' | 'tuple' | 'export' | 'fun'
+ | 'refc_binary' | 'heap_binary' | 'sub_binary'
+ | 'reference' | 'external_reference'
+ | 'pid' | 'external_pid' | 'port' | 'external_port'
+ | 'atom' | 'catch' | 'nil'.
+
+term_type(_T) ->
erlang:nif_error(undefined).
%% return the internal hashmap sub-nodes from