search for: callmethod

Displaying 20 results from an estimated 27 matches for "callmethod".

2007 Nov 14
0
4 commits - libswfdec/swfdec_as_interpret.c test/trace
libswfdec/swfdec_as_interpret.c | 3 test/trace/Makefile.am | 18 ++++ test/trace/callmethod-this-5.swf |binary test/trace/callmethod-this-5.swf.trace | 136 +++++++++++++++++++++++++++++++++ test/trace/callmethod-this-6.swf |binary test/trace/callmethod-this-6.swf.trace | 134 ++++++++++++++++++++++++++++++++ test/trace/callmethod-this-7.swf |binary test/trace/callm...
2007 May 22
0
Branch 'as' - 9 commits - libswfdec/swfdec_as_frame.c libswfdec/swfdec_as_function.c libswfdec/swfdec_as_function.h libswfdec/swfdec_as_interpret.c libswfdec/swfdec_as_native_function.c libswfdec/swfdec_as_object.c libswfdec/swfdec_as_script_function.c
...| 45 +++++++++++++++++++++-- libswfdec/swfdec_as_super.h | 11 +++-- libswfdec/swfdec_debug.c | 5 +- libswfdec/swfdec_debug.h | 5 ++ test/trace/Makefile.am | 7 +++ test/trace/callmethod-undefined-this-5.swf |binary test/trace/callmethod-undefined-this-5.swf.trace | 5 ++ test/trace/callmethod-undefined-this-6.swf |binary test/trace/callmethod-undefined-this-6.swf.trace | 5 ++ test/trace/callmethod-undefined-this-7.swf |binary test/trace/callmethod-undef...
2007 Nov 15
0
4 commits - libswfdec/swfdec_asbroadcaster.c libswfdec/swfdec_as_frame.c libswfdec/swfdec_as_frame_internal.h libswfdec/swfdec_as_function.c libswfdec/swfdec_as_interpret.c test/trace
...rguments-5.swf.trace b/test/trace/arguments-5.swf.trace index 02fbeb4..7e8718f 100644 --- a/test/trace/arguments-5.swf.trace +++ b/test/trace/arguments-5.swf.trace @@ -2,23 +2,49 @@ Global: arguments: caller: callee: -Child CallFunction: +Child: arguments: caller: null -callee: func -Child CallMethod: +callee: child +Run: arguments: caller: null -callee: func +callee: run +Child CallFunction: +arguments: +caller: run +callee: child +Child CallMethod: +arguments: +caller: run +callee: child + +toString: +arguments: +caller: run +callee: func_and_child +Child: +arguments: +caller: func_and...
2007 Jul 04
0
Branch 'as' - 25 commits - libswfdec/Makefile.am libswfdec/swfdec_as_boolean.c libswfdec/swfdec_as_boolean.h 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
...|binary test/trace/call-arguments-7.swf.trace | 232 +++++++++++++++++++++++ test/trace/call-arguments-8.swf |binary test/trace/call-arguments-8.swf.trace | 232 +++++++++++++++++++++++ test/trace/call-arguments.as | 19 + test/trace/callmethod-undefined-this-5.swf |binary test/trace/callmethod-undefined-this-5.swf.trace | 2 test/trace/callmethod-undefined-this-6.swf |binary test/trace/callmethod-undefined-this-6.swf.trace | 2 test/trace/callmethod-undefined-this-7.swf |binary test/trace/callmethod-undefined...
2009 Jan 08
1
Callbacks seems to get GCed.
...de <R_ext/Rdynload.h> #include <R_ext/RStartup.h> #include <Rinterface.h> SEXP callback1; SEXP callback2; void set_callback1(SEXP func) { PROTECT(callback1 = func); } void set_callback2(SEXP func) { PROTECT(callback2 = func); } R_CMethodDef cMethods[] = { {NULL} }; R_CallMethodDef callMethods[] = { {"set_callback1", (DL_FUNC) &set_callback1, 1}, {"set_callback2", (DL_FUNC) &set_callback2, 1}, {NULL} }; void r_trigger_callback1() { int errorOccurred; SEXP f = NULL; f = allocVector(LANGSXP, 1); SETCAR(f, callback1); PROT...
2009 Sep 03
1
Running an expression 1MN times using embedded R
...extern void (*ptr_R_ShowMessage)(const char *); extern void (*ptr_R_WriteConsole)(const char *, int); extern int (*ptr_R_ReadConsole)(char *, unsigned char *, int, int); extern void (*ptr_R_WriteConsoleEx)(const char *, int , int ); SEXP rh_status(SEXP); static uint8_t SET_STATUS = 0x02; static R_CallMethodDef callMethods [] = { {"rh_status",(DL_FUNC)&rh_status,1}, {NULL, NULL, 0} }; uint32_t reverseUInt (uint32_t i) { uint8_t c1, c2, c3, c4; if (is_bigendian()) { return i; } else { c1 = i & 255; c2 = (i >> 8) & 255;...
2003 Oct 10
1
number of arguments in .Call function registration
...resting. Many of us use a macro like #define CALL_DEF(fname, nargs) { #fname, (DL_FUNC)&fname, nargs} for use in function registration for use with .Call. For example, using the example from R Extension manual, if we want to register a C function myCall with three arguments, we will use R_CallMethodDef callMethods[] = { CALL_DEF(myCall, 3), {NULL, NULL, 0} }; instead of using R_CallMethodDef callMethods[] = { {"myCall", (DL_FUNC)&myCall, 3}, {NULL, NULL, 0} }; However, there is no way for the compiler to make sure that myCall is really a function taking three S...
2007 May 01
1
Embedding R and registering routines
Hello, The use of .Call and the like all depend on loading shared libraries and registering routines from it. Also, .Primitive and .Internal depend on routines being registered in the R binary. And applications that embed R can override routines declared in Rinterfac.h, but is there a way for an application embedding R to register other routines defined in the application without loading a
2007 Nov 15
2
Changes to 'refs/tags/0.5.4'
Tag '0.5.4' created by Benjamin Otte <otte at gnome.org> at 2007-11-15 10:12 -0800 release 0.5.4 ("Turkish Cycling Federation") -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQBHPBurvMv5VCdLq8QRAj1KAJ40NHRRS3gKyJjSjyyoH7gDaGi/tQCeOha/ R5PF4bZQqmSdJ64t8EbD4cA= =8qBy -----END PGP SIGNATURE----- Changes since the dawn of time: Benjamin Otte (40):
2007 Feb 19
0
2 commits - libswfdec/swfdec_script.c test/swfdec-extract.c
...-extract.c | 8 ++++---- 2 files changed, 7 insertions(+), 4 deletions(-) New commits: diff-tree ba5327ffe305de547d40a282a1d866a2cf9e992e (from 842b4b558af7b8ad68f47fd7473989fc46fd23d6) Author: Benjamin Otte <otte@gnome.org> Date: Mon Feb 19 23:06:14 2007 +0100 Add a warning in CallMethod if a function doesn't exist diff --git a/libswfdec/swfdec_script.c b/libswfdec/swfdec_script.c index 824861b..f8a9623 100644 --- a/libswfdec/swfdec_script.c +++ b/libswfdec/swfdec_script.c @@ -675,6 +675,9 @@ swfdec_action_call_method (JSContext *cx } else { if (!JS_GetProperty (cx, ob...
2007 Mar 07
1
2 commits - libswfdec/swfdec_script.c test/trace
libswfdec/swfdec_script.c | 14 ++++++++++++-- test/trace/Makefile.am | 2 ++ test/trace/gotoframe.swf |binary test/trace/gotoframe.swf.trace | 13 +++++++++++++ 4 files changed, 27 insertions(+), 2 deletions(-) New commits: diff-tree 12348410a3509928a6e8e4c8ca00292a58ff542c (from 46e62d4410c20c19774a45758d8ebf11cd0bdf96) Author: Benjamin Otte <otte@gnome.org>
2007 May 29
0
Branch 'as' - 6 commits - libswfdec/swfdec_as_interpret.c libswfdec/swfdec_js_xml.c libswfdec/swfdec_tag.c player/swfplay.c
...NULL, NULL, swfdec_action_increment, swfdec_action_increment, swfdec_action_increment } }, [SWFDEC_AS_ACTION_DECREMENT] = { "Decrement", NULL, 1, 1, { NULL, NULL, swfdec_action_decrement, swfdec_action_decrement, swfdec_action_decrement } }, [SWFDEC_AS_ACTION_CALL_METHOD] = { "CallMethod", NULL, -1, 1, { NULL, NULL, swfdec_action_call_method, swfdec_action_call_method, swfdec_action_call_method } }, -#if 0 - [0x53] = { "NewMethod", NULL, -1, 1, { NULL, NULL, swfdec_action_new_method, swfdec_action_new_method, swfdec_action_new_method } }, + [SWFDEC_AS_ACTION_NEW_ME...
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
...0x50] = { "Increment", NULL, 1, 1, { NULL, NULL, swfdec_action_increment, swfdec_action_increment, swfdec_action_increment } }, + [0x51] = { "Decrement", NULL, 1, 1, { NULL, NULL, swfdec_action_decrement, swfdec_action_decrement, swfdec_action_decrement } }, [0x52] = { "CallMethod", NULL, -1, 1, { NULL, NULL, swfdec_action_call_method, swfdec_action_call_method, swfdec_action_call_method } }, [0x53] = { "NewMethod", NULL }, /* version 6 */ diff-tree f2e4bc2ff2bfa289f325e525619b79dcf4815f9c (from 568f6fdf0b44ea7cfcc87b33ed4ac09e88bbd47e) Author: Benjamin...
2007 Mar 05
0
5 commits - libswfdec/swfdec_js.h libswfdec/swfdec_js_movie.c libswfdec/swfdec_script.c test/trace
...0x50] = { "Increment", NULL, 1, 1, { NULL, NULL, swfdec_action_increment, swfdec_action_increment, swfdec_action_increment } }, [0x51] = { "Decrement", NULL, 1, 1, { NULL, NULL, swfdec_action_decrement, swfdec_action_decrement, swfdec_action_decrement } }, [0x52] = { "CallMethod", NULL, -1, 1, { NULL, NULL, swfdec_action_call_method, swfdec_action_call_method, swfdec_action_call_method } }, - [0x53] = { "NewMethod", NULL }, + [0x53] = { "NewMethod", NULL, -1, 1, { NULL, NULL, swfdec_action_new_method, swfdec_action_new_method, swfdec_action_new_m...
2007 Jun 08
0
Changes to 'refs/tags/0.4.2'
...ame implement swfdec_bits_init_from_data to use SwfdecBits without a buffer add the constant pool to the stack frame implement ConstantPool and Push implement GetVariable, fix a missing break in print_push and add better debugging implement Trace action implement CallMethod and Pop + lots of bugfixing add stub for _quality property add GetProperty and SetProperty actions implement GetMember and Add2 for Flash7 implement SetMember fix string Add2 push a double, not a float fix SetMember Fix case handling (don't make i...
2017 Feb 14
6
Registration of native routines
Registration of 'native routines' (entry points in compiled code loaded into R) has been available for over 14 years, but few packages make use of it (less than 10% of those on CRAN with compiled code). Registration has similar benefits to name spaces in R code: - it ensures that the routines used by .C, .Call etc are those in your package (without needing a PACKAGE argument). - it
2007 May 29
0
Branch 'as' - 8 commits - libswfdec/Makefile.am libswfdec/swfdec_as_array.c libswfdec/swfdec_as_context.c libswfdec/swfdec_as_interpret.c libswfdec/swfdec_as_math.c libswfdec/swfdec_as_math.h libswfdec/swfdec_as_strings.c libswfdec/swfdec_as_types.c
...STANT_STRING ("ceil") /* add more here */ ; diff-tree 0bd5c28a8bb10533dc2962d2957c44cf6e1bafb4 (from b5cddf5ee7be4ec7c966a61692b4f3fe37e35b75) Author: Benjamin Otte <otte at gnome.org> Date: Sun May 27 18:41:05 2007 +0200 try harder to get the name for debug messages in CallMethod diff --git a/libswfdec/swfdec_as_interpret.c b/libswfdec/swfdec_as_interpret.c index 59dcf68..bcea772 100644 --- a/libswfdec/swfdec_as_interpret.c +++ b/libswfdec/swfdec_as_interpret.c @@ -669,6 +669,8 @@ swfdec_action_call_method (SwfdecAsConte swfdec_as_object_get_variable (obj, name, swf...
2007 Apr 27
0
Changes to 'refs/tags/0.4.3'
...ame implement swfdec_bits_init_from_data to use SwfdecBits without a buffer add the constant pool to the stack frame implement ConstantPool and Push implement GetVariable, fix a missing break in print_push and add better debugging implement Trace action implement CallMethod and Pop + lots of bugfixing add stub for _quality property add GetProperty and SetProperty actions implement GetMember and Add2 for Flash7 implement SetMember fix string Add2 push a double, not a float fix SetMember Fix case handling (don't make i...
2007 Feb 01
0
Branch 'interpreter' - 9 commits - libswfdec/js libswfdec/swfdec_script.c libswfdec/swfdec_script.h player/swfdec_debug_stack.c test/trace
...72f2837e088c2fba410ea9b0df082 (from b6dcac3542c5de3b38b7505ea44be99c95b50de9) Author: Benjamin Otte <otte@gnome.org> Date: Thu Feb 1 14:37:13 2007 +0100 various fixes for tests - apparently all objects evaluate to NaN in Flash 7 - handle error case ValueToObject == NULL in CallMethod - walk the whole scope chain in CallFunction when trying to find the function diff --git a/libswfdec/swfdec_script.c b/libswfdec/swfdec_script.c index ad08eef..39b3b8b 100644 --- a/libswfdec/swfdec_script.c +++ b/libswfdec/swfdec_script.c @@ -161,7 +161,7 @@ swfdec_action_to_number (JSContext...
2007 Apr 27
0
Changes to 'refs/tags/0.4.4'
...ame implement swfdec_bits_init_from_data to use SwfdecBits without a buffer add the constant pool to the stack frame implement ConstantPool and Push implement GetVariable, fix a missing break in print_push and add better debugging implement Trace action implement CallMethod and Pop + lots of bugfixing add stub for _quality property add GetProperty and SetProperty actions implement GetMember and Add2 for Flash7 implement SetMember fix string Add2 push a double, not a float fix SetMember Fix case handling (don't make i...