comparison src/structs.h @ 13726:d35b1702a1da v8.0.1735

patch 8.0.1735: flexible array member feature not supported by HP-UX commit https://github.com/vim/vim/commit/285e3358696b1bc6296e5d4c53425680ce8fbd54 Author: Bram Moolenaar <Bram@vim.org> Date: Wed Apr 18 23:01:13 2018 +0200 patch 8.0.1735: flexible array member feature not supported by HP-UX Problem: Flexible array member feature not supported by HP-UX. (John Marriott) Solution: Do not use the flexible array member feature of C99.
author Christian Brabandt <cb@256bit.org>
date Wed, 18 Apr 2018 23:15:06 +0200
parents 84e96a40b7ca
children f309afff6f25
comparison
equal deleted inserted replaced
13725:25ffa5f27874 13726:d35b1702a1da
509 * structure used to store one block of the stuff/redo/recording buffers 509 * structure used to store one block of the stuff/redo/recording buffers
510 */ 510 */
511 struct buffblock 511 struct buffblock
512 { 512 {
513 buffblock_T *b_next; /* pointer to next buffblock */ 513 buffblock_T *b_next; /* pointer to next buffblock */
514 char_u b_str[]; /* contents (flexible array) */ 514 char_u b_str[1]; /* contents (actually longer) */
515 }; 515 };
516 516
517 /* 517 /*
518 * header used for the stuff buffer and the redo buffer 518 * header used for the stuff buffer and the redo buffer
519 */ 519 */
520 struct buffheader 520 struct buffheader
521 { 521 {
522 buffblock_T *bh_first; /* first block of the list */ 522 buffblock_T bh_first; /* first (dummy) block of list */
523 buffblock_T *bh_curr; /* buffblock for appending */ 523 buffblock_T *bh_curr; /* buffblock for appending */
524 int bh_index; /* index for reading */ 524 int bh_index; /* index for reading */
525 int bh_space; /* space in bh_curr for appending */ 525 int bh_space; /* space in bh_curr for appending */
526 }; 526 };
527 527