Include file changes

Ross Ihaka ihaka@stat.auckland.ac.nz
Tue, 15 Jun 1999 05:58:20 +1200 (NZST)


I think we are long overdue for a revision of the header files used in R.
This is going to be especially important for a clean build of the CORBA
and R/Java stuff which I have been looking over Duncan's shoulder at.
It will also let us integrate some of the features Duncan has had to
find creative ways around and also to let us integrate things like the
PROBLEM buffer problem.

I would propose that we cut down to a much smaller set of includes and
to put some thought about what goes in each.  Something along the lines
below.

        R.h / S.h
                This just serves to include Platform.h, RInternals.h and
                RUtilities.h below.

        Platform.h
                Platform specific definitions.

        RInternals.h
                R Data Structures & Access Macros
                Memory management
                Functions which manipulate R data structures

        RUtilities.h
                Functions which operate at the C level
                without special knowlege of R structures
                (But maybe not Math).

        RMath.h
                We probably need a separate set of declarations
                but maybe not.

        RGraphics.h
                This is big and is logically separate from
                other C code.  Some things which are not in
                here should be -- e.g. hsv2rgb.

(I think the rest of the code could also stand a bit of clean up too).

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