Calling function with proto in Rinternals.h

Timothy H. Keitt tkeitt@mail.utexas.edu
09 Nov 2002 23:42:24 -0800


On Sat, 2002-11-09 at 11:57, Peter Dalgaard BSA wrote:
> "Timothy H. Keitt" <tkeitt@mail.utexas.edu> writes:
> 
> > Quick follow up question -- does reg.finalizer() use the "on exit"
> > option. (If not, perhaps it could be added as a flag?)
> 
> It doesn't, but it might be added. Patches will be considered. (But how
> did you manage to use .Call on
> 
> void R_RegisterFinalizerEx(SEXP s, SEXP fun, Rboolean onexit)
> 
> ?? I thought all the arguments had to be SEXP in that interface.)
> 
> BTW, it seems that the internal C symbols become visible if you
> compile R as a shared library, so that's probably what happened to
> you: Your new build didn't do that. (It's obviously still not a good
> idea to call such build-dependent entry points...).

Dunno why that worked; probably I was passing garbage in the last
parameter, but non-zero garbage is still true. I was using Debian and I
suppose it was dynamically linked, which is why using .Call worked at
all.

T.

> 
> -- 
>    O__  ---- Peter Dalgaard             Blegdamsvej 3  
>   c/ /'_ --- Dept. of Biostatistics     2200 Cph. N   
>  (*) \(*) -- University of Copenhagen   Denmark      Ph: (+45) 35327918
> ~~~~~~~~~~ - (p.dalgaard@biostat.ku.dk)             FAX: (+45) 35327907
> -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
> r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
> Send "info", "help", or "[un]subscribe"
> (in the "body", not the subject !)  To: r-devel-request@stat.math.ethz.ch
> _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
-- 
Timothy H. Keitt
The University of Texas at Austin
Section of Integrative Biology
1 University Station C0930
Austin, Texas 78712-0253 USA

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._