From ripley at stats.ox.ac.uk  Wed May 18 23:03:50 2005
From: ripley at stats.ox.ac.uk (Prof Brian Ripley)
Date: Wed May 18 23:11:30 2005
Subject: [Rd] R Include File Guards
In-Reply-To: <Pine.OSF.4.58.0505181524160.204610@odin.mdacc.tmc.edu>
References: <Pine.OSF.4.58.0505181524160.204610@odin.mdacc.tmc.edu>
Message-ID: <Pine.LNX.4.61.0505182203080.14721@gannet.stats>

On Wed, 18 May 2005, Paul Roebuck wrote:

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

What is `illegal' about that?

-- 
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 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595


[Rd] R Include File Guards
Prof Brian Ripley