diff options
author | Bram Moolenaar <Bram@vim.org> | 2019-02-12 22:33:00 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2019-02-12 22:33:00 +0100 |
commit | beb7574d6b0eea1cae70aa2913a690da56de5307 (patch) | |
tree | 498dde830c0890400de8df5993e242a27381341a | |
parent | ff697e6cef8ced7717a21fd525ab3200b2f1724f (diff) | |
download | vim-git-beb7574d6b0eea1cae70aa2913a690da56de5307.tar.gz |
patch 8.1.0903: struct uses more bytes than neededv8.1.0903
Problem: Struct uses more bytes than needed.
Solution: Reorder members of regitem_S. (Dominique Pelle, closes #3936)
-rw-r--r-- | src/regexp.c | 8 | ||||
-rw-r--r-- | src/version.c | 2 |
2 files changed, 6 insertions, 4 deletions
diff --git a/src/regexp.c b/src/regexp.c index 9e6cf702d..f06e15c83 100644 --- a/src/regexp.c +++ b/src/regexp.c @@ -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); diff --git a/src/version.c b/src/version.c index cadd46e4f..a6101b57a 100644 --- a/src/version.c +++ b/src/version.c @@ -784,6 +784,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 903, +/**/ 902, /**/ 901, |