Re: Add unistd.h to c.h

Поиск
Список
Период
Сортировка
От Robert Haas
Тема Re: Add unistd.h to c.h
Дата
Msg-id AANLkTinT-E+W4En+LF53+ZH1-kez5_JjRhCbGgU4=iv3@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Add unistd.h to c.h  (Bruce Momjian <bruce@momjian.us>)
Список 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 по дате отправления:

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: Add unistd.h to c.h
Следующее
От: Robert Haas
Дата:
Сообщение: Re: Re: [COMMITTERS] pgsql: Basic Recovery Control functions for use in Hot Standby. Pause,