search for: callmethods

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

Did you mean: 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
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
libswfdec/swfdec_as_frame.c | 32 ++++++++-------- libswfdec/swfdec_as_function.c | 13 ++++-- libswfdec/swfdec_as_function.h | 4 +- libswfdec/swfdec_as_interpret.c | 12 ++++-- libswfdec/swfdec_as_native_function.c | 3 + libswfdec/swfdec_as_object.c | 27 ++++++++++++-
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
libswfdec/swfdec_as_frame.c | 14 ++ libswfdec/swfdec_as_frame_internal.h | 3 libswfdec/swfdec_as_function.c | 12 -- libswfdec/swfdec_as_interpret.c | 1 libswfdec/swfdec_asbroadcaster.c | 3 test/trace/arguments-5.swf |binary test/trace/arguments-5.swf.trace | 82 +++++++++-------- test/trace/arguments-6.swf |binary
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
libswfdec/Makefile.am | 2 libswfdec/swfdec_as_boolean.c | 113 +++++++++++ libswfdec/swfdec_as_boolean.h | 55 +++++ libswfdec/swfdec_as_context.c | 4 libswfdec/swfdec_as_context.h | 1 libswfdec/swfdec_as_frame.c | 11 - libswfdec/swfdec_as_frame.h
2009 Jan 08
1
Callbacks seems to get GCed.
...dynload.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); PROTECT(f); R_tr...
2009 Sep 03
1
Running an expression 1MN times using embedded R
...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; c3 = (i >&...
2003 Oct 10
1
number of arguments in .Call function registration
...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 SEXP's and r...
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
libswfdec/swfdec_script.c | 3 +++ test/swfdec-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
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
libswfdec/swfdec_as_interpret.c | 126 +++++++++++++++++----------------------- libswfdec/swfdec_js_xml.c | 2 libswfdec/swfdec_tag.c | 2 player/swfplay.c | 2 4 files changed, 60 insertions(+), 72 deletions(-) New commits: diff-tree 66f9ced7820cb09446dc493778fbd8348bfcb626 (from 33ee0a567aa0a7d9b287a5285527b436ae3fe560) Author: Benjamin Otte <otte
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
configure.ac | 2 libswfdec/js/jsatom.c | 6 libswfdec/js/jsatom.h | 1 libswfdec/swfdec_buffer.c | 7 libswfdec/swfdec_edittext_movie.c | 4 libswfdec/swfdec_js.c | 39 +- libswfdec/swfdec_js.h | 3 libswfdec/swfdec_js_global.c | 5 libswfdec/swfdec_js_movie.c | 1
2007 Mar 05
0
5 commits - libswfdec/swfdec_js.h libswfdec/swfdec_js_movie.c libswfdec/swfdec_script.c test/trace
libswfdec/swfdec_js.h | 2 libswfdec/swfdec_js_movie.c | 8 + libswfdec/swfdec_script.c | 121 ++++++++++++++++++++++++-- test/trace/Makefile.am | 11 ++ test/trace/constructor-prototype.swf |binary test/trace/constructor-prototype.swf.trace | 4 test/trace/function-prototype-chain.swf
2007 Jun 08
0
Changes to 'refs/tags/0.4.2'
Tag '0.4.2' created by Benjamin Otte <otte at gnome.org> at 2007-02-08 20:27 -0800 release 0.4.2 ("Two completely different numbers") -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (GNU/Linux) iD8DBQBFy4frvMv5VCdLq8QRAtJoAJ4xxUF2QJM3uCZDJOSWzIKLimGsAwCdEqek VfJ5PxRYrDPDNSR9GYwOVcc= =pXML -----END PGP SIGNATURE----- Changes since 0.4.1: Benjamin Otte: back to
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
libswfdec/Makefile.am | 2 libswfdec/swfdec_as_array.c | 10 ++++ libswfdec/swfdec_as_context.c | 18 ++++++- libswfdec/swfdec_as_interpret.c | 100 +++++++++++++++++++++++++++------------- libswfdec/swfdec_as_math.c | 58 +++++++++++++++++++++++ libswfdec/swfdec_as_math.h | 33 +++++++++++++ libswfdec/swfdec_as_strings.c | 4 +
2007 Apr 27
0
Changes to 'refs/tags/0.4.3'
Tag '0.4.3' created by Benjamin Otte <otte@gnome.org> at 2007-03-22 20:27 -0700 release 0.4.3 ("Your tube") -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQBGAti+vMv5VCdLq8QRAo5TAKCU+ko+aaq9Y11c3W4uvWGvKYo1HgCfcjGk AYQ91WIDkDeClzJO/fxEO5U= =XHqm -----END PGP SIGNATURE----- Changes since 0.4.1: Benjamin Otte: back to cvs fix config.h
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
libswfdec/js/jsnum.c | 10 ++++ libswfdec/swfdec_script.c | 86 ++++++++++++++++++++++++++++--------- libswfdec/swfdec_script.h | 2 player/swfdec_debug_stack.c | 33 +++++++++++++- test/trace/Makefile.am | 8 +++ test/trace/number.swf |binary test/trace/number.swf.trace | 9 +++ test/trace/object-math-5.swf
2007 Apr 27
0
Changes to 'refs/tags/0.4.4'
Tag '0.4.4' created by Benjamin Otte <otte@gnome.org> at 2007-04-27 10:42 -0700 release 0.4.4 ("Birthday Cards") -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQBGMcWPvMv5VCdLq8QRAnEeAJ9JwxuerjUYnOyjacNSj3A4ELxYRACeJG06 heX44SOooYokBZOik7DMh3E= =rekm -----END PGP SIGNATURE----- Changes since 0.4.1: Benjamin Otte: back to cvs fix config.h