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:
@@ -3545,14 +3545,14 @@ typedef enum regstate_E
|
|||||||
*/
|
*/
|
||||||
typedef struct regitem_S
|
typedef struct regitem_S
|
||||||
{
|
{
|
||||||
regstate_T rs_state; /* what we are doing, one of RS_ above */
|
regstate_T rs_state; // what we are doing, one of RS_ above
|
||||||
char_u *rs_scan; /* current node in program */
|
short rs_no; // submatch nr or BEHIND/NOBEHIND
|
||||||
|
char_u *rs_scan; // current node in program
|
||||||
union
|
union
|
||||||
{
|
{
|
||||||
save_se_T sesave;
|
save_se_T sesave;
|
||||||
regsave_T regsave;
|
regsave_T regsave;
|
||||||
} rs_un; /* room for saving rex.input */
|
} rs_un; // room for saving rex.input
|
||||||
short rs_no; /* submatch nr or BEHIND/NOBEHIND */
|
|
||||||
} regitem_T;
|
} regitem_T;
|
||||||
|
|
||||||
static regitem_T *regstack_push(regstate_T state, char_u *scan);
|
static regitem_T *regstack_push(regstate_T state, char_u *scan);
|
||||||
|
@@ -783,6 +783,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
903,
|
||||||
/**/
|
/**/
|
||||||
902,
|
902,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user