search for: first_arg

Displaying 6 results from an estimated 6 matches for "first_arg".

2007 Jun 01
0
Branch 'as' - 2 commits - libswfdec/Makefile.am libswfdec/swfdec_as_strings.c libswfdec/swfdec_as_types.c libswfdec/swfdec_interval.c libswfdec/swfdec_interval.h libswfdec/swfdec_player_as.c libswfdec/swfdec_player.c
..._do_set_interval (gboolean repeat, SwfdecAsObject *obj, guint argc, + SwfdecAsValue *argv, SwfdecAsValue *rval) { - SwfdecPlayer *player = JS_GetContextPrivate (cx); + SwfdecPlayer *player = SWFDEC_PLAYER (obj->context); SwfdecAsObject *object; - SwfdecAsValue fun; - guint i, n_args, first_arg, msecs; - SwfdecAsInterval *interval; + guint id, msecs; +#define MIN_INTERVAL_TIME 10 - if (!JSVAL_IS_OBJECT (argv[0])) { + if (!SWFDEC_AS_VALUE_IS_OBJECT (&argv[0])) { SWFDEC_WARNING ("first argument to setInterval is not an object"); - return JS_TRUE; + return;...
2007 Feb 19
0
22 commits - libswfdec/js libswfdec/swfdec_debugger.c libswfdec/swfdec_js.c libswfdec/swfdec_js_global.c libswfdec/swfdec_js_movie.c libswfdec/swfdec_movie.c libswfdec/swfdec_player.c libswfdec/swfdec_player_internal.h libswfdec/swfdec_script.c
...s_interval_trigger; + ret->n_args = n_args; + return ret; +} + +static JSBool +swfdec_js_global_setInterval (JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsval *rval) +{ + SwfdecPlayer *player = JS_GetContextPrivate (cx); + JSObject *object; + jsval fun; + unsigned int i, n_args, first_arg, msecs; + SwfdecJSInterval *interval; + + if (!JSVAL_IS_OBJECT (argv[0])) { + SWFDEC_WARNING ("first argument to setInterval is not an object"); + return JS_TRUE; + } + object = JSVAL_TO_OBJECT (argv[0]); + if (JS_GetClass (object) == &js_FunctionClass) { + fun = argv[0]...
2007 Mar 14
0
10 commits - libswfdec/swfdec_flv_decoder.c libswfdec/swfdec_flv_decoder.h libswfdec/swfdec_js_global.c libswfdec/swfdec_js_movie.c libswfdec/swfdec_js_net_stream.c libswfdec/swfdec_loader.c libswfdec/swfdec_loader.h libswfdec/swfdec_loadertarget.c
...100644 --- a/libswfdec/swfdec_js_global.c +++ b/libswfdec/swfdec_js_global.c @@ -139,7 +139,7 @@ swfdec_js_global_setInterval (JSContext interval->msecs = msecs; interval->vals[0] = fun; interval->vals[1] = OBJECT_TO_JSVAL (object); - memcpy (&interval->vals[2], &argv[first_arg], n_args); + memcpy (&interval->vals[2], &argv[first_arg], n_args * sizeof (jsval)); for (i = 0; i < n_args + 2; i++) { if (!JS_AddRoot (cx, &interval->vals[i])) { /* FIXME: is it save roots that weren't added before? */ diff-tree db754a85ebcee98643d8d4d4099...
2007 Mar 29
0
libswfdec-gtk/swfdec_playback_alsa.c libswfdec/swfdec_audio_event.h libswfdec/swfdec_audio_flv.h libswfdec/swfdec_audio_stream.h libswfdec/swfdec_bits.c libswfdec/swfdec_bits.h libswfdec/swfdec_buffer.c libswfdec/swfdec_buffer.h libswfdec/swfdec_cache.c
...r of arguments to call function with */ jsval vals[0]; /* values: 0 is function, 1 is object, 2-n are arguments */ }; @@ -97,7 +97,7 @@ swfdec_js_global_setInterval (JSContext SwfdecPlayer *player = JS_GetContextPrivate (cx); JSObject *object; jsval fun; - unsigned int i, n_args, first_arg, msecs; + guint i, n_args, first_arg, msecs; SwfdecJSInterval *interval; if (!JSVAL_IS_OBJECT (argv[0])) { diff --git a/libswfdec/swfdec_morph_movie.c b/libswfdec/swfdec_morph_movie.c index 82673ee..85ccc96 100644 --- a/libswfdec/swfdec_morph_movie.c +++ b/libswfdec/swfdec_morph_movie.c @@...
2007 Mar 29
0
Branch 'as' - 9 commits - libswfdec-gtk/swfdec_playback_alsa.c libswfdec/js libswfdec/Makefile.am libswfdec/swfdec_as_context.c libswfdec/swfdec_as_context.h libswfdec/swfdec_as_frame.c libswfdec/swfdec_as_frame.h libswfdec/swfdec_as_function.c
...r of arguments to call function with */ jsval vals[0]; /* values: 0 is function, 1 is object, 2-n are arguments */ }; @@ -97,7 +97,7 @@ swfdec_js_global_setInterval (JSContext SwfdecPlayer *player = JS_GetContextPrivate (cx); JSObject *object; jsval fun; - unsigned int i, n_args, first_arg, msecs; + guint i, n_args, first_arg, msecs; SwfdecJSInterval *interval; if (!JSVAL_IS_OBJECT (argv[0])) { diff --git a/libswfdec/swfdec_morph_movie.c b/libswfdec/swfdec_morph_movie.c index 82673ee..85ccc96 100644 --- a/libswfdec/swfdec_morph_movie.c +++ b/libswfdec/swfdec_morph_movie.c @@...
2017 Jun 21
6
RFC: Cleaning up the Itanium demangler
...++t; + result = db.template make<top_level_function_decl>(return_type, db.names.back(), 0u, nullptr); + db.names.pop_back(); } else { - bool first_arg = true; + size_t params_begin = db.names.size(); while (true) { - size_t k0 = db.names.size(); t2 = parse_type(t, last, db); - size_t k1 = db.n...