diff options
author | Björn-Egil Dahlberg <[email protected]> | 2014-06-16 15:54:58 +0200 |
---|---|---|
committer | Björn-Egil Dahlberg <[email protected]> | 2014-08-22 18:59:12 +0200 |
commit | 021c3366c2857f0f8ac040a3a37c606dc9c8d96c (patch) | |
tree | f3e53242a773e39c0a3faade613fccb5002990d8 /lib | |
parent | 7cd4ac96cb8e8bef78c6eebfadb2e9590f88055d (diff) | |
download | otp-021c3366c2857f0f8ac040a3a37c606dc9c8d96c.tar.gz otp-021c3366c2857f0f8ac040a3a37c606dc9c8d96c.tar.bz2 otp-021c3366c2857f0f8ac040a3a37c606dc9c8d96c.zip |
stdlib: Auto-import erlang:get_keys/0
Diffstat (limited to 'lib')
-rw-r--r-- | lib/kernel/test/pdict_SUITE.erl | 6 | ||||
-rw-r--r-- | lib/stdlib/src/erl_internal.erl | 1 |
2 files changed, 4 insertions, 3 deletions
diff --git a/lib/kernel/test/pdict_SUITE.erl b/lib/kernel/test/pdict_SUITE.erl index a70e9b4704..4b60beb9dc 100644 --- a/lib/kernel/test/pdict_SUITE.erl +++ b/lib/kernel/test/pdict_SUITE.erl @@ -118,7 +118,7 @@ complicated(Config) when is_list(Config) -> ok = match_keys(get()), comp_4(get()), [] = get(), - [] = erlang:get_keys(), + [] = get_keys(), [put(Key, Value) || {Key,Value} <- Previous], ok. @@ -167,8 +167,8 @@ heavy(Config) when is_list(Config) -> simple_all_keys(Config) when is_list(Config) -> erase(), ok = simple_all_keys_add_loop(1000), - [] = erlang:get_keys(), - [] = erlang:get(), + [] = get_keys(), + [] = get(), ok. simple_all_keys_add_loop(0) -> diff --git a/lib/stdlib/src/erl_internal.erl b/lib/stdlib/src/erl_internal.erl index e523b6b476..2bf8b86c23 100644 --- a/lib/stdlib/src/erl_internal.erl +++ b/lib/stdlib/src/erl_internal.erl @@ -295,6 +295,7 @@ bif(garbage_collect, 1) -> true; bif(garbage_collect, 2) -> true; bif(get, 0) -> true; bif(get, 1) -> true; +bif(get_keys, 0) -> true; bif(get_keys, 1) -> true; bif(group_leader, 0) -> true; bif(group_leader, 2) -> true; |