mirror of https://github.com/F-Stack/f-stack.git
22 lines
260 B
Plaintext
22 lines
260 B
Plaintext
|
// Replace zero-length array members with []
|
||
|
@@
|
||
|
identifier st, member, arr;
|
||
|
type T1, T2;
|
||
|
@@
|
||
|
struct st {
|
||
|
...
|
||
|
T1 member;
|
||
|
- T2 arr[0];
|
||
|
+ T2 arr[];
|
||
|
};
|
||
|
@@
|
||
|
identifier st, member, arr, id;
|
||
|
type T1, T2;
|
||
|
@@
|
||
|
struct st {
|
||
|
...
|
||
|
T1 member;
|
||
|
- T2 arr[0];
|
||
|
+ T2 arr[];
|
||
|
} id;
|