emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Include guards


From: Dan Nicolaescu
Subject: Re: Include guards
Date: Thu, 08 Jul 2010 14:48:20 -0400
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux)

Eli Zaretskii <address@hidden> writes:

> I don't understand the removal of some of the include guards in revno
> 100751: the "#ifdef ..." guards were removed, but they are still used
> and/or defined by src/config.h.
>
> Examples:
>
>   . "#ifdef HAVE_CONFIG_H" was removed from bidi.c, but
>     src/Makefile.in still puts -DHAVE_CONFIG_H into the compilation
>     command line.  Moreover, some source files still use it.

Those are files that are imported from gnulib, so we do not want to change them.
In the files that are just part of emacs #ifdef HAVE_CONFIG_H is just
noise, as we always have a config.h

>   . "#ifdef HAVE_STRING_H" was removed, but src/config.h still uses
>     it.

scroll.c has been including string.h unguarded for quite a while.  If
that was a problem on any supported platform, we would have heard about it.
So the include guard is not needed, better remove it.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]