aboutsummaryrefslogtreecommitdiffstats
path: root/lib/erl_interface/doc/src/erl_eterm.xml
diff options
context:
space:
mode:
Diffstat (limited to 'lib/erl_interface/doc/src/erl_eterm.xml')
-rw-r--r--lib/erl_interface/doc/src/erl_eterm.xml392
1 files changed, 196 insertions, 196 deletions
diff --git a/lib/erl_interface/doc/src/erl_eterm.xml b/lib/erl_interface/doc/src/erl_eterm.xml
index e619232e4c..9a05196a70 100644
--- a/lib/erl_interface/doc/src/erl_eterm.xml
+++ b/lib/erl_interface/doc/src/erl_eterm.xml
@@ -39,7 +39,7 @@
Erlang terms.</p>
<p>An Erlang term is represented by a C structure of type
- <c><![CDATA[ETERM]]></c>. Applications should not reference any fields
+ <c>ETERM</c>. Applications should not reference any fields
in this structure directly, as it can be changed in future releases
to provide faster and more compact term storage. Instead,
applications should use the macros and functions provided.</p>
@@ -49,31 +49,31 @@
otherwise <c>0</c>.</p>
<taglist>
- <tag><c><![CDATA[ERL_IS_INTEGER(t)]]></c></tag>
- <item>True if <c><![CDATA[t]]></c> is an integer.</item>
- <tag><c><![CDATA[ERL_IS_UNSIGNED_INTEGER(t)]]></c></tag>
- <item>True if <c><![CDATA[t]]></c> is an integer.</item>
- <tag><c><![CDATA[ERL_IS_FLOAT(t)]]></c></tag>
- <item>True if <c><![CDATA[t]]></c> is a floating point number.</item>
- <tag><c><![CDATA[ERL_IS_ATOM(t)]]></c></tag>
- <item>True if <c><![CDATA[t]]></c> is an atom.</item>
- <tag><c><![CDATA[ERL_IS_PID(t)]]></c></tag>
- <item>True if <c><![CDATA[t]]></c> is a pid (process identifier).</item>
- <tag><c><![CDATA[ERL_IS_PORT(t)]]></c></tag>
- <item>True if <c><![CDATA[t]]></c> is a port.</item>
- <tag><c><![CDATA[ERL_IS_REF(t)]]></c></tag>
- <item>True if <c><![CDATA[t]]></c> is a reference.</item>
- <tag><c><![CDATA[ERL_IS_TUPLE(t)]]></c></tag>
- <item>True if <c><![CDATA[t]]></c> is a tuple.</item>
- <tag><c><![CDATA[ERL_IS_BINARY(t)]]></c></tag>
- <item>True if <c><![CDATA[t]]></c> is a binary.</item>
- <tag><c><![CDATA[ERL_IS_LIST(t)]]></c></tag>
- <item>True if <c><![CDATA[t]]></c> is a list with zero or more
+ <tag><c>ERL_IS_INTEGER(t)</c></tag>
+ <item>True if <c>t</c> is an integer.</item>
+ <tag><c>ERL_IS_UNSIGNED_INTEGER(t)</c></tag>
+ <item>True if <c>t</c> is an integer.</item>
+ <tag><c>ERL_IS_FLOAT(t)</c></tag>
+ <item>True if <c>t</c> is a floating point number.</item>
+ <tag><c>ERL_IS_ATOM(t)</c></tag>
+ <item>True if <c>t</c> is an atom.</item>
+ <tag><c>ERL_IS_PID(t)</c></tag>
+ <item>True if <c>t</c> is a pid (process identifier).</item>
+ <tag><c>ERL_IS_PORT(t)</c></tag>
+ <item>True if <c>t</c> is a port.</item>
+ <tag><c>ERL_IS_REF(t)</c></tag>
+ <item>True if <c>t</c> is a reference.</item>
+ <tag><c>ERL_IS_TUPLE(t)</c></tag>
+ <item>True if <c>t</c> is a tuple.</item>
+ <tag><c>ERL_IS_BINARY(t)</c></tag>
+ <item>True if <c>t</c> is a binary.</item>
+ <tag><c>ERL_IS_LIST(t)</c></tag>
+ <item>True if <c>t</c> is a list with zero or more
elements.</item>
- <tag><c><![CDATA[ERL_IS_EMPTY_LIST(t)]]></c></tag>
- <item>True if <c><![CDATA[t]]></c> is an empty list.</item>
- <tag><c><![CDATA[ERL_IS_CONS(t)]]></c></tag>
- <item>True if <c><![CDATA[t]]></c> is a list with at least one
+ <tag><c>ERL_IS_EMPTY_LIST(t)</c></tag>
+ <item>True if <c>t</c> is an empty list.</item>
+ <tag><c>ERL_IS_CONS(t)</c></tag>
+ <item>True if <c>t</c> is a list with at least one
element.</item>
</taglist>
@@ -83,60 +83,60 @@
passing a tuple to <c>ERL_ATOM_PTR()</c> likely results in garbage.</p>
<taglist>
- <tag><c><![CDATA[char *ERL_ATOM_PTR(t)]]></c></tag>
+ <tag><c>char *ERL_ATOM_PTR(t)</c></tag>
<item></item>
- <tag><c><![CDATA[char *ERL_ATOM_PTR_UTF8(t)]]></c></tag>
- <item>A string representing atom <c><![CDATA[t]]></c>.</item>
- <tag><c><![CDATA[int ERL_ATOM_SIZE(t)]]></c></tag>
+ <tag><c>char *ERL_ATOM_PTR_UTF8(t)</c></tag>
+ <item>A string representing atom <c>t</c>.</item>
+ <tag><c>int ERL_ATOM_SIZE(t)</c></tag>
<item></item>
- <tag><c><![CDATA[int ERL_ATOM_SIZE_UTF8(t)]]></c></tag>
- <item>The length (in bytes) of atom <c><![CDATA[t]]></c>.</item>
- <tag><c><![CDATA[void *ERL_BIN_PTR(t)]]></c></tag>
- <item>A pointer to the contents of <c><![CDATA[t]]></c>.</item>
- <tag><c><![CDATA[int ERL_BIN_SIZE(t)]]></c></tag>
- <item>The length (in bytes) of binary object <c><![CDATA[t]]></c>.</item>
- <tag><c><![CDATA[int ERL_INT_VALUE(t)]]></c></tag>
- <item>The integer of <c><![CDATA[t]]></c>.</item>
- <tag><c><![CDATA[unsigned int ERL_INT_UVALUE(t)]]></c></tag>
- <item>The unsigned integer value of <c><![CDATA[t]]></c>.</item>
- <tag><c><![CDATA[double ERL_FLOAT_VALUE(t)]]></c></tag>
- <item>The floating point value of <c><![CDATA[t]]></c>.</item>
- <tag><c><![CDATA[ETERM *ERL_PID_NODE(t)]]></c></tag>
+ <tag><c>int ERL_ATOM_SIZE_UTF8(t)</c></tag>
+ <item>The length (in bytes) of atom <c>t</c>.</item>
+ <tag><c>void *ERL_BIN_PTR(t)</c></tag>
+ <item>A pointer to the contents of <c>t</c>.</item>
+ <tag><c>int ERL_BIN_SIZE(t)</c></tag>
+ <item>The length (in bytes) of binary object <c>t</c>.</item>
+ <tag><c>int ERL_INT_VALUE(t)</c></tag>
+ <item>The integer of <c>t</c>.</item>
+ <tag><c>unsigned int ERL_INT_UVALUE(t)</c></tag>
+ <item>The unsigned integer value of <c>t</c>.</item>
+ <tag><c>double ERL_FLOAT_VALUE(t)</c></tag>
+ <item>The floating point value of <c>t</c>.</item>
+ <tag><c>ETERM *ERL_PID_NODE(t)</c></tag>
<item></item>
- <tag><c><![CDATA[ETERM *ERL_PID_NODE_UTF8(t)]]></c></tag>
- <item>The node in pid <c><![CDATA[t]]></c>.</item>
- <tag><c><![CDATA[int ERL_PID_NUMBER(t)]]></c></tag>
- <item>The sequence number in pid <c><![CDATA[t]]></c>.</item>
- <tag><c><![CDATA[int ERL_PID_SERIAL(t)]]></c></tag>
- <item>The serial number in pid <c><![CDATA[t]]></c>.</item>
- <tag><c><![CDATA[int ERL_PID_CREATION(t)]]></c></tag>
- <item>The creation number in pid <c><![CDATA[t]]></c>.</item>
- <tag><c><![CDATA[int ERL_PORT_NUMBER(t)]]></c></tag>
- <item>The sequence number in port <c><![CDATA[t]]></c>.</item>
- <tag><c><![CDATA[int ERL_PORT_CREATION(t)]]></c></tag>
- <item>The creation number in port <c><![CDATA[t]]></c>.</item>
- <tag><c><![CDATA[ETERM *ERL_PORT_NODE(t)]]></c></tag>
+ <tag><c>ETERM *ERL_PID_NODE_UTF8(t)</c></tag>
+ <item>The node in pid <c>t</c>.</item>
+ <tag><c>int ERL_PID_NUMBER(t)</c></tag>
+ <item>The sequence number in pid <c>t</c>.</item>
+ <tag><c>int ERL_PID_SERIAL(t)</c></tag>
+ <item>The serial number in pid <c>t</c>.</item>
+ <tag><c>int ERL_PID_CREATION(t)</c></tag>
+ <item>The creation number in pid <c>t</c>.</item>
+ <tag><c>int ERL_PORT_NUMBER(t)</c></tag>
+ <item>The sequence number in port <c>t</c>.</item>
+ <tag><c>int ERL_PORT_CREATION(t)</c></tag>
+ <item>The creation number in port <c>t</c>.</item>
+ <tag><c>ETERM *ERL_PORT_NODE(t)</c></tag>
<item></item>
- <tag><c><![CDATA[ETERM *ERL_PORT_NODE_UTF8(t)]]></c></tag>
- <item>The node in port <c><![CDATA[t]]></c>.</item>
- <tag><c><![CDATA[int ERL_REF_NUMBER(t)]]></c></tag>
- <item>The first part of the reference number in ref <c><![CDATA[t]]></c>.
+ <tag><c>ETERM *ERL_PORT_NODE_UTF8(t)</c></tag>
+ <item>The node in port <c>t</c>.</item>
+ <tag><c>int ERL_REF_NUMBER(t)</c></tag>
+ <item>The first part of the reference number in ref <c>t</c>.
Use only for compatibility.</item>
- <tag><c><![CDATA[int ERL_REF_NUMBERS(t)]]></c></tag>
+ <tag><c>int ERL_REF_NUMBERS(t)</c></tag>
<item>Pointer to the array of reference numbers in ref
- <c><![CDATA[t]]></c>.</item>
- <tag><c><![CDATA[int ERL_REF_LEN(t)]]></c></tag>
+ <c>t</c>.</item>
+ <tag><c>int ERL_REF_LEN(t)</c></tag>
<item>The number of used reference numbers in ref
- <c><![CDATA[t]]></c>.</item>
- <tag><c><![CDATA[int ERL_REF_CREATION(t)]]></c></tag>
- <item>The creation number in ref <c><![CDATA[t]]></c>.</item>
- <tag><c><![CDATA[int ERL_TUPLE_SIZE(t)]]></c></tag>
- <item>The number of elements in tuple <c><![CDATA[t]]></c>.</item>
- <tag><c><![CDATA[ETERM *ERL_CONS_HEAD(t)]]></c></tag>
- <item>The head element of list <c><![CDATA[t]]></c>.</item>
- <tag><c><![CDATA[ETERM *ERL_CONS_TAIL(t)]]></c></tag>
+ <c>t</c>.</item>
+ <tag><c>int ERL_REF_CREATION(t)</c></tag>
+ <item>The creation number in ref <c>t</c>.</item>
+ <tag><c>int ERL_TUPLE_SIZE(t)</c></tag>
+ <item>The number of elements in tuple <c>t</c>.</item>
+ <tag><c>ETERM *ERL_CONS_HEAD(t)</c></tag>
+ <item>The head element of list <c>t</c>.</item>
+ <tag><c>ETERM *ERL_CONS_TAIL(t)</c></tag>
<item>A list representing the tail elements of list
- <c><![CDATA[t]]></c>.</item>
+ <c>t</c>.</item>
</taglist>
</description>
@@ -149,22 +149,22 @@
<v>ETERM *tail;</v>
</type>
<desc>
- <p>Concatenates two Erlang terms, prepending <c><![CDATA[head]]></c>
- onto <c><![CDATA[tail]]></c> and thereby creating a
- <c><![CDATA[cons]]></c> cell.
- To make a proper list, <c><![CDATA[tail]]></c> is always to be a list
+ <p>Concatenates two Erlang terms, prepending <c>head</c>
+ onto <c>tail</c> and thereby creating a
+ <c>cons</c> cell.
+ To make a proper list, <c>tail</c> is always to be a list
or an empty list. Notice that <c>NULL</c> is not a valid list.</p>
<list type="bulleted">
- <item><c><![CDATA[head]]></c> is the new term to be added.</item>
- <item><c><![CDATA[tail]]></c> is the existing list to which
- <c><![CDATA[head]]></c> is concatenated.</item>
+ <item><c>head</c> is the new term to be added.</item>
+ <item><c>tail</c> is the existing list to which
+ <c>head</c> is concatenated.</item>
</list>
<p>The function returns a new list.</p>
- <p><c><![CDATA[ERL_CONS_HEAD(list)]]></c> and
- <c><![CDATA[ERL_CONS_TAIL(list)]]></c>
+ <p><c>ERL_CONS_HEAD(list)</c> and
+ <c>ERL_CONS_TAIL(list)</c>
can be used to retrieve the head and tail components
- from the list. <c><![CDATA[erl_hd(list)]]></c> and
- <c><![CDATA[erl_tl(list)]]></c> do
+ from the list. <c>erl_hd(list)</c> and
+ <c>erl_tl(list)</c> do
the same thing, but check that the argument really is a list.</p>
<p><em>Example:</em></p>
<code type="none"><![CDATA[
@@ -188,7 +188,7 @@ erl_free_compound(list);
</type>
<desc>
<p>Creates and returns a copy of the Erlang term
- <c><![CDATA[term]]></c>.</p>
+ <c>term</c>.</p>
</desc>
</func>
@@ -202,15 +202,15 @@ erl_free_compound(list);
<desc>
<p>Extracts a specified element from an Erlang tuple.</p>
<list type="bulleted">
- <item><c><![CDATA[position]]></c> specifies which element to retrieve
- from <c><![CDATA[tuple]]></c>. The elements are numbered starting
+ <item><c>position</c> specifies which element to retrieve
+ from <c>tuple</c>. The elements are numbered starting
from 1.</item>
- <item><c><![CDATA[tuple]]></c> is an Erlang term containing at least
- <c><![CDATA[position]]></c> elements.</item>
+ <item><c>tuple</c> is an Erlang term containing at least
+ <c>position</c> elements.</item>
</list>
<p>Returns a new Erlang term corresponding to the requested element, or
- <c>NULL</c> if <c><![CDATA[position]]></c> was greater
- than the arity of <c><![CDATA[tuple]]></c>.</p>
+ <c>NULL</c> if <c>position</c> was greater
+ than the arity of <c>tuple</c>.</p>
</desc>
</func>
@@ -222,10 +222,10 @@ erl_free_compound(list);
</type>
<desc>
<p>Extracts the first element from a list.</p>
- <p><c><![CDATA[list]]></c> is an Erlang term containing a list.</p>
+ <p><c>list</c> is an Erlang term containing a list.</p>
<p>Returns an Erlang term corresponding to the head
head element in the list, or a <c>NULL</c> pointer if
- <c><![CDATA[list]]></c> was not a list.</p>
+ <c>list</c> was not a list.</p>
</desc>
</func>
@@ -238,9 +238,9 @@ erl_free_compound(list);
</type>
<desc>
<p>This function must be called before any of the others in the
- <c><![CDATA[Erl_Interface]]></c> library to initialize the
+ <c>Erl_Interface</c> library to initialize the
library functions. The arguments must be specified as
- <c><![CDATA[erl_init(NULL,0)]]></c>.</p>
+ <c>erl_init(NULL,0)</c>.</p>
</desc>
</func>
@@ -252,9 +252,9 @@ erl_free_compound(list);
</type>
<desc>
<p>Returns the length of an I/O list.</p>
- <p><c><![CDATA[list]]></c> is an Erlang term containing an I/O list.</p>
- <p>Returns the length of <c><![CDATA[list]]></c>, or
- <c>-1</c> if <c><![CDATA[list]]></c> is not an I/O list.</p>
+ <p><c>list</c> is an Erlang term containing an I/O list.</p>
+ <p>Returns the length of <c>list</c>, or
+ <c>-1</c> if <c>list</c> is not an I/O list.</p>
<p>For the definition of an I/O list, see
<seealso marker="#erl_iolist_to_binary">
<c>erl_iolist_to_binary</c></seealso>.</p>
@@ -269,9 +269,9 @@ erl_free_compound(list);
</type>
<desc>
<p>Converts an I/O list to a binary term.</p>
- <p><c><![CDATA[list]]></c> is an Erlang term containing a list.</p>
+ <p><c>list</c> is an Erlang term containing a list.</p>
<p>Returns an Erlang binary term, or <c>NULL</c> if
- <c><![CDATA[list]]></c> was not an I/O list.</p>
+ <c>list</c> was not an I/O list.</p>
<p>Informally, an I/O list is a deep list of characters and
binaries that can be sent to an Erlang port. In BNF, an I/O
list is formally defined as follows:</p>
@@ -296,15 +296,15 @@ iohead ::= Binary
</type>
<desc>
<p>Converts an I/O list to a <c>NULL</c>-terminated C string.</p>
- <p><c><![CDATA[list]]></c> is an Erlang term containing an I/O list.
+ <p><c>list</c> is an Erlang term containing an I/O list.
The I/O list must not contain the integer 0, as C strings may not
contain this value except as a terminating marker.</p>
<p>Returns a pointer to a dynamically allocated
- buffer containing a string. If <c><![CDATA[list]]></c> is not an I/O
- list, or if <c><![CDATA[list]]></c> contains the integer 0,
+ buffer containing a string. If <c>list</c> is not an I/O
+ list, or if <c>list</c> contains the integer 0,
<c>NULL</c> is returned. It
is the caller's responsibility to free the allocated buffer
- with <c><![CDATA[erl_free()]]></c>.</p>
+ with <c>erl_free()</c>.</p>
<p>For the definition of an I/O list, see
<seealso marker="#erl_iolist_to_binary">
<c>erl_iolist_to_binary</c></seealso>.</p>
@@ -319,10 +319,10 @@ iohead ::= Binary
</type>
<desc>
<p>Determines the length of a proper list.</p>
- <p><c><![CDATA[list]]></c> is an Erlang term containing a proper list.
+ <p><c>list</c> is an Erlang term containing a proper list.
In a proper list, all tails except the last point to another list
cell, and the last tail points to an empty list.</p>
- <p>Returns <c>-1</c> if <c><![CDATA[list]]></c> is not a proper
+ <p>Returns <c>-1</c> if <c>list</c> is not a proper
list.</p>
</desc>
</func>
@@ -335,16 +335,16 @@ iohead ::= Binary
</type>
<desc>
<p>Creates an atom.</p>
- <p><c><![CDATA[string]]></c> is the sequence of characters that will be
+ <p><c>string</c> is the sequence of characters that will be
used to create the atom.</p>
<p>Returns an Erlang term containing an atom. Notice that it is
- the caller's responsibility to ensure that <c><![CDATA[string]]></c>
+ the caller's responsibility to ensure that <c>string</c>
contains a valid name for an atom.</p>
- <p><c><![CDATA[ERL_ATOM_PTR(atom)]]></c> and
- <c><![CDATA[ERL_ATOM_PTR_UTF8(atom)]]></c>
+ <p><c>ERL_ATOM_PTR(atom)</c> and
+ <c>ERL_ATOM_PTR_UTF8(atom)</c>
can be used to retrieve the atom name (as a <c>NULL</c>-terminated string).
- <c><![CDATA[ERL_ATOM_SIZE(atom)]]></c>
- and <c><![CDATA[ERL_ATOM_SIZE_UTF8(atom)]]></c> return the length
+ <c>ERL_ATOM_SIZE(atom)</c>
+ and <c>ERL_ATOM_SIZE_UTF8(atom)</c> return the length
of the atom name.</p>
<note>
<p>The UTF-8 variants were introduced in Erlang/OTP R16 and the
@@ -365,14 +365,14 @@ iohead ::= Binary
<p>Produces an Erlang binary object from a
buffer containing a sequence of bytes.</p>
<list type="bulleted">
- <item><c><![CDATA[bptr]]></c> is a pointer to a buffer containing
+ <item><c>bptr</c> is a pointer to a buffer containing
data to be converted.</item>
- <item><c><![CDATA[size]]></c> indicates the length of
- <c><![CDATA[bptr]]></c>.</item>
+ <item><c>size</c> indicates the length of
+ <c>bptr</c>.</item>
</list>
<p>Returns an Erlang binary object.</p>
- <p><c><![CDATA[ERL_BIN_PTR(bin)]]></c> retrieves a pointer to
- the binary data. <c><![CDATA[ERL_BIN_SIZE(bin)]]></c> retrieves the
+ <p><c>ERL_BIN_PTR(bin)</c> retrieves a pointer to
+ the binary data. <c>ERL_BIN_SIZE(bin)</c> retrieves the
size.</p>
</desc>
</func>
@@ -397,13 +397,13 @@ iohead ::= Binary
<desc>
<p>Creates a list from a sequence of bytes.</p>
<list type="bulleted">
- <item><c><![CDATA[string]]></c> is a buffer containing a sequence of
+ <item><c>string</c> is a buffer containing a sequence of
bytes. The buffer does not need to be <c>NULL</c>-terminated.</item>
- <item><c><![CDATA[len]]></c> is the length of
- <c><![CDATA[string]]></c>.</item>
+ <item><c>len</c> is the length of
+ <c>string</c>.</item>
</list>
<p>Returns an Erlang list object corresponding to
- the character sequence in <c><![CDATA[string]]></c>.</p>
+ the character sequence in <c>string</c>.</p>
</desc>
</func>
@@ -415,12 +415,12 @@ iohead ::= Binary
</type>
<desc>
<p>Creates an Erlang float.</p>
- <p><c><![CDATA[f]]></c> is a value to be converted to an Erlang
+ <p><c>f</c> is a value to be converted to an Erlang
float.</p>
<p>Returns an Erlang float object with the value
- specified in <c><![CDATA[f]]></c> or <c><![CDATA[NULL]]></c> if
- <c><![CDATA[f]]></c> is not finite.</p>
- <p><c><![CDATA[ERL_FLOAT_VALUE(t)]]></c> can be used to retrieve the
+ specified in <c>f</c> or <c>NULL</c> if
+ <c>f</c> is not finite.</p>
+ <p><c>ERL_FLOAT_VALUE(t)</c> can be used to retrieve the
value from an Erlang float.</p>
</desc>
</func>
@@ -433,11 +433,11 @@ iohead ::= Binary
</type>
<desc>
<p>Creates an Erlang integer.</p>
- <p><c><![CDATA[n]]></c> is a value to be converted to an Erlang
+ <p><c>n</c> is a value to be converted to an Erlang
integer.</p>
<p>Returns an Erlang integer object with the
- value specified in <c><![CDATA[n]]></c>.</p>
- <p><c><![CDATA[ERL_INT_VALUE(t)]]></c> can be used to retrieve the
+ value specified in <c>n</c>.</p>
+ <p><c>ERL_INT_VALUE(t)</c> can be used to retrieve the
value from an Erlang integer.</p>
</desc>
</func>
@@ -454,13 +454,13 @@ iohead ::= Binary
that each element in the list corresponds to one element in
the array.</p>
<list type="bulleted">
- <item><c><![CDATA[array]]></c> is an array of Erlang terms.</item>
- <item><c><![CDATA[arrsize]]></c> is the number of elements in
- <c><![CDATA[array]]></c>.</item>
+ <item><c>array</c> is an array of Erlang terms.</item>
+ <item><c>arrsize</c> is the number of elements in
+ <c>array</c>.</item>
</list>
<p>The function creates an Erlang list object, whose length
- <c><![CDATA[arrsize]]></c> and whose elements are taken from the
- terms in <c><![CDATA[array]]></c>.</p>
+ <c>arrsize</c> and whose elements are taken from the
+ terms in <c>array</c>.</p>
</desc>
</func>
@@ -475,21 +475,21 @@ iohead ::= Binary
<desc>
<p>Creates an Erlang reference, with 82 bits.</p>
<list type="bulleted">
- <item><c><![CDATA[node]]></c> is the name of the C-node.</item>
- <item><c><![CDATA[n1]]></c>, <c><![CDATA[n2]]></c>, and
- <c><![CDATA[n3]]></c> can be seen as one big number
- <c><![CDATA[n1*2^64+n2*2^32+n3]]></c>, which is to be chosen
+ <item><c>node</c> is the name of the C-node.</item>
+ <item><c>n1</c>, <c>n2</c>, and
+ <c>n3</c> can be seen as one big number
+ <c>n1*2^64+n2*2^32+n3</c>, which is to be chosen
uniquely for each reference created for a given C-node.</item>
- <item><c><![CDATA[creation]]></c> is an arbitrary number.</item>
+ <item><c>creation</c> is an arbitrary number.</item>
</list>
- <p>Notice that <c><![CDATA[n3]]></c> and <c><![CDATA[creation]]></c>
+ <p>Notice that <c>n3</c> and <c>creation</c>
are limited in precision, so only the low 18 and 2 bits of these
numbers are used.</p>
<p>Returns an Erlang reference object.</p>
- <p><c><![CDATA[ERL_REF_NODE(ref)]]></c>,
- <c><![CDATA[ERL_REF_NUMBERS(ref)]]></c>,
- <c><![CDATA[ERL_REF_LEN(ref)]]></c>, and
- <c><![CDATA[ERL_REF_CREATION(ref)]]></c> can be used to retrieve the
+ <p><c>ERL_REF_NODE(ref)</c>,
+ <c>ERL_REF_NUMBERS(ref)</c>,
+ <c>ERL_REF_LEN(ref)</c>, and
+ <c>ERL_REF_CREATION(ref)</c> can be used to retrieve the
values used to create the reference.</p>
</desc>
</func>
@@ -508,18 +508,18 @@ iohead ::= Binary
resulting pid can be used by Erlang processes wishing to
communicate with the C-node.</p>
<list type="bulleted">
- <item><c><![CDATA[node]]></c> is the name of the C-node.</item>
- <item><c><![CDATA[number]]></c>, <c><![CDATA[serial]]></c>, and
- <c><![CDATA[creation]]></c> are
+ <item><c>node</c> is the name of the C-node.</item>
+ <item><c>number</c>, <c>serial</c>, and
+ <c>creation</c> are
arbitrary numbers. Notice that these are limited in
precision, so only the low 15, 3, and 2 bits of these numbers
are used.</item>
</list>
<p>Returns an Erlang pid object.</p>
- <p><c><![CDATA[ERL_PID_NODE(pid)]]></c>,
- <c><![CDATA[ERL_PID_NUMBER(pid)]]></c>,
- <c><![CDATA[ERL_PID_SERIAL(pid)]]></c>, and
- <c><![CDATA[ERL_PID_CREATION(pid)]]></c>
+ <p><c>ERL_PID_NODE(pid)</c>,
+ <c>ERL_PID_NUMBER(pid)</c>,
+ <c>ERL_PID_SERIAL(pid)</c>, and
+ <c>ERL_PID_CREATION(pid)</c>
can be used to retrieve the four values used to create the pid.</p>
</desc>
</func>
@@ -535,16 +535,16 @@ iohead ::= Binary
<desc>
<p>Creates an Erlang port identifier.</p>
<list type="bulleted">
- <item><c><![CDATA[node]]></c> is the name of the C-node.</item>
- <item><c><![CDATA[number]]></c> and <c><![CDATA[creation]]></c> are
+ <item><c>node</c> is the name of the C-node.</item>
+ <item><c>number</c> and <c>creation</c> are
arbitrary numbers. Notice that these are limited in
precision, so only the low 18 and 2 bits of these numbers
are used.</item>
</list>
<p>Returns an Erlang port object.</p>
- <p><c><![CDATA[ERL_PORT_NODE(port)]]></c>,
- <c><![CDATA[ERL_PORT_NUMBER(port)]]></c>,
- and <c><![CDATA[ERL_PORT_CREATION]]></c> can be used to retrieve the
+ <p><c>ERL_PORT_NODE(port)</c>,
+ <c>ERL_PORT_NUMBER(port)</c>,
+ and <c>ERL_PORT_CREATION</c> can be used to retrieve the
three values used to create the port.</p>
</desc>
</func>
@@ -559,20 +559,20 @@ iohead ::= Binary
</type>
<desc>
<p>Creates an old Erlang reference, with
- only 18 bits - use <c><![CDATA[erl_mk_long_ref]]></c> instead.</p>
+ only 18 bits - use <c>erl_mk_long_ref</c> instead.</p>
<list type="bulleted">
- <item><c><![CDATA[node]]></c> is the name of the C-node.</item>
- <item><c><![CDATA[number]]></c> is to be chosen uniquely for each
+ <item><c>node</c> is the name of the C-node.</item>
+ <item><c>number</c> is to be chosen uniquely for each
reference created for a given C-node.</item>
- <item><c><![CDATA[creation]]></c> is an arbitrary number.</item>
+ <item><c>creation</c> is an arbitrary number.</item>
</list>
- <p>Notice that <c><![CDATA[number]]></c> and <c><![CDATA[creation]]></c>
+ <p>Notice that <c>number</c> and <c>creation</c>
are limited in precision, so only the low 18 and 2 bits of these
numbers are used.</p>
<p>Returns an Erlang reference object.</p>
- <p><c><![CDATA[ERL_REF_NODE(ref)]]></c>,
- <c><![CDATA[ERL_REF_NUMBER(ref)]]></c>, and
- <c><![CDATA[ERL_REF_CREATION(ref)]]></c> can be used to retrieve the
+ <p><c>ERL_REF_NODE(ref)</c>,
+ <c>ERL_REF_NUMBER(ref)</c>, and
+ <c>ERL_REF_CREATION(ref)</c> can be used to retrieve the
three values used to create the reference.</p>
</desc>
</func>
@@ -585,7 +585,7 @@ iohead ::= Binary
</type>
<desc>
<p>Creates a list from a <c>NULL</c>-terminated string.</p>
- <p><c><![CDATA[string]]></c> is a <c>NULL</c>-terminated sequence of
+ <p><c>string</c> is a <c>NULL</c>-terminated sequence of
characters
(that is, a C string) from which the list will be created.</p>
<p>Returns an Erlang list.</p>
@@ -602,20 +602,20 @@ iohead ::= Binary
<desc>
<p>Creates an Erlang tuple from an array of Erlang terms.</p>
<list type="bulleted">
- <item><c><![CDATA[array]]></c> is an array of Erlang terms.</item>
- <item><c><![CDATA[arrsize]]></c> is the number of elements in
- <c><![CDATA[array]]></c>.</item>
+ <item><c>array</c> is an array of Erlang terms.</item>
+ <item><c>arrsize</c> is the number of elements in
+ <c>array</c>.</item>
</list>
<p>The function creates an Erlang tuple, whose arity is
- <c><![CDATA[size]]></c> and whose elements are taken from the terms
- in <c><![CDATA[array]]></c>.</p>
+ <c>size</c> and whose elements are taken from the terms
+ in <c>array</c>.</p>
<p>To retrieve the size of a tuple, either use function
- <c><![CDATA[erl_size]]></c> (which checks the type of the
+ <c>erl_size</c> (which checks the type of the
checked term and works for a binary as well as for a tuple) or
- <c><![CDATA[ERL_TUPLE_SIZE(tuple)]]></c> returns the arity of a tuple.
- <c><![CDATA[erl_size()]]></c> does the same thing, but it checks
+ <c>ERL_TUPLE_SIZE(tuple)</c> returns the arity of a tuple.
+ <c>erl_size()</c> does the same thing, but it checks
that the argument is a tuple.
- <c><![CDATA[erl_element(index,tuple)]]></c> returns the element
+ <c>erl_element(index,tuple)</c> returns the element
corresponding to a given position in the tuple.</p>
</desc>
</func>
@@ -628,11 +628,11 @@ iohead ::= Binary
</type>
<desc>
<p>Creates an Erlang unsigned integer.</p>
- <p><c><![CDATA[n]]></c> is a value to be converted to an Erlang
+ <p><c>n</c> is a value to be converted to an Erlang
unsigned integer.</p>
<p>Returns an Erlang unsigned integer object with
- the value specified in <c><![CDATA[n]]></c>.</p>
- <p><c><![CDATA[ERL_INT_UVALUE(t)]]></c> can be used to retrieve the
+ the value specified in <c>n</c>.</p>
+ <p><c>ERL_INT_UVALUE(t)</c> can be used to retrieve the
value from an Erlang unsigned integer.</p>
</desc>
</func>
@@ -646,9 +646,9 @@ iohead ::= Binary
<desc>
<p>Creates an unbound Erlang variable. The variable can later be bound
through pattern matching or assignment.</p>
- <p><c><![CDATA[name]]></c> specifies a name for the variable.</p>
+ <p><c>name</c> specifies a name for the variable.</p>
<p>Returns an Erlang variable object with the
- name <c><![CDATA[name]]></c>.</p>
+ name <c>name</c>.</p>
</desc>
</func>
@@ -662,9 +662,9 @@ iohead ::= Binary
<desc>
<p>Prints the specified Erlang term to the specified output stream.</p>
<list type="bulleted">
- <item><c><![CDATA[stream]]></c> indicates where the function is to
+ <item><c>stream</c> indicates where the function is to
send its output.</item>
- <item><c><![CDATA[term]]></c> is the Erlang term to print.</item>
+ <item><c>term</c> is the Erlang term to print.</item>
</list>
<p>Returns the number of characters written on success, otherwise a
negative value.</p>
@@ -678,16 +678,16 @@ iohead ::= Binary
<v>unsigned release_number;</v>
</type>
<desc>
- <p>By default, the <c><![CDATA[Erl_Interface]]></c> library is only
+ <p>By default, the <c>Erl_Interface</c> library is only
guaranteed to be compatible with other Erlang/OTP components from the
- same release as the <c><![CDATA[Erl_Interface]]></c> library itself.
- For example, <c><![CDATA[Erl_Interface]]></c> from Erlang/OTP R10
+ same release as the <c>Erl_Interface</c> library itself.
+ For example, <c>Erl_Interface</c> from Erlang/OTP R10
is not compatible
with an Erlang emulator from Erlang/OTP R9 by default.</p>
- <p>A call to <c><![CDATA[erl_set_compat_rel(release_number)]]></c> sets
- the <c><![CDATA[Erl_Interface]]></c> library in compatibility mode of
- release <c><![CDATA[release_number]]></c>. Valid range of
- <c><![CDATA[release_number]]></c>
+ <p>A call to <c>erl_set_compat_rel(release_number)</c> sets
+ the <c>Erl_Interface</c> library in compatibility mode of
+ release <c>release_number</c>. Valid range of
+ <c>release_number</c>
is [7, current release]. This makes it possible to
communicate with Erlang/OTP components from earlier releases.</p>
<note>
@@ -714,10 +714,10 @@ iohead ::= Binary
<desc>
<p>Returns either the arity of an Erlang tuple or the
number of bytes in an Erlang binary object.</p>
- <p><c><![CDATA[term]]></c> is an Erlang tuple or an Erlang binary
+ <p><c>term</c> is an Erlang tuple or an Erlang binary
object.</p>
- <p>Returns the size of <c><![CDATA[term]]></c> as described
- above, or <c>-1</c> if <c><![CDATA[term]]></c> is not one of the two
+ <p>Returns the size of <c>term</c> as described
+ above, or <c>-1</c> if <c>term</c> is not one of the two
supported types.</p>
</desc>
</func>
@@ -730,10 +730,10 @@ iohead ::= Binary
</type>
<desc>
<p>Extracts the tail from a list.</p>
- <p><c><![CDATA[list]]></c> is an Erlang term containing a list.</p>
+ <p><c>list</c> is an Erlang term containing a list.</p>
<p>Returns an Erlang list corresponding to the
original list minus the first element, or <c>NULL</c> pointer if
- <c><![CDATA[list]]></c> was not a list.</p>
+ <c>list</c> was not a list.</p>
</desc>
</func>
@@ -747,19 +747,19 @@ iohead ::= Binary
<desc>
<p>Returns the contents of the specified variable in an Erlang term.</p>
<list type="bulleted">
- <item><c><![CDATA[term]]></c> is an Erlang term. In order for this
+ <item><c>term</c> is an Erlang term. In order for this
function to succeed,
- <c><![CDATA[term]]></c> must either be an Erlang variable with
+ <c>term</c> must either be an Erlang variable with
the specified name, or it must be an Erlang list or tuple
containing a variable with the specified name. Other Erlang
types cannot contain variables.</item>
- <item><c><![CDATA[name]]></c> is the name of an Erlang variable.
+ <item><c>name</c> is the name of an Erlang variable.
</item>
</list>
<p>Returns the Erlang object corresponding to the value of
- <c><![CDATA[name]]></c> in <c><![CDATA[term]]></c>. If no variable
- with the name <c><![CDATA[name]]></c> is found in
- <c><![CDATA[term]]></c>, or if <c><![CDATA[term]]></c> is
+ <c>name</c> in <c>term</c>. If no variable
+ with the name <c>name</c> is found in
+ <c>term</c>, or if <c>term</c> is
not a valid Erlang term, <c>NULL</c> is returned.</p>
</desc>
</func>