search for: r_externalfnptr

Displaying 1 result from an estimated 1 matches for "r_externalfnptr".

2004 Sep 20
1
problem typcasting return of R_ExternalPtrAddr(SEXP s)
...er type so I need to clean this up so odesolve will compile cleanly for version 2.0.0 of R. I'm at a loss of what to do, though, since the return value of R_ExternalPtrAddr is (void *), and I need a function pointer. I'd guess there would need to be a special function (say declared as ( R_ExternalFnPtr(SEXP s) *)(), or something like that), to make all this work, but I can't find such a function. My C programming is pretty rusty, so I'm wondering if someone has an idea about how I can get around this problem (or perhaps I've misunderstood the meaning of the error message? ) Woody...