diff options
author | Bram Moolenaar <Bram@vim.org> | 2018-04-18 23:01:13 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2018-04-18 23:01:13 +0200 |
commit | 285e3358696b1bc6296e5d4c53425680ce8fbd54 (patch) | |
tree | f2a33507d8fad7432096ab3240bf047a9f962bb5 /src/structs.h | |
parent | f98a39ca57d001ba3e24831bae1e375790fb41f0 (diff) |
patch 8.0.1735: flexible array member feature not supported by HP-UXv8.0.1735
Problem: Flexible array member feature not supported by HP-UX. (John
Marriott)
Solution: Do not use the flexible array member feature of C99.
Diffstat (limited to 'src/structs.h')
-rw-r--r-- | src/structs.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/structs.h b/src/structs.h index e3ad867dbf..35433b1b24 100644 --- a/src/structs.h +++ b/src/structs.h @@ -511,7 +511,7 @@ typedef struct buffheader buffheader_T; struct buffblock { buffblock_T *b_next; /* pointer to next buffblock */ - char_u b_str[]; /* contents (flexible array) */ + char_u b_str[1]; /* contents (actually longer) */ }; /* @@ -519,7 +519,7 @@ struct buffblock */ struct buffheader { - buffblock_T *bh_first; /* first block of the list */ + buffblock_T bh_first; /* first (dummy) block of list */ buffblock_T *bh_curr; /* buffblock for appending */ int bh_index; /* index for reading */ int bh_space; /* space in bh_curr for appending */ |