From tkeitt@mail.utexas.edu  Sun Nov 10 07:42:24 2002
From: tkeitt@mail.utexas.edu (Timothy H. Keitt)
Date: 09 Nov 2002 23:42:24 -0800
Subject: Calling function with proto in Rinternals.h
In-Reply-To: <x2isz6ldo1.fsf@biostat.ku.dk>
References: <1036816477.4523.8.camel@ip68-6-78-9.sb.sd.cox.net>
 <x21y5vlzh5.fsf@biostat.ku.dk>
 <1036857106.8203.5.camel@ip68-6-78-9.sb.sd.cox.net>
 <1036858272.8268.14.camel@ip68-6-78-9.sb.sd.cox.net>
 <x2isz6ldo1.fsf@biostat.ku.dk>
Message-ID: <1036914144.21672.10.camel@ip68-6-78-9.sb.sd.cox.net>

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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._


Calling function with proto in Rinternals.h
Timothy H. Keitt