bug-gnulib
[Top][All Lists]
Advanced

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

Re: [bug-gnulib] how many #includes?


From: Bruno Haible
Subject: Re: [bug-gnulib] how many #includes?
Date: Wed, 15 Nov 2006 22:06:20 +0100
User-agent: KMail/1.9.1

Karl Berry wrote:
> gnulib-tool says you "may" need to include:
>   #include <getopt.h>
>   #include <stdbool.h>
>   #include <unistd.h>
>   #include "__fpending.h"
>   #include "close-stream.h"
>   #include "closeout.h"
>   #include "error.h"
>   #include "exit.h"
>   #include "exitfail.h"
>   #include "gettext.h"
>   #include "quotearg.h"
>   #include "xalloc.h"
> 
> But my system.h only has:
> #include <getopt.h>
> #include <unistd.h>
> #include "gettext.h"
> #include "closeout.h"
> (and a few other ANSI headers).
> 
> And there have been no complaints.

You're right, that's because of the recursive traversal of the module
dependencies.

> Would it be reasonable/possible to have gnulib-tool output only the
> top-level #includes?

I agree.

Bruno




reply via email to

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