Paul Murrell
Department of Statistics
The University of Auckland
paul@stat.auckland.ac.nz
This is a discussion of how to make R's new graphics API, consisting of GraphicsDevice.h and GraphicsEngine.h, conform to the GNU coding standards for external function and variable names.
Only has one structure called NewDevDesc.
This will need to be used by gtkDevice so a use exists. This should therefore become RGDNewDevDesc(?) Actually, it would be nice to get rid of the "New" and just have RGDDevDesc.
This little change would mean a massive search-and-replace on NewDevDesc. Maybe easier to just do a #define (as in Rgraphics.h)? That would still mean a recompile for gtkDevice.
There are lots of GE* functions. So these should become RGE* functions(?)
There are also quite a few GE_* enums. So these should become RGE_* enums(?)
There are also a couple of GE* structures. So these should become RGE* or if for internal use then _RGE*(?)
There are some unprefixed functions (e.g., fromDeviceX). So these should have a prefix added (e.g., RGEfromDeviceX).
External packages which depend on GraphicsDevice.h and GraphicsEngine.h would have to be recompiled and versions which run on 1.5.0 would not run on 1.6.0. This includes grid (=> lattice) and gtkDevice to my knowledge. On the other hand, this is already the case due to other changes.