Re: Move NON_EXEC_STATIC from c.h

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: Move NON_EXEC_STATIC from c.h
Дата
Msg-id bfd3570c-6e96-e728-fd8a-16ed2d5505f5@enterprisedb.com
обсуждение исходный текст
Ответ на Re: Move NON_EXEC_STATIC from c.h  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: Move NON_EXEC_STATIC from c.h
Список pgsql-hackers
On 16.08.22 15:50, Tom Lane wrote:
> Peter Eisentraut <peter.eisentraut@enterprisedb.com> writes:
>> Looking to tidy up c.h a bit, I think the NON_EXEC_STATIC #define
>> doesn't need to be known globally, and it's not related to establishing
>> a portable C environment, so I propose to move it to a more localized
>> header, such as postmaster.h, as in the attached patch.
> 
> Hmm, postgres.h seems like a better choice, since in principle any
> backend file might need this.  This arrangement could require
> postmaster.h to be included just for this macro.

I picked postmaster.h because the other side of the code, where the 
no-longer-static symbols are used, is in postmaster.c.  But postgres.h 
is also ok.

> Also, the macro was severely underdocumented already, and I don't
> find "no comment at all" to be better.  Can't we afford a couple
> of lines of explanation?

Here is a new patch with more comments.
Вложения

В списке pgsql-hackers по дате отправления:

Предыдущее
От: Robert Haas
Дата:
Сообщение: Re: replacing role-level NOINHERIT with a grant-level option
Следующее
От: "Jonathan S. Katz"
Дата:
Сообщение: Re: SQL/JSON features for v15