From d1d834820ddaba4fa31e6ab6d07a96ac7cc6d999 Mon Sep 17 00:00:00 2001
From: serge
Date: Thu, 10 Jan 2013 09:07:38 -0500
Subject: Add application:get_key/3
The new function provides a default value for a configuration
parameter.
---
lib/kernel/doc/src/application.xml | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
(limited to 'lib/kernel/doc/src/application.xml')
diff --git a/lib/kernel/doc/src/application.xml b/lib/kernel/doc/src/application.xml
index 51a3311ec2..3513e2b592 100644
--- a/lib/kernel/doc/src/application.xml
+++ b/lib/kernel/doc/src/application.xml
@@ -108,12 +108,14 @@
+
Get the value of a configuration parameter
Returns the value of the configuration parameter Par
for Application. If the application argument is
omitted, it defaults to the application of the calling
- process.
+ process. If Def value is provided, it is returned
+ when no configuration parameter Par is defined.
If the specified application is not loaded, or
the configuration parameter does not exist, or if the process
executing the call does not belong to any application,
--
cgit v1.2.3
From 37654ca0993d24753d6596f7a5e4e784030092c4 Mon Sep 17 00:00:00 2001
From: Serge Aleynikov
Date: Tue, 15 Jan 2013 10:24:14 -0500
Subject: Moved documentation in a separate entry
---
lib/kernel/doc/src/application.xml | 13 ++++++++++---
1 file changed, 10 insertions(+), 3 deletions(-)
(limited to 'lib/kernel/doc/src/application.xml')
diff --git a/lib/kernel/doc/src/application.xml b/lib/kernel/doc/src/application.xml
index 3513e2b592..9f19efc793 100644
--- a/lib/kernel/doc/src/application.xml
+++ b/lib/kernel/doc/src/application.xml
@@ -108,20 +108,27 @@
-
Get the value of a configuration parameter
Returns the value of the configuration parameter Par
for Application. If the application argument is
omitted, it defaults to the application of the calling
- process. If Def value is provided, it is returned
- when no configuration parameter Par is defined.
+ process.
If the specified application is not loaded, or
the configuration parameter does not exist, or if the process
executing the call does not belong to any application,
the function returns undefined.
+
+
+ Get the value of a configuration parameter using a default
+
+ Works like get_env/2 but returns
+ Def value when configuration parameter
+ Par does not exist.
+
+
--
cgit v1.2.3