@@ -35,7 +35,7 @@ new file mode 100644
3535index 00000000000..76f2903e179
3636--- /dev/null
3737+++ b/src/backend/optimizer/plan/vscodehelper.c
38- @@ -0,0 +1,290 @@
38+ @@ -0,0 +1,288 @@
3939+ #include "postgres.h"
4040+
4141+ #include "nodes/bitmapset.h"
@@ -68,13 +68,11 @@ index 00000000000..76f2903e179
6868+ int array[ARRAY_SIZE];
6969+ } TestFixedArray;
7070+
71- + typedef struct TestFlexibleArrayMemberData
71+ + typedef struct TestFlexibleArrayMember
7272+ {
7373+ int length;
7474+ int array[FLEXIBLE_ARRAY_MEMBER];
75- + } TestFlexibleArrayMemberData;
76- +
77- + typedef TestFlexibleArrayMemberData *TestFlexibleArrayMember;
75+ + } TestFlexibleArrayMember;
7876+
7977+ typedef struct CustomListElement
8078+ {
@@ -127,7 +125,7 @@ index 00000000000..76f2903e179
127125+ static testhash_hash *create_simplehash(void);
128126+ static List *create_custom_list(void);
129127+ static ArrayMember *create_special_array_member(void);
130- + static TestFlexibleArrayMember create_flex_array_member(void);
128+ + static TestFlexibleArrayMember * create_flex_array_member(void);
131129+
132130+ static HTAB *
133131+ create_htab(void)
@@ -212,10 +210,10 @@ index 00000000000..76f2903e179
212210+ return array;
213211+ }
214212+
215- + static TestFlexibleArrayMember
213+ + static TestFlexibleArrayMember *
216214+ create_flex_array_member(void)
217215+ {
218- + TestFlexibleArrayMember member = palloc(offsetof(TestFlexibleArrayMemberData , array) + sizeof(int) * ARRAY_SIZE);
216+ + TestFlexibleArrayMember * member = palloc(offsetof(TestFlexibleArrayMember , array) + sizeof(int) * ARRAY_SIZE);
219217+ member->length = ARRAY_SIZE;
220218+ return member;
221219+ }
@@ -251,7 +249,7 @@ index 00000000000..76f2903e179
251249+ testhash_hash *simplehash;
252250+ List *custom_list;
253251+ HTAB *htab;
254- + TestFlexibleArrayMember flexible_array_member;
252+ + TestFlexibleArrayMember * flexible_array_member;
255253+
256254+ /* Node variables */
257255+ Bitmapset *bms;
0 commit comments