search for: funobj

Displaying 4 results from an estimated 4 matches for "funobj".

Did you mean: fnobj
2009 Oct 11
1
Function Help
Hi there, I have created the function below: pirate<-function(x){ a<-x-1; b<-a/5; c<-a-b; d<-c-1; e<-d/5; f<-d-e; g<-f-1; h<-g/5; i<-g-h; j<-i-1; k<-j/5; l<-j-k; m<-l-1; n<-m/5; o<-m-n; final<-o/5; final } I want to run this function until the output ('final') is an exact integer (e.g. 893.00000 rather than 893.78332). I then need to
2007 Jan 31
0
Branch 'interpreter' - 20 commits - autogen.sh configure.ac libswfdec/js libswfdec/swfdec_debug.h libswfdec/swfdec_js.c libswfdec/swfdec_js_color.c libswfdec/swfdec_js_movie.c libswfdec/swfdec_movie.c libswfdec/swfdec_movie.h libswfdec/swfdec_script.c
...to SWF code diff --git a/libswfdec/js/jsinterp.c b/libswfdec/js/jsinterp.c index 1d15966..ce8d014 100644 --- a/libswfdec/js/jsinterp.c +++ b/libswfdec/js/jsinterp.c @@ -963,7 +963,10 @@ have_fun: } ok = js_Interpret(cx, &v); } else if (swf) { - frame.scopeChain = funobj; /* FIXME */ + if (!js_GetCallObject(cx, &frame, parent)) { + ok = JS_FALSE; + goto out; + } ok = swfdec_script_interpret(swf, cx, &v); } else { /* fun might be onerror trying to report a syntax error in itself. */ diff-tree ee7ecfa22195201642e114bfdb24d28aa69...
2007 Mar 12
0
11 commits - libswfdec/js libswfdec/swfdec_loader.c libswfdec/swfdec_root_sprite.c libswfdec/swfdec_script.c player/swfdebug.c player/swfdec_player_manager.c test/trace
...ector[1]; /* actually, length jsid words */ }; diff --git a/libswfdec/js/jsinterp.c b/libswfdec/js/jsinterp.c index 121962f..fbf54b8 100644 --- a/libswfdec/js/jsinterp.c +++ b/libswfdec/js/jsinterp.c @@ -1205,7 +1205,7 @@ ImportProperty(JSContext *cx, JSObject * JSObject *obj2, *target, *funobj, *closure; JSString *str; uintN attrs; - jsint i; + jsuint i; jsval value; if (JSVAL_IS_VOID(id)) {
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
...to SWF code diff --git a/libswfdec/js/jsinterp.c b/libswfdec/js/jsinterp.c index 1d15966..ce8d014 100644 --- a/libswfdec/js/jsinterp.c +++ b/libswfdec/js/jsinterp.c @@ -963,7 +963,10 @@ have_fun: } ok = js_Interpret(cx, &v); } else if (swf) { - frame.scopeChain = funobj; /* FIXME */ + if (!js_GetCallObject(cx, &frame, parent)) { + ok = JS_FALSE; + goto out; + } ok = swfdec_script_interpret(swf, cx, &v); } else { /* fun might be onerror trying to report a syntax error in itself. */ diff-tree ee7ecfa22195201642e114bfdb24d28aa69...