search for: js_intern

Displaying 3 results from an estimated 3 matches for "js_intern".

Did you mean: _intern
2007 Jan 26
0
Branch 'interpreter' - 9 commits - libswfdec/js libswfdec/Makefile.am libswfdec/swfdec_debugger.c libswfdec/swfdec_debugger.h libswfdec/swfdec_edittext_movie.c libswfdec/swfdec_event.c libswfdec/swfdec_js.c libswfdec/swfdec_js_global.c
...wfdec/js/jsatom.h b/libswfdec/js/jsatom.h index d9d2025..6f486c3 100644 --- a/libswfdec/js/jsatom.h +++ b/libswfdec/js/jsatom.h @@ -58,7 +58,6 @@ JS_BEGIN_EXTERN_C #define ATOM_PINNED 0x01 /* atom is pinned against GC */ #define ATOM_INTERNED 0x02 /* pinned variant for JS_Intern* API */ #define ATOM_MARK 0x04 /* atom is reachable via GC */ -#define ATOM_NOCASE 0x20 /* treat atom case-insensitive */ #define ATOM_NOCOPY 0x40 /* don't copy atom string bytes */ #define ATOM_TMPSTR 0x80 /* internal, to avoid extra string */...
2007 Jan 25
0
Branch 'interpreter' - 28 commits - configure.ac libswfdec/js libswfdec/swfdec_buffer.c libswfdec/swfdec_edittext_movie.c libswfdec/swfdec_js.c libswfdec/swfdec_js_global.c libswfdec/swfdec_js.h libswfdec/swfdec_js_movie.c libswfdec/swfdec_player.c
...val); + } else { + if (!JS_ValueToNumber(cx, lval, &l) || + !JS_ValueToNumber(cx, rval, &r)) + return JS_FALSE; + } + cx->fp->sp--; switch (action) { case 0x0a: l = l + r; @@ -557,17 +564,22 @@ swfdec_action_binary (JSContext *cx, gui JSString *str = JS_InternString (cx, "#ERROR#"); if (str == NULL) return JS_FALSE; - cx->fp->sp--; cx->fp->sp[-1] = STRING_TO_JSVAL (str); return JS_TRUE; } + if (((SwfdecScript *) cx->fp->swf)->version >= 7 && + JSVAL_IS_VOID (rval)) { + cx->fp->sp[-1]...
2007 Feb 06
0
109 commits - configure.ac libswfdec/js libswfdec/Makefile.am libswfdec/swfdec_bits.c libswfdec/swfdec_bits.h libswfdec/swfdec_buffer.c libswfdec/swfdec_button_movie.c libswfdec/swfdec_codec_screen.c libswfdec/swfdec_color.c libswfdec/swfdec_color.h
...bswfdec/js/jsnum.c index 1e92a7a..d9063f4 100644 --- a/libswfdec/js/jsnum.c +++ b/libswfdec/js/jsnum.c @@ -249,6 +249,15 @@ IntToString(jsint i, char *buf, size_t b static JSBool num_toString(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsval *rval) { + JSString *string; + + string = JS_InternString (cx, "[type Object]"); + if (string == NULL) + return JS_FALSE; + + *rval = STRING_TO_JSVAL (string); + return JS_TRUE; +#if 0 jsval v; jsdouble d; jsint base; @@ -286,6 +295,7 @@ num_toString(JSContext *cx, JSObject *ob return JS_FALSE; *rval = STRING_TO...