bug-gnulib
[Top][All Lists]
Advanced

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

Re: [Bug-gnulib] xgetdomainname.c should include stdlib.h


From: Paul Eggert
Subject: Re: [Bug-gnulib] xgetdomainname.c should include stdlib.h
Date: Mon, 19 Apr 2004 13:17:06 -0700
User-agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (gnu/linux)

Bruno Haible <address@hidden> writes:

> How do _you_ do such a cleanup?

I remove the #include and see what breaks.  (:-)

Seriously, though, there's no satisfactory solution here.  The
dependency comments are a pain to maintain and are too-often wrong in
my experience.

Personally, I put in comments justifying an "#include" only if it's
not obvious why the #include is there -- e.g., it might be an #include
that is only needed in Solaris 7 or some silly thing like that.
If one combines this strategy with the ":-" strategy listed above,
it's still not satisfactory, but all things considered it's the least
bad of the solutions I'm familiar with (at least for me -- other
tastes differ no doubt).




reply via email to

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