Revert "vim-patch:8.0.1723: using one item array size declaration is misleading" (#10583)

This reverts commit 315076a26d.
This commit is contained in:
Jan Edmund Lazo
2019-07-22 23:37:20 -04:00
committed by Daniel Hahler
parent 4aabe4a0d5
commit 0d5f629208
2 changed files with 37 additions and 44 deletions

View File

@@ -133,14 +133,14 @@ 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)
};
/*
* header used for the stuff buffer and the redo buffer
*/
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
size_t bh_index; // index for reading
size_t bh_space; // space in bh_curr for appending