[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
unprefixed header guards
From: |
Bruce Korb |
Subject: |
unprefixed header guards |
Date: |
Sun, 07 Nov 2010 13:35:45 -0800 |
User-agent: |
Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.12) Gecko/20100914 SUSE/3.0.8 Thunderbird/3.0.8 |
As of now, here are the files that get installed via "libposix":
$ find * -type f
usr/local/lib/libposix.a
usr/local/lib/libposix.so.0.0.0
usr/local/lib/libposix.la
[[a mess of includes]]
usr/local/libexec/libposix/pt_chown
And here are the headers that do not prefix an "ifndef"
with "_LIBPOSIX_":
$ ls -1 $(allbut usr/local/include/*.h - $(
> egrep -l '#ifndef _LIBPOSIX_' usr/local/include/*.h) )
usr/local/include/arg-nonnull.h
usr/local/include/iconv_open-aix.h
usr/local/include/iconv_open-hpux.h
usr/local/include/iconv_open-irix.h
usr/local/include/iconv_open-osf.h
usr/local/include/iconv_open-solaris.h
usr/local/include/inttypes.h
usr/local/include/unitypes.h
usr/local/include/unused-parameter.h
usr/local/include/warn-on-use.h
The "iconv_open" ones are private and clearly okay.
However, arg-nonnull.h:
#ifndef _GL_ARG_NONNULL
and inttypes.h looks very strange:
/* The definition of _GL_WARN_ON_USE is copied here. */
#ifndef _GL_WARN_ON_USE
unitypes.h:
#ifndef _UNITYPES_H
#define _UNITYPES_H
unused-parameter.h:
#ifndef _GL_UNUSED_PARAMETER
and warn-on-use uses _GL_WARN_ON_USE, per the copied text in inttypes.h
I don't know the plan here, but it isn't consistent.
Thanks - Bruce
- unprefixed header guards,
Bruce Korb <=