[Rd] R Include File Guards

Paul Roebuck roebuck at odin.mdacc.tmc.edu
Wed May 18 22:58:05 CEST 2005


R 2.1.0/src/include from 2005/04/18 download

Naming inconsistent for guards as well but that's pedantic.
Simple convention:
  file <foo.h>
    #ifndef R_FOO_H
  file <R_ext/bar.h>
    #ifndef R_EXT_BAR_H

Missing guards:
<IOStuff.h>
<Internal.h>
<Parse.h>
<R_ext/GraphicsBase.h>
<R_ext/GraphicsDevice.h>
<R_ext/GraphicsEngine.h>
<R_ext/R-ftp-http.h>
<R_ext/libextern.h>


Illegal Guards (leading underscore):
<Rinternals.h>
<R_ext/Error.h>
<config.h.in>


----------------------------------------------------------
SIGSIG -- signature too long (core dumped)



More information about the R-devel mailing list