mirror of
				https://github.com/vim/vim.git
				synced 2025-10-31 09:57:14 -04:00 
			
		
		
		
	updated for version 7.3.1177
Problem: Wasting memory on padding. Solution: Reorder struct fields. (Dominique Pelle)
This commit is contained in:
		| @@ -7614,16 +7614,16 @@ typedef struct AutoCmd | |||||||
|  |  | ||||||
| typedef struct AutoPat | typedef struct AutoPat | ||||||
| { | { | ||||||
|     int		    group;		/* group ID */ |  | ||||||
|     char_u	    *pat;		/* pattern as typed (NULL when pattern |     char_u	    *pat;		/* pattern as typed (NULL when pattern | ||||||
| 					   has been removed) */ | 					   has been removed) */ | ||||||
|     int		    patlen;		/* strlen() of pat */ |  | ||||||
|     regprog_T	    *reg_prog;		/* compiled regprog for pattern */ |     regprog_T	    *reg_prog;		/* compiled regprog for pattern */ | ||||||
|     char	    allow_dirs;		/* Pattern may match whole path */ |  | ||||||
|     char	    last;		/* last pattern for apply_autocmds() */ |  | ||||||
|     AutoCmd	    *cmds;		/* list of commands to do */ |     AutoCmd	    *cmds;		/* list of commands to do */ | ||||||
|     struct AutoPat  *next;		/* next AutoPat in AutoPat list */ |     struct AutoPat  *next;		/* next AutoPat in AutoPat list */ | ||||||
|  |     int		    group;		/* group ID */ | ||||||
|  |     int		    patlen;		/* strlen() of pat */ | ||||||
|     int		    buflocal_nr;	/* !=0 for buffer-local AutoPat */ |     int		    buflocal_nr;	/* !=0 for buffer-local AutoPat */ | ||||||
|  |     char	    allow_dirs;		/* Pattern may match whole path */ | ||||||
|  |     char	    last;		/* last pattern for apply_autocmds() */ | ||||||
| } AutoPat; | } AutoPat; | ||||||
|  |  | ||||||
| static struct event_name | static struct event_name | ||||||
|   | |||||||
| @@ -1180,12 +1180,12 @@ typedef struct dictitem_S dictitem_T; | |||||||
|  */ |  */ | ||||||
| struct dictvar_S | struct dictvar_S | ||||||
| { | { | ||||||
|     int		dv_refcount;	/* reference count */ |  | ||||||
|     hashtab_T	dv_hashtab;	/* hashtab that refers to the items */ |  | ||||||
|     int		dv_copyID;	/* ID used by deepcopy() */ |  | ||||||
|     dict_T	*dv_copydict;	/* copied dict used by deepcopy() */ |  | ||||||
|     char	dv_lock;	/* zero, VAR_LOCKED, VAR_FIXED */ |     char	dv_lock;	/* zero, VAR_LOCKED, VAR_FIXED */ | ||||||
|     char	dv_scope;	/* zero, VAR_SCOPE, VAR_DEF_SCOPE */ |     char	dv_scope;	/* zero, VAR_SCOPE, VAR_DEF_SCOPE */ | ||||||
|  |     int		dv_refcount;	/* reference count */ | ||||||
|  |     int		dv_copyID;	/* ID used by deepcopy() */ | ||||||
|  |     hashtab_T	dv_hashtab;	/* hashtab that refers to the items */ | ||||||
|  |     dict_T	*dv_copydict;	/* copied dict used by deepcopy() */ | ||||||
|     dict_T	*dv_used_next;	/* next dict in used dicts list */ |     dict_T	*dv_used_next;	/* next dict in used dicts list */ | ||||||
|     dict_T	*dv_used_prev;	/* previous dict in used dicts list */ |     dict_T	*dv_used_prev;	/* previous dict in used dicts list */ | ||||||
| }; | }; | ||||||
|   | |||||||
| @@ -728,6 +728,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 */ | ||||||
|  | /**/ | ||||||
|  |     1177, | ||||||
| /**/ | /**/ | ||||||
|     1176, |     1176, | ||||||
| /**/ | /**/ | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user