Author: locilka Date: Wed Aug 27 12:16:12 2008 New Revision: 50397 URL: http://svn.opensuse.org/viewcvs/yast?rev=50397&view=rev Log: - Enabled getenv builtin. Modified: trunk/core/libycp/src/YCPBuiltinMisc.cc trunk/core/package/yast2-core.changes Modified: trunk/core/libycp/src/YCPBuiltinMisc.cc URL: http://svn.opensuse.org/viewcvs/yast/trunk/core/libycp/src/YCPBuiltinMisc.cc?rev=50397&r1=50396&r2=50397&view=diff ============================================================================== --- trunk/core/libycp/src/YCPBuiltinMisc.cc (original) +++ trunk/core/libycp/src/YCPBuiltinMisc.cc Wed Aug 27 12:16:12 2008 @@ -216,13 +216,11 @@ } - -#if 0 static YCPString Getenv (const YCPString & name) { /** - * @bu iltin getenv + * @builtin getenv * @short Change or add an environment variable * @description * The getenv(variable) function returns the value of variable from @@ -231,7 +229,8 @@ * * @param string name * @return string value - * @usage getenv("name") + * @usage getenv ("USER") -> "root" + * @usage getenv ("LC_CTYPE") -> "en_US.UTF-8" */ char *value = getenv(name->value().c_str()); @@ -241,9 +240,8 @@ } else { return YCPNull(); } - } -#endif + static YCPValue Eval (const YCPValue & v) @@ -625,7 +623,7 @@ { "random", "integer (integer)", (void *)Random }, { "setenv", "boolean (string,string)", (void *)Setenv1 }, { "setenv", "boolean (string,string,boolean)", (void *)Setenv2 }, - //{ "getenv", "string (string)", (void *)Getenv }, //function exist in other module + { "getenv", "string (string)", (void *)Getenv }, { "srandom", "integer ()", (void *)Srandom1 }, { "srandom", "void (integer)", (void *)Srandom2 }, { "eval", "flex (block <flex>)", (void *)Eval, DECL_NIL|DECL_FLEX }, Modified: trunk/core/package/yast2-core.changes URL: http://svn.opensuse.org/viewcvs/yast/trunk/core/package/yast2-core.changes?rev=50397&r1=50396&r2=50397&view=diff ============================================================================== --- trunk/core/package/yast2-core.changes (original) +++ trunk/core/package/yast2-core.changes Wed Aug 27 12:16:12 2008 @@ -1,4 +1,9 @@ ------------------------------------------------------------------- +Wed Aug 27 12:13:27 CEST 2008 - locilka@suse.cz + +- Enabled getenv builtin. + +------------------------------------------------------------------- Wed Aug 13 15:10:50 CEST 2008 - aschnell@suse.de - added tohexstring builtin with width parameter -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org