bug-gnulib
[Top][All Lists]
Advanced

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

Re: [bug-gnulib] issue with getopt


From: Lorenzo Bettini
Subject: Re: [bug-gnulib] issue with getopt
Date: Wed, 20 Dec 2006 20:46:31 +0100
User-agent: Mozilla Thunderbird 1.0.7 (Windows/20050923)

Bruno Haible wrote:
Lorenzo Bettini wrote:

gnulib-tool says:

You may need to add #include directives for the following .h files.
  #include <getopt.h>

shouldn't it be

  #include "getopt.h"

?


Given that the source and build directories are searched by the compiler
(due to the many "-I." flags), it boils down to a matter of style.

We write <stdbool.h> since <stdbool.h> is a standard header.

We write <getopt.h> since glibc and other systems have it.

Some people write <error.h> since glibc has it; some people write "error.h"
since only glibc has it.

You see, there's no clear borderline between <> and "".

I see, but are <> ensuring that the version of gnulib is used (even if getopt.h is available in the system)?

Lorenzo

--
+-----------------------------------------------------+
| Lorenzo Bettini          ICQ# lbetto, 16080134      |
| PhD in Computer Science, DSI, Univ. di Firenze      |
| Florence - Italy        (GNU/Linux User # 158233)   |
| http://www.lorenzobettini.it                        |
| http://tronprog.blogspot.com  BLOG                  |
| http://www.purplesucker.com Deep Purple Cover Band  |
| http://www.gnu.org/software/src-highlite            |
| http://www.gnu.org/software/gengetopt               |
| http://www.gnu.org/software/gengen                  |
| http://doublecpp.sourceforge.net                    |
+-----------------------------------------------------+




reply via email to

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