Re: flexible array members
| От | Peter Eisentraut |
|---|---|
| Тема | Re: flexible array members |
| Дата | |
| Msg-id | 1308253785.6721.2.camel@vanquo.pezone.net обсуждение исходный текст |
| Ответ на | Re: flexible array members (Tom Lane <tgl@sss.pgh.pa.us>) |
| Ответы |
Re: flexible array members
|
| Список | pgsql-hackers |
On ons, 2011-06-15 at 18:19 -0400, Tom Lane wrote:
> Peter Eisentraut <peter_e@gmx.net> writes:
> > Is this a route we want to go down?
>
> > - GISTENTRY vector[1]; /* variable-length
> array */
> > + GISTENTRY vector[FLEXIBLE_ARRAY_MEMBER];
>
> Yes, I was thinking about the same trick after noting these warnings
> on Fedora 15, although personally I'd name the macro
> VARIABLE_LENGTH_ARRAY.
This macro is provided by Autoconf and it appears to be using the
standard's terminology.
Actually, the term "variable-length array" appears to refer to another
C99 feature, namely this one:
void
foo(int n)
{ bar int[n];
do_something();
}
В списке pgsql-hackers по дате отправления: