Update of /cvsroot/monetdb/MonetDB5/src/modules/atoms
In directory sc8-pr-cvs16:/tmp/cvs-serv10274/atoms
Modified Files:
mtime.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: mtime.mx
===================================================================
RCS file: /cvsroot/monetdb/MonetDB5/src/modules/atoms/mtime.mx,v
retrieving revision 1.95
retrieving revision 1.96
diff -u -d -r1.95 -r1.96
--- mtime.mx 1 Apr 2007 21:55:02 -0000 1.95
+++ mtime.mx 20 May 2007 09:54:06 -0000 1.96
@@ -301,13 +301,14 @@
command tostr():str
address timestamp_tostr;
-command unix_epoch():timestamp
+
+command unix_epoch{unsafe}():timestamp
address MTIMEunix_epoch
comment "The Unix epoch time (00:00:00 UTC on January 1, 1970)";
-command epoch():timestamp
+command epoch{unsafe}():timestamp
address MTIMEepoch
comment "unix-time (epoch) support: seconds since the Unix epoch";
-command epoch(t:timestamp):lng
+command epoch{unsafe}(t:timestamp):lng
address MTIMEepoch2lng
comment "unix-time (epoch) support: seconds since epoch";
@@ -754,7 +755,7 @@
command seconds(secs:lng):int
address MTIMEsql_seconds;
-command msec():lng
+command msec{unsafe}():lng
address MTIMEmsec
comment "get time of day in msec since 1-1-1970.";
-------------------------------------------------------------------------
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