mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
vim-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 vim/vim#3936)
beb7574d6b
This commit is contained in:
parent
2385039623
commit
80487b59c9
@ -247,9 +247,9 @@
|
|||||||
|
|
||||||
#define BRACE_COMPLEX 140 /* -149 node Match nodes between m & n times */
|
#define BRACE_COMPLEX 140 /* -149 node Match nodes between m & n times */
|
||||||
|
|
||||||
#define NOPEN 150 /* Mark this point in input as start of
|
#define NOPEN 150 // Mark this point in input as start of
|
||||||
\%( subexpr. */
|
// \%( subexpr.
|
||||||
#define NCLOSE 151 /* Analogous to NOPEN. */
|
#define NCLOSE 151 // Analogous to NOPEN.
|
||||||
|
|
||||||
#define MULTIBYTECODE 200 /* mbc Match one multi-byte character */
|
#define MULTIBYTECODE 200 /* mbc Match one multi-byte character */
|
||||||
#define RE_BOF 201 /* Match "" at beginning of file. */
|
#define RE_BOF 201 /* Match "" at beginning of file. */
|
||||||
@ -348,13 +348,13 @@ typedef enum regstate_E {
|
|||||||
* more things.
|
* more things.
|
||||||
*/
|
*/
|
||||||
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 */
|
uint16_t 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 reginput */
|
} rs_un; // room for saving reginput
|
||||||
short rs_no; /* submatch nr or BEHIND/NOBEHIND */
|
|
||||||
} regitem_T;
|
} regitem_T;
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user