Re: Add unistd.h to c.h - Mailing list pgsql-hackers

From Robert Haas
Subject Re: Add unistd.h to c.h
Date
Msg-id AANLkTinT-E+W4En+LF53+ZH1-kez5_JjRhCbGgU4=iv3@mail.gmail.com
Whole thread Raw
In response to Re: Add unistd.h to c.h  (Bruce Momjian <bruce@momjian.us>)
List pgsql-hackers
On Fri, Mar 11, 2011 at 11:53 AM, Bruce Momjian <bruce@momjian.us> wrote:
> Heikki Linnakangas wrote:
>> On 11.03.2011 18:50, Bruce Momjian wrote:
>> > Twenty percent of our C files include unistd.h.  Should we include
>> > unistd.h in c.h and remove mentions of unistd.h in files that include
>> > c.h?
>>
>> Why?
>
> Well, that is one less C include file in 151 C files, and just one
> additional line in c.h.

We could take it a little further and just make c.h include everything
that any file needs anywhere in the system.  That would save even more
lines of code, but it has nothing else to recommend it.

--
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company


pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: Add unistd.h to c.h
Next
From: Robert Haas
Date:
Subject: Re: Re: [COMMITTERS] pgsql: Basic Recovery Control functions for use in Hot Standby. Pause,