Re: Is this portable?

Поиск
Список
Период
Сортировка
От Gregory Stark
Тема Re: Is this portable?
Дата
Msg-id 877isumrsb.fsf@oxford.xeocode.com
обсуждение исходный текст
Ответ на Re: Is this portable?  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: Is this portable?  (Alvaro Herrera <alvherre@commandprompt.com>)
Re: Is this portable?  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
"Tom Lane" <tgl@sss.pgh.pa.us> writes:

> Zdenek Kotala <Zdenek.Kotala@Sun.COM> writes:
>> Alvaro Herrera wrote:
>>> Can I declare a struct in a function's declaration section?
>
>> It works fine with Sun Studio 11.
>
> AFAICT it's required by the original K&R C book.

IIRC there's something odd about the scope of the declared struct label.

Something like it previously extended to the end of the file but post-ANSI was
limited to the scope it's declared in (including very limited scopes where it
would be useless such as in function parameters).


--  Gregory Stark EnterpriseDB          http://www.enterprisedb.com



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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Is this portable?
Следующее
От: Heikki Linnakangas
Дата:
Сообщение: Re: CheckpointStartLock starvation