aboutsummaryrefslogtreecommitdiffstats
path: root/erts/doc
diff options
context:
space:
mode:
authorLukas Larsson <[email protected]>2011-07-08 12:27:47 +0200
committerLukas Larsson <[email protected]>2011-07-08 12:27:47 +0200
commit5c62fdc1914000f3da921c82a82b6dc30783db53 (patch)
tree9c57437517536b3c997d9644341e707114885b7e /erts/doc
parent6d45f1d0598ecb985fda06e5337c271b72f60306 (diff)
parentacc2de565374e9b2c22b803fe234608cb84424f4 (diff)
downloadotp-5c62fdc1914000f3da921c82a82b6dc30783db53.tar.gz
otp-5c62fdc1914000f3da921c82a82b6dc30783db53.tar.bz2
otp-5c62fdc1914000f3da921c82a82b6dc30783db53.zip
Merge branch 'lukas/erts/enif_make_reverse_list/OTP-9392' into major
* lukas/erts/enif_make_reverse_list/OTP-9392: Add version comment Rename enif_get_reverse_list to enif_make_reverse_list Remove extra allocated heap fragment Added enif_get_reverse_list to nif API
Diffstat (limited to 'erts/doc')
-rw-r--r--erts/doc/src/erl_nif.xml7
1 files changed, 7 insertions, 0 deletions
diff --git a/erts/doc/src/erl_nif.xml b/erts/doc/src/erl_nif.xml
index cdce4ec0b8..382e446dce 100644
--- a/erts/doc/src/erl_nif.xml
+++ b/erts/doc/src/erl_nif.xml
@@ -822,6 +822,13 @@ typedef enum {
<desc><p>Create an ordinary list containing the elements of array <c>arr</c>
of length <c>cnt</c>. An empty list is returned if <c>cnt</c> is 0.</p></desc>
</func>
+ <func><name><ret>int</ret><nametext>enif_make_reverse_list(ErlNifEnv* env, ERL_NIF_TERM term, ERL_NIF_TERM *list)</nametext></name>
+ <fsummary>Create the reverse list of the list <c>term</c>.</fsummary>
+ <desc><p>Set <c>*list</c> to the reverse list of the list <c>term</c> and return true,
+ or return false if <c>term</c> is not a list. This function should only be used on
+ short lists as a copy will be created of the list which will not be released until after the
+ nif returns.</p></desc>
+ </func>
<func><name><ret>ERL_NIF_TERM</ret><nametext>enif_make_long(ErlNifEnv* env, long int i)</nametext></name>
<fsummary>Create an integer term from a long int</fsummary>
<desc><p>Create an integer term from a <c>long int</c>.</p></desc>