0
0
mirror of https://github.com/vim/vim.git synced 2025-09-24 03:44:06 -04:00

patch 8.1.0903: struct uses more bytes than needed

Problem:    Struct uses more bytes than needed.
Solution:   Reorder members of regitem_S. (Dominique Pelle, closes #3936)
This commit is contained in:
Bram Moolenaar
2019-02-12 22:33:00 +01:00
parent ff697e6cef
commit beb7574d6b
2 changed files with 6 additions and 4 deletions

View File

@@ -3545,14 +3545,14 @@ typedef enum regstate_E
*/
typedef struct regitem_S
{
regstate_T rs_state; /* what we are doing, one of RS_ above */
char_u *rs_scan; /* current node in program */
regstate_T rs_state; // what we are doing, one of RS_ above
short rs_no; // submatch nr or BEHIND/NOBEHIND
char_u *rs_scan; // current node in program
union
{
save_se_T sesave;
regsave_T regsave;
} rs_un; /* room for saving rex.input */
short rs_no; /* submatch nr or BEHIND/NOBEHIND */
} rs_un; // room for saving rex.input
} regitem_T;
static regitem_T *regstack_push(regstate_T state, char_u *scan);

View File

@@ -783,6 +783,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
903,
/**/
902,
/**/