Update of /cvsroot/monetdb/MonetDB5/src/modules/kernel
In directory sc8-pr-cvs16:/tmp/cvs-serv10274/kernel
Modified Files:
alarm.mx mmath.mx
Log Message:
Functions should be marked 'unsafe' if their call is
dependent on the execution context. This property is used
in the opt_evaluate to pre-compute constant expressions
whereever possible.
Index: mmath.mx
===================================================================
RCS file: /cvsroot/monetdb/MonetDB5/src/modules/kernel/mmath.mx,v
retrieving revision 1.33
retrieving revision 1.34
diff -u -d -r1.33 -r1.34
--- mmath.mx 23 Mar 2007 22:30:26 -0000 1.33
+++ mmath.mx 20 May 2007 09:54:08 -0000 1.34
@@ -190,7 +190,7 @@
@+ Random numbers
@mal
-command rand () :int
+command rand{unsafe} () :int
address MATHrandint
comment "return a random number";
command srand(seed:int) :void
Index: alarm.mx
===================================================================
RCS file: /cvsroot/monetdb/MonetDB5/src/modules/kernel/alarm.mx,v
retrieving revision 1.43
retrieving revision 1.44
diff -u -d -r1.43 -r1.44
--- alarm.mx 10 Apr 2007 07:38:06 -0000 1.43
+++ alarm.mx 20 May 2007 09:54:08 -0000 1.44
@@ -36,19 +36,19 @@
command alarm(secs:int, action:str):void
address ALARMsetalarm
comment "execute action in X secs";
-command timers() :bat[:str,:str]
+command timers{unsafe}() :bat[:str,:str]
address ALARMtimers
comment "give a list of all active timers";
-command usec() :lng
+command usec{unsafe}() :lng
address ALARMusec
comment "return cpu microseconds info";
-command time() :int
+command time{unsafe}() :int
address ALARMtime
comment "time in millisecs";
-command epoch() :int
+command epoch{unsafe}() :int
address ALARMepoch
comment "current time as unix epoch";
-command ctime() :str
+command ctime{unsafe}() :str
address ALARMctime
comment "current time as a string";
command prelude():void
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Monetdb-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-checkins