aboutsummaryrefslogtreecommitdiffstats
path: root/lib/stdlib/doc/src/erl_internal.xml
diff options
context:
space:
mode:
authorBjörn Gustavsson <[email protected]>2016-08-16 14:19:59 +0200
committerBjörn Gustavsson <[email protected]>2016-09-01 15:16:02 +0200
commit04c67da5b455416c71fe9bc4c70fe61ceb7aad79 (patch)
treeb4d424d3c02e5d5ae42742760c1194f5814bf07f /lib/stdlib/doc/src/erl_internal.xml
parentfeab3f976f265a45345b0a82ea656898db29603f (diff)
downloadotp-04c67da5b455416c71fe9bc4c70fe61ceb7aad79.tar.gz
otp-04c67da5b455416c71fe9bc4c70fe61ceb7aad79.tar.bz2
otp-04c67da5b455416c71fe9bc4c70fe61ceb7aad79.zip
erl_internal: Add add_predefined_functions/1
The sys_pre_expand module used to do a lot more (translate records and funs, for example), but now it does very little. Most of the code is an identify transformation of the abstract format. The identity transformation part of the code must be maintained and kept correct when new forms are added to the abstract format. That adds to the maintance burden. It also adds (slightly) to compilation times. Therefore, we want to eliminate sys_pre_expand, moving all of its (non-identity) transformations to better places. As a preliminary first step, move the code that adds the pre-defined functions (such as module_info/0) to a new function in erl_internal.
Diffstat (limited to 'lib/stdlib/doc/src/erl_internal.xml')
-rw-r--r--lib/stdlib/doc/src/erl_internal.xml10
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/stdlib/doc/src/erl_internal.xml b/lib/stdlib/doc/src/erl_internal.xml
index cf49df0972..17cd0fb240 100644
--- a/lib/stdlib/doc/src/erl_internal.xml
+++ b/lib/stdlib/doc/src/erl_internal.xml
@@ -44,6 +44,16 @@
<funcs>
<func>
+ <name name="add_predefined_functions" arity="1"/>
+ <fsummary>Add code for pre-defined functions.</fsummary>
+ <desc>
+ <p>Adds to <c><anno>Forms</anno></c> the code for the standard
+ pre-defined functions (such as <c>module_info/0</c>) that are
+ to be included in every module.</p>
+ </desc>
+ </func>
+
+ <func>
<name name="arith_op" arity="2"/>
<fsummary>Test for an arithmetic operator.</fsummary>
<desc>