From ripley@stats.ox.ac.uk  Thu Mar  9 09:10:51 2000
From: ripley@stats.ox.ac.uk (Prof Brian D Ripley)
Date: Thu, 9 Mar 2000 09:10:51 +0000 (GMT)
Subject: [Rd] Conditional for XDR code left out in saveload.c (PR#478)
In-Reply-To: <200003090843.JAA07578@pubhealth.ku.dk>
Message-ID: <Pine.GSO.4.05.10003090908141.7342-100000@auk.stats>

On Thu, 9 Mar 2000 hoffmann@ehmgs2.et.tu-dresden.de wrote:

> Full_Name: Thomas Hoffmann
> Version: 1.0.0
> OS: OS/2 Warp 4.0 FP 11
> Submission from: (NULL) (141.30.125.20)
> 
> 
> I autoconfigured/configured the src'es w/o having XDR (#undef HAVE_RPC_XDR_H).
> 
> In saveload.c , at the beginning of the file the XDR code is enclosed by
> matching #ifdefs.
> 
> But in the NEW_SAVE_FORMAT section, there are no #ifdefs around the XDR code.
> 
> Does this imply that using the new save format requires using XDR or is 
> this simply an oversight?

The defines in R_SaveToFile and R_LoadFromFile determine what is 
actually used.  I think all that happens is that unused code is not
excluded from the compile (and that happens with the BinarySave code
if XDR is available).

-- 
Brian D. Ripley,                  ripley@stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272860 (secr)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595

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


[Rd] Conditional for XDR code left out in saveload.c (PR#478)
Prof Brian D Ripley