1
0
mirror of https://github.com/postgres/postgres.git synced 2025-06-29 10:41:53 +03:00

Some more FLEXIBLE_ARRAY_MEMBER fixes.

This commit is contained in:
Tom Lane
2015-02-21 01:46:43 -05:00
parent 33b2a2c97f
commit f2874feb7c
7 changed files with 18 additions and 9 deletions

View File

@ -41,9 +41,8 @@ typedef struct
int num_vars; /* number of plain Var tlist entries */
bool has_ph_vars; /* are there PlaceHolderVar entries? */
bool has_non_vars; /* are there other entries? */
/* array of num_vars entries: */
tlist_vinfo vars[1]; /* VARIABLE LENGTH ARRAY */
} indexed_tlist; /* VARIABLE LENGTH STRUCT */
tlist_vinfo vars[FLEXIBLE_ARRAY_MEMBER]; /* has num_vars entries */
} indexed_tlist;
typedef struct
{