[Freeswitch-trunk] [commit] r3697 - in freeswitch/trunk: libs/js libs/js/src src/mod/languages/mod_spidermonkey

Freeswitch SVN anthm at freeswitch.org
Mon Dec 18 13:31:38 EST 2006


Author: anthm
Date: Mon Dec 18 13:31:38 2006
New Revision: 3697

Modified:
   freeswitch/trunk/libs/js/Makefile.in
   freeswitch/trunk/libs/js/src/jsautocfg.h
   freeswitch/trunk/src/mod/languages/mod_spidermonkey/mod_spidermonkey.h

Log:
wip

Modified: freeswitch/trunk/libs/js/Makefile.in
==============================================================================
--- freeswitch/trunk/libs/js/Makefile.in	(original)
+++ freeswitch/trunk/libs/js/Makefile.in	Mon Dec 18 13:31:38 2006
@@ -187,6 +187,8 @@
 	$(SHTOOL) install -c -m 644 js-config.1 $(DESTDIR)$(mandir)/man1/
 	$(SHTOOL) install -c -m 644 js.3 $(DESTDIR)$(mandir)/man3/
 	$(SHTOOL) install -c -m 644 src/js*.h $(DESTDIR)$(includedir)/js/
+	$(SHTOOL) install -c -m 644 src/jsopcode.tbl $(DESTDIR)$(includedir)/js/
+	$(SHTOOL) install -c -m 644 src/js.msg $(DESTDIR)$(includedir)/js/
 	@$(LIBTOOL) --mode=install $(SHTOOL) install -c -m 644 $(LIB_NAME) $(DESTDIR)$(libdir)/
 	$(SHTOOL) install -c -m 644 js.pc $(DESTDIR)$(libdir)/pkgconfig/
 	$(SHTOOL) install -c -m 755 js-config.sh $(DESTDIR)$(bindir)/js-config

Modified: freeswitch/trunk/libs/js/src/jsautocfg.h
==============================================================================
--- freeswitch/trunk/libs/js/src/jsautocfg.h	(original)
+++ freeswitch/trunk/libs/js/src/jsautocfg.h	Mon Dec 18 13:31:38 2006
@@ -10,42 +10,42 @@
 #define JS_BYTES_PER_SHORT  2L
 #define JS_BYTES_PER_INT    4L
 #define JS_BYTES_PER_INT64  8L
-#define JS_BYTES_PER_LONG   4L
+#define JS_BYTES_PER_LONG   8L
 #define JS_BYTES_PER_FLOAT  4L
 #define JS_BYTES_PER_DOUBLE 8L
-#define JS_BYTES_PER_WORD   4L
+#define JS_BYTES_PER_WORD   8L
 #define JS_BYTES_PER_DWORD  8L
 
 #define JS_BITS_PER_BYTE    8L
 #define JS_BITS_PER_SHORT   16L
 #define JS_BITS_PER_INT     32L
 #define JS_BITS_PER_INT64   64L
-#define JS_BITS_PER_LONG    32L
+#define JS_BITS_PER_LONG    64L
 #define JS_BITS_PER_FLOAT   32L
 #define JS_BITS_PER_DOUBLE  64L
-#define JS_BITS_PER_WORD    32L
+#define JS_BITS_PER_WORD    64L
 
 #define JS_BITS_PER_BYTE_LOG2   3L
 #define JS_BITS_PER_SHORT_LOG2  4L
 #define JS_BITS_PER_INT_LOG2    5L
 #define JS_BITS_PER_INT64_LOG2  6L
-#define JS_BITS_PER_LONG_LOG2   5L
+#define JS_BITS_PER_LONG_LOG2   6L
 #define JS_BITS_PER_FLOAT_LOG2  5L
 #define JS_BITS_PER_DOUBLE_LOG2 6L
-#define JS_BITS_PER_WORD_LOG2   5L
+#define JS_BITS_PER_WORD_LOG2   6L
 
 #define JS_ALIGN_OF_SHORT   2L
 #define JS_ALIGN_OF_INT     4L
-#define JS_ALIGN_OF_LONG    4L
-#define JS_ALIGN_OF_INT64   4L
+#define JS_ALIGN_OF_LONG    8L
+#define JS_ALIGN_OF_INT64   8L
 #define JS_ALIGN_OF_FLOAT   4L
-#define JS_ALIGN_OF_DOUBLE  4L
-#define JS_ALIGN_OF_POINTER 4L
-#define JS_ALIGN_OF_WORD    4L
+#define JS_ALIGN_OF_DOUBLE  8L
+#define JS_ALIGN_OF_POINTER 8L
+#define JS_ALIGN_OF_WORD    8L
 
-#define JS_BYTES_PER_WORD_LOG2   2L
+#define JS_BYTES_PER_WORD_LOG2   3L
 #define JS_BYTES_PER_DWORD_LOG2  3L
-#define JS_WORDS_PER_DWORD_LOG2  1L
+#define JS_WORDS_PER_DWORD_LOG2  0L
 
 #define JS_STACK_GROWTH_DIRECTION (-1)
 

Modified: freeswitch/trunk/src/mod/languages/mod_spidermonkey/mod_spidermonkey.h
==============================================================================
--- freeswitch/trunk/src/mod/languages/mod_spidermonkey/mod_spidermonkey.h	(original)
+++ freeswitch/trunk/src/mod/languages/mod_spidermonkey/mod_spidermonkey.h	Mon Dec 18 13:31:38 2006
@@ -76,7 +76,7 @@
 #define SWITCH_SM_DECLARE(type) type
 #endif
 
-static int eval_some_js(char *code, JSContext *cx, JSObject *obj, jsval *rval)
+int eval_some_js(char *code, JSContext *cx, JSObject *obj, jsval *rval)
 {
 	JSScript *script = NULL;
 	char *cptr;



More information about the Freeswitch-trunk mailing list