Is this portable?

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Is this portable?
Дата
Msg-id 20070402192208.GH13946@alvh.no-ip.org
обсуждение исходный текст
Ответы Re: Is this portable?  (Bruce Momjian <bruce@momjian.us>)
Re: Is this portable?  (Zdenek Kotala <Zdenek.Kotala@Sun.COM>)
Список pgsql-hackers
Can I declare a struct in a function's declaration section?  Something
like this:

static void
foobar(void)
{struct foo {    Oid        foo;    int        bar;};
struct foo baz;
baz.foo = InvalidOid;baz.bar = 42;

}

I tried here and GCC does not complain, with -std=c89 -pedantic.

-- 
Alvaro Herrera                                http://www.CommandPrompt.com/
PostgreSQL Replication, Consulting, Custom Development, 24x7 support


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

Предыдущее
От: Hiroki Kataoka
Дата:
Сообщение: Re: Proposal: Adding JIS X 0213 support
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: Is this portable?