|
|
@@ -47,8 +47,16 @@ Index: JavaScript-0.55/Makefile.PL
|
|
|
WriteMakefile(
|
|
|
'NAME' => 'JavaScript',
|
|
|
Index: JavaScript-SpiderMonkey-0.16/Makefile.PL
|
|
|
---- JavaScript-SpiderMonkey-0.16/Makefile.PL.orig 2006-06-13 13:59:05 +0200
|
|
|
-+++ JavaScript-SpiderMonkey-0.16/Makefile.PL 2006-06-29 19:20:44 +0200
|
|
|
+--- JavaScript-SpiderMonkey-0.16/Makefile.PL.orig 2006-07-22 22:49:27 +0200
|
|
|
++++ JavaScript-SpiderMonkey-0.16/Makefile.PL 2006-07-22 22:51:30 +0200
|
|
|
+@@ -27,6 +27,7 @@
|
|
|
+ );
|
|
|
+
|
|
|
+ my %possible_install_paths = (
|
|
|
++ "../js/.libs" => "../js/src",
|
|
|
+ "../js/src/*" => "../js/src",
|
|
|
+ "/usr/lib" => "/usr/include",
|
|
|
+ "/usr/local/lib" => "/usr/local/include",
|
|
|
@@ -108,7 +108,6 @@
|
|
|
'NAME' => 'JavaScript::SpiderMonkey',
|
|
|
'VERSION_FROM' => 'SpiderMonkey.pm', # finds $VERSION
|
|
|
@@ -84,179 +92,3 @@ Index: JavaScript-SpiderMonkey-0.16/SpiderMonkey.pm
|
|
|
}
|
|
|
|
|
|
1;
|
|
|
-Index: js/src/config.mk
|
|
|
---- js/src/config.mk.orig 2003-11-15 01:10:55 +0100
|
|
|
-+++ js/src/config.mk 2006-06-29 19:20:44 +0200
|
|
|
-@@ -114,7 +114,7 @@
|
|
|
-
|
|
|
- ifdef BUILD_OPT
|
|
|
- OPTIMIZER = -O
|
|
|
--DEFINES += -UDEBUG -DNDEBUG -UDEBUG_$(shell whoami)
|
|
|
-+DEFINES += -UDEBUG -DNDEBUG
|
|
|
- OBJDIR_TAG = _OPT
|
|
|
- else
|
|
|
- ifdef USE_MSVC
|
|
|
-@@ -122,7 +122,7 @@
|
|
|
- else
|
|
|
- OPTIMIZER = -g
|
|
|
- endif
|
|
|
--DEFINES += -DDEBUG -DDEBUG_$(shell whoami)
|
|
|
-+DEFINES += -DDEBUG
|
|
|
- OBJDIR_TAG = _DBG
|
|
|
- endif
|
|
|
-
|
|
|
-Index: js/src/config/SunOS5.10_i86pc.mk
|
|
|
---- /dev/null 2006-06-29 19:26:24 +0200
|
|
|
-+++ js/src/config/SunOS5.10_i86pc.mk 2006-06-29 19:20:44 +0200
|
|
|
-@@ -0,0 +1,16 @@
|
|
|
-+
|
|
|
-+CC = gcc
|
|
|
-+LD = ld
|
|
|
-+CCC = g++
|
|
|
-+CFLAGS += -Wall -Wno-format
|
|
|
-+MKSHLIB = $(LD) -shared $(XMKSHLIBOPTS)
|
|
|
-+RANLIB = echo
|
|
|
-+CPU_ARCH = $(shell uname -m)
|
|
|
-+GFX_ARCH = x
|
|
|
-+OS_CFLAGS = -DXP_UNIX -DSVR4 -DSYSV -DSOLARIS -DHAVE_LOCALTIME_R -DHAVE_VA_COPY -DVA_COPY=va_copy -DPIC -fPIC
|
|
|
-+OS_LIBS = -lsocket -lnsl -ldl
|
|
|
-+LDFLAGS =
|
|
|
-+NOSUCHFILE = /solaris-rm-f-sucks
|
|
|
-+JS_EDITLINE = 1
|
|
|
-+OS_TEST = i86pc
|
|
|
-+
|
|
|
-Index: js/src/jsapi.c
|
|
|
---- js/src/jsapi.c.orig 2006-06-16 04:01:22 +0200
|
|
|
-+++ js/src/jsapi.c 2006-06-29 19:20:44 +0200
|
|
|
-@@ -130,7 +130,7 @@
|
|
|
-
|
|
|
- static JSBool
|
|
|
- TryArgumentFormatter(JSContext *cx, const char **formatp, JSBool fromJS,
|
|
|
-- jsval **vpp, va_list *app)
|
|
|
-+ jsval **vpp, va_list app)
|
|
|
- {
|
|
|
- const char *format;
|
|
|
- JSArgumentFormatMap *map;
|
|
|
-@@ -259,8 +259,7 @@
|
|
|
- break;
|
|
|
- default:
|
|
|
- format--;
|
|
|
-- if (!TryArgumentFormatter(cx, &format, JS_TRUE, &sp,
|
|
|
-- JS_ADDRESSOF_VA_LIST(ap))) {
|
|
|
-+ if (!TryArgumentFormatter(cx, &format, JS_TRUE, &sp, ap)) {
|
|
|
- return JS_FALSE;
|
|
|
- }
|
|
|
- /* NB: the formatter already updated sp, so we continue here. */
|
|
|
-@@ -362,8 +361,7 @@
|
|
|
- break;
|
|
|
- default:
|
|
|
- format--;
|
|
|
-- if (!TryArgumentFormatter(cx, &format, JS_FALSE, &sp,
|
|
|
-- JS_ADDRESSOF_VA_LIST(ap))) {
|
|
|
-+ if (!TryArgumentFormatter(cx, &format, JS_FALSE, &sp, ap)) {
|
|
|
- goto bad;
|
|
|
- }
|
|
|
- /* NB: the formatter already updated sp, so we continue here. */
|
|
|
-Index: js/src/jsdtoa.c
|
|
|
---- js/src/jsdtoa.c.orig 2005-07-23 23:17:40 +0200
|
|
|
-+++ js/src/jsdtoa.c 2006-06-29 19:20:44 +0200
|
|
|
-@@ -247,7 +247,7 @@
|
|
|
- #define word1(x) JSDOUBLE_LO32(x)
|
|
|
- #define set_word1(x, y) JSDOUBLE_SET_LO32(x, y)
|
|
|
-
|
|
|
--#define Storeinc(a,b,c) (*(a)++ = (b) << 16 | (c) & 0xffff)
|
|
|
-+#define Storeinc(a,b,c) (*(a)++ = (b) << 16 | ((c) & 0xffff))
|
|
|
-
|
|
|
- /* #define P DBL_MANT_DIG */
|
|
|
- /* Ten_pmax = floor(P*log(2)/log(5)) */
|
|
|
-@@ -1826,6 +1826,7 @@
|
|
|
- }
|
|
|
- #ifdef Avoid_Underflow
|
|
|
- if (scale) {
|
|
|
-+ rv0 = 0.; /* calm the compiler warning */
|
|
|
- set_word0(rv0, Exp_1 - P*Exp_msk1);
|
|
|
- set_word1(rv0, 0);
|
|
|
- if ((word0(rv) & Exp_mask) <= P*Exp_msk1
|
|
|
-Index: js/src/jsinterp.c
|
|
|
---- js/src/jsinterp.c.orig 2006-06-16 03:28:02 +0200
|
|
|
-+++ js/src/jsinterp.c 2006-06-29 19:24:50 +0200
|
|
|
-@@ -1740,12 +1740,12 @@
|
|
|
- void *mark;
|
|
|
- jsbytecode *endpc, *pc2;
|
|
|
- JSOp op, op2;
|
|
|
-- const JSCodeSpec *cs;
|
|
|
-+ const JSCodeSpec *cs = NULL;
|
|
|
- jsatomid atomIndex;
|
|
|
- JSAtom *atom;
|
|
|
- uintN argc, slot, attrs;
|
|
|
- jsval *vp, lval, rval, ltmp, rtmp;
|
|
|
-- jsid id;
|
|
|
-+ jsid id = -1L;
|
|
|
- JSObject *withobj, *origobj, *propobj;
|
|
|
- jsval iter_state;
|
|
|
- JSProperty *prop;
|
|
|
-@@ -1757,7 +1757,7 @@
|
|
|
- JSFunction *fun;
|
|
|
- JSType type;
|
|
|
- #ifdef DEBUG
|
|
|
-- FILE *tracefp;
|
|
|
-+ FILE *tracefp = NULL;
|
|
|
- #endif
|
|
|
- #if JS_HAS_EXPORT_IMPORT
|
|
|
- JSIdArray *ida;
|
|
|
-@@ -5526,6 +5526,7 @@
|
|
|
- if (printable)
|
|
|
- js_ReportIsNotDefined(cx, printable);
|
|
|
- ok = JS_FALSE;
|
|
|
-+ sp = NULL;
|
|
|
- goto out;
|
|
|
- }
|
|
|
- }
|
|
|
-Index: js/src/jsosdep.h
|
|
|
---- js/src/jsosdep.h.orig 2005-07-08 00:35:39 +0200
|
|
|
-+++ js/src/jsosdep.h 2006-06-29 19:20:44 +0200
|
|
|
-@@ -86,7 +86,7 @@
|
|
|
- #elif defined(SOLARIS)
|
|
|
- #define JS_HAVE_LONG_LONG
|
|
|
-
|
|
|
--#elif defined(FREEBSD)
|
|
|
-+#elif defined(FREEBSD) || defined(__FreeBSD__)
|
|
|
- #define JS_HAVE_LONG_LONG
|
|
|
-
|
|
|
- #elif defined(SUNOS4)
|
|
|
-Index: js/src/jspubtd.h
|
|
|
---- js/src/jspubtd.h.orig 2005-10-22 01:30:23 +0200
|
|
|
-+++ js/src/jspubtd.h 2006-06-29 19:20:44 +0200
|
|
|
-@@ -561,7 +561,7 @@
|
|
|
- typedef JSBool
|
|
|
- (* JS_DLL_CALLBACK JSArgumentFormatter)(JSContext *cx, const char *format,
|
|
|
- JSBool fromJS, jsval **vpp,
|
|
|
-- va_list *app);
|
|
|
-+ va_list app);
|
|
|
- #endif
|
|
|
-
|
|
|
- typedef JSBool
|
|
|
-Index: js/src/perlconnect/JS.xs
|
|
|
---- js/src/perlconnect/JS.xs.orig 2005-11-25 09:16:37 +0100
|
|
|
-+++ js/src/perlconnect/JS.xs 2006-06-29 19:20:44 +0200
|
|
|
-@@ -61,7 +61,7 @@
|
|
|
-
|
|
|
- #include <jsapi.h>
|
|
|
- #include "jsperlpvt.h"
|
|
|
--#include <malloc.h>
|
|
|
-+#include <stdlib.h>
|
|
|
-
|
|
|
- /* __REMOVE__ */
|
|
|
- /* #include <stdio.h> */
|
|
|
-Index: js/src/rules.mk
|
|
|
---- js/src/rules.mk.orig 2003-11-15 01:11:04 +0100
|
|
|
-+++ js/src/rules.mk 2006-06-29 19:20:44 +0200
|
|
|
-@@ -58,7 +58,7 @@
|
|
|
- # TARGETS = $(LIBRARY) # $(PROGRAM) not supported for MSVC yet
|
|
|
- TARGETS += $(SHARED_LIBRARY) $(PROGRAM) # it is now
|
|
|
- else
|
|
|
--TARGETS += $(LIBRARY) $(SHARED_LIBRARY) $(PROGRAM)
|
|
|
-+TARGETS += $(LIBRARY) $(PROGRAM)
|
|
|
- endif
|
|
|
-
|
|
|
- all:
|