svn commit: samba r8341 - in branches/SAMBA_4_0/source/lib/ejs: .

tridge at samba.org tridge at samba.org
Tue Jul 12 05:54:22 GMT 2005


Author: tridge
Date: 2005-07-12 05:54:21 +0000 (Tue, 12 Jul 2005)
New Revision: 8341

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=8341

Log:
enable floating point support in ejs

Modified:
   branches/SAMBA_4_0/source/lib/ejs/config.h
   branches/SAMBA_4_0/source/lib/ejs/miniMpr.h
   branches/SAMBA_4_0/source/lib/ejs/var.c


Changeset:
Modified: branches/SAMBA_4_0/source/lib/ejs/config.h
===================================================================
--- branches/SAMBA_4_0/source/lib/ejs/config.h	2005-07-12 05:53:51 UTC (rev 8340)
+++ branches/SAMBA_4_0/source/lib/ejs/config.h	2005-07-12 05:54:21 UTC (rev 8341)
@@ -45,7 +45,7 @@
 #define BLD_FEATURE_EJS 1
 #define BLD_FEATURE_ESP_MODULE 1
 #define BLD_FEATURE_EVAL_PERIOD 30
-#define BLD_FEATURE_FLOATING_POINT 0
+#define BLD_FEATURE_FLOATING_POINT 1
 #define BLD_FEATURE_IF_MODIFIED 0
 #define BLD_FEATURE_INT64 1
 #define BLD_FEATURE_KEEP_ALIVE 0
@@ -135,3 +135,7 @@
 #define BLD_BIN_DIR "${BLD_TOP}/bin"
 #define BLD_INC_DIR "/usr/include/${BLD_PRODUCT}"
 #define BLD_EXP_OBJ_DIR "${BLD_TOP}/obj"
+
+#ifndef MAX_FLOAT
+#define MAX_FLOAT 3.40282347e+38F
+#endif

Modified: branches/SAMBA_4_0/source/lib/ejs/miniMpr.h
===================================================================
--- branches/SAMBA_4_0/source/lib/ejs/miniMpr.h	2005-07-12 05:53:51 UTC (rev 8340)
+++ branches/SAMBA_4_0/source/lib/ejs/miniMpr.h	2005-07-12 05:54:21 UTC (rev 8341)
@@ -74,6 +74,7 @@
 #if QNX4
 	#include	<dirent.h>
 #endif
+	#include	<math.h>
 
 /********************************** Defines ***********************************/
 

Modified: branches/SAMBA_4_0/source/lib/ejs/var.c
===================================================================
--- branches/SAMBA_4_0/source/lib/ejs/var.c	2005-07-12 05:53:51 UTC (rev 8340)
+++ branches/SAMBA_4_0/source/lib/ejs/var.c	2005-07-12 05:54:21 UTC (rev 8341)
@@ -1843,7 +1843,7 @@
  *	Convert the variable to a floating point number. Only for primitive types.
  */
 
-double mprVarToFloat(MprVar *vp)
+double mprVarToFloat(const MprVar *vp)
 {
 	mprAssert(vp);
 



More information about the samba-cvs mailing list