aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSverker Eriksson <[email protected]>2018-03-13 17:28:05 +0100
committerSverker Eriksson <[email protected]>2018-03-13 17:28:05 +0100
commitacaef0dcba397ee1fb6713b7d59976dd8484fe8b (patch)
tree5a3bf6c486239cf4a10e27056702cf8d8ca50a3d
parent708b71548d9f0eee1676f7fca7c159a2d9a79abf (diff)
parent07444cf881f6e8bca808a04a7eddd2ed1ac74ce6 (diff)
downloadotp-acaef0dcba397ee1fb6713b7d59976dd8484fe8b.tar.gz
otp-acaef0dcba397ee1fb6713b7d59976dd8484fe8b.tar.bz2
otp-acaef0dcba397ee1fb6713b7d59976dd8484fe8b.zip
Merge branch 'sverker/enif_fprintf-doc'
-rw-r--r--erts/doc/src/erl_nif.xml13
-rw-r--r--t.erl5
2 files changed, 18 insertions, 0 deletions
diff --git a/erts/doc/src/erl_nif.xml b/erts/doc/src/erl_nif.xml
index f2f380ca4e..9b446615a4 100644
--- a/erts/doc/src/erl_nif.xml
+++ b/erts/doc/src/erl_nif.xml
@@ -1236,6 +1236,17 @@ typedef struct {
</func>
<func>
+ <name><ret>int</ret><nametext>enif_fprintf(FILE *stream, const char *format, ...)</nametext></name>
+ <fsummary>Format strings and Erlang terms.</fsummary>
+ <desc>
+ <p>Similar to <c>fprintf</c> but this format string also accepts
+ <c>"%T"</c>, which formats Erlang terms.</p>
+ <p>This function was originally intenden for debugging purpose. It is not
+ recommended to print very large terms with <c>%T</c>.</p>
+ </desc>
+ </func>
+
+ <func>
<name><ret>void</ret><nametext>enif_free(void* ptr)</nametext></name>
<fsummary>Free dynamic memory.</fsummary>
<desc>
@@ -3136,6 +3147,8 @@ if (retval &amp; ERL_NIF_SELECT_STOP_CALLED) {
<desc>
<p>Similar to <c>snprintf</c> but this format string also accepts
<c>"%T"</c>, which formats Erlang terms.</p>
+ <p>This function was originally intenden for debugging purpose. It is not
+ recommended to print very large terms with <c>%T</c>.</p>
</desc>
</func>
diff --git a/t.erl b/t.erl
new file mode 100644
index 0000000000..eafb025666
--- /dev/null
+++ b/t.erl
@@ -0,0 +1,5 @@
+-module(t).
+-compile([export_all,nowarn_export_all]).
+
+id(I) ->
+ I.