Author: aschnell
Date: Fri Jun 13 17:05:10 2008
New Revision: 48308
URL: http://svn.opensuse.org/viewcvs/yast?rev=48308&view=rev
Log:
- added Integer.ycp module with Range function
Added:
trunk/yast2/library/types/src/Integer.ycp
Modified:
trunk/yast2/VERSION
trunk/yast2/package/yast2.changes
Modified: trunk/yast2/VERSION
URL: http://svn.opensuse.org/viewcvs/yast/trunk/yast2/VERSION?rev=48308&r1=48307&r2=48308&view=diff
==============================================================================
--- trunk/yast2/VERSION (original)
+++ trunk/yast2/VERSION Fri Jun 13 17:05:10 2008
@@ -1 +1 @@
-2.16.71
+2.17.0
Added: trunk/yast2/library/types/src/Integer.ycp
URL: http://svn.opensuse.org/viewcvs/yast/trunk/yast2/library/types/src/Integer.ycp?rev=48308&view=auto
==============================================================================
--- trunk/yast2/library/types/src/Integer.ycp (added)
+++ trunk/yast2/library/types/src/Integer.ycp Fri Jun 13 17:05:10 2008
@@ -0,0 +1,29 @@
+/**
+ * File: modules/Integer.ycp
+ * Package: yast2
+ * Summary: Integer routines
+ * Authors: Arvin Schnell
+ *
+ * $Id: Integer.ycp 45945 2008-04-01 19:41:01Z aschnell $
+ */
+
+{
+ module "Integer";
+ textdomain "base";
+
+
+ /**
+ * Generate a list<integer> with the integers from 0 to n-1.
+ */
+ global list<integer> Range(integer n)
+ {
+ list<integer> ret = [];
+ integer i = 0;
+ while (i < n)
+ {
+ ret = add(ret, i);
+ i = i + 1;
+ }
+ return ret;
+ }
+}
Modified: trunk/yast2/package/yast2.changes
URL: http://svn.opensuse.org/viewcvs/yast/trunk/yast2/package/yast2.changes?rev=48308&r1=48307&r2=48308&view=diff
==============================================================================
--- trunk/yast2/package/yast2.changes (original)
+++ trunk/yast2/package/yast2.changes Fri Jun 13 17:05:10 2008
@@ -1,4 +1,10 @@
-------------------------------------------------------------------
+Fri Jun 13 16:57:42 CEST 2008 - aschnell@suse.de
+
+- added Integer.ycp module with Range function
+- 2.17.0
+
+-------------------------------------------------------------------
Fri Jun 13 15:02:15 CEST 2008 - locilka@suse.cz
- Opening fallback ports in case of SSH and / or VNC installation
--
To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org
For additional commands, e-mail: yast-commit+help@opensuse.org