|
Karsten Hopp |
db86b0 |
To: vim_dev@googlegroups.com
|
|
Karsten Hopp |
db86b0 |
Subject: Patch 7.3.1177
|
|
Karsten Hopp |
db86b0 |
Fcc: outbox
|
|
Karsten Hopp |
db86b0 |
From: Bram Moolenaar <Bram@moolenaar.net>
|
|
Karsten Hopp |
db86b0 |
Mime-Version: 1.0
|
|
Karsten Hopp |
db86b0 |
Content-Type: text/plain; charset=UTF-8
|
|
Karsten Hopp |
db86b0 |
Content-Transfer-Encoding: 8bit
|
|
Karsten Hopp |
db86b0 |
------------
|
|
Karsten Hopp |
db86b0 |
|
|
Karsten Hopp |
db86b0 |
Patch 7.3.1177
|
|
Karsten Hopp |
db86b0 |
Problem: Wasting memory on padding.
|
|
Karsten Hopp |
db86b0 |
Solution: Reorder struct fields. (Dominique Pelle)
|
|
Karsten Hopp |
db86b0 |
Files: src/structs.h, src/fileio.c
|
|
Karsten Hopp |
db86b0 |
|
|
Karsten Hopp |
db86b0 |
|
|
Karsten Hopp |
db86b0 |
*** ../vim-7.3.1176/src/structs.h 2013-06-06 14:55:16.000000000 +0200
|
|
Karsten Hopp |
db86b0 |
--- src/structs.h 2013-06-12 19:21:02.000000000 +0200
|
|
Karsten Hopp |
db86b0 |
***************
|
|
Karsten Hopp |
db86b0 |
*** 1180,1191 ****
|
|
Karsten Hopp |
db86b0 |
*/
|
|
Karsten Hopp |
db86b0 |
struct dictvar_S
|
|
Karsten Hopp |
db86b0 |
{
|
|
Karsten Hopp |
db86b0 |
int dv_refcount; /* reference count */
|
|
Karsten Hopp |
db86b0 |
- hashtab_T dv_hashtab; /* hashtab that refers to the items */
|
|
Karsten Hopp |
db86b0 |
int dv_copyID; /* ID used by deepcopy() */
|
|
Karsten Hopp |
db86b0 |
dict_T *dv_copydict; /* copied dict used by deepcopy() */
|
|
Karsten Hopp |
db86b0 |
- char dv_lock; /* zero, VAR_LOCKED, VAR_FIXED */
|
|
Karsten Hopp |
db86b0 |
- char dv_scope; /* zero, VAR_SCOPE, VAR_DEF_SCOPE */
|
|
Karsten Hopp |
db86b0 |
dict_T *dv_used_next; /* next dict in used dicts list */
|
|
Karsten Hopp |
db86b0 |
dict_T *dv_used_prev; /* previous dict in used dicts list */
|
|
Karsten Hopp |
db86b0 |
};
|
|
Karsten Hopp |
db86b0 |
--- 1180,1191 ----
|
|
Karsten Hopp |
db86b0 |
*/
|
|
Karsten Hopp |
db86b0 |
struct dictvar_S
|
|
Karsten Hopp |
db86b0 |
{
|
|
Karsten Hopp |
db86b0 |
+ char dv_lock; /* zero, VAR_LOCKED, VAR_FIXED */
|
|
Karsten Hopp |
db86b0 |
+ char dv_scope; /* zero, VAR_SCOPE, VAR_DEF_SCOPE */
|
|
Karsten Hopp |
db86b0 |
int dv_refcount; /* reference count */
|
|
Karsten Hopp |
db86b0 |
int dv_copyID; /* ID used by deepcopy() */
|
|
Karsten Hopp |
db86b0 |
+ hashtab_T dv_hashtab; /* hashtab that refers to the items */
|
|
Karsten Hopp |
db86b0 |
dict_T *dv_copydict; /* copied dict used by deepcopy() */
|
|
Karsten Hopp |
db86b0 |
dict_T *dv_used_next; /* next dict in used dicts list */
|
|
Karsten Hopp |
db86b0 |
dict_T *dv_used_prev; /* previous dict in used dicts list */
|
|
Karsten Hopp |
db86b0 |
};
|
|
Karsten Hopp |
db86b0 |
*** ../vim-7.3.1176/src/fileio.c 2013-06-08 18:19:39.000000000 +0200
|
|
Karsten Hopp |
db86b0 |
--- src/fileio.c 2013-06-12 19:23:35.000000000 +0200
|
|
Karsten Hopp |
db86b0 |
***************
|
|
Karsten Hopp |
db86b0 |
*** 7614,7629 ****
|
|
Karsten Hopp |
db86b0 |
|
|
Karsten Hopp |
db86b0 |
typedef struct AutoPat
|
|
Karsten Hopp |
db86b0 |
{
|
|
Karsten Hopp |
db86b0 |
- int group; /* group ID */
|
|
Karsten Hopp |
db86b0 |
char_u *pat; /* pattern as typed (NULL when pattern
|
|
Karsten Hopp |
db86b0 |
has been removed) */
|
|
Karsten Hopp |
db86b0 |
- int patlen; /* strlen() of pat */
|
|
Karsten Hopp |
db86b0 |
regprog_T *reg_prog; /* compiled regprog for pattern */
|
|
Karsten Hopp |
db86b0 |
- char allow_dirs; /* Pattern may match whole path */
|
|
Karsten Hopp |
db86b0 |
- char last; /* last pattern for apply_autocmds() */
|
|
Karsten Hopp |
db86b0 |
AutoCmd *cmds; /* list of commands to do */
|
|
Karsten Hopp |
db86b0 |
struct AutoPat *next; /* next AutoPat in AutoPat list */
|
|
Karsten Hopp |
db86b0 |
int buflocal_nr; /* !=0 for buffer-local AutoPat */
|
|
Karsten Hopp |
db86b0 |
} AutoPat;
|
|
Karsten Hopp |
db86b0 |
|
|
Karsten Hopp |
db86b0 |
static struct event_name
|
|
Karsten Hopp |
db86b0 |
--- 7614,7629 ----
|
|
Karsten Hopp |
db86b0 |
|
|
Karsten Hopp |
db86b0 |
typedef struct AutoPat
|
|
Karsten Hopp |
db86b0 |
{
|
|
Karsten Hopp |
db86b0 |
char_u *pat; /* pattern as typed (NULL when pattern
|
|
Karsten Hopp |
db86b0 |
has been removed) */
|
|
Karsten Hopp |
db86b0 |
regprog_T *reg_prog; /* compiled regprog for pattern */
|
|
Karsten Hopp |
db86b0 |
AutoCmd *cmds; /* list of commands to do */
|
|
Karsten Hopp |
db86b0 |
struct AutoPat *next; /* next AutoPat in AutoPat list */
|
|
Karsten Hopp |
db86b0 |
+ int group; /* group ID */
|
|
Karsten Hopp |
db86b0 |
+ int patlen; /* strlen() of pat */
|
|
Karsten Hopp |
db86b0 |
int buflocal_nr; /* !=0 for buffer-local AutoPat */
|
|
Karsten Hopp |
db86b0 |
+ char allow_dirs; /* Pattern may match whole path */
|
|
Karsten Hopp |
db86b0 |
+ char last; /* last pattern for apply_autocmds() */
|
|
Karsten Hopp |
db86b0 |
} AutoPat;
|
|
Karsten Hopp |
db86b0 |
|
|
Karsten Hopp |
db86b0 |
static struct event_name
|
|
Karsten Hopp |
db86b0 |
*** ../vim-7.3.1176/src/version.c 2013-06-12 18:13:31.000000000 +0200
|
|
Karsten Hopp |
db86b0 |
--- src/version.c 2013-06-12 19:20:19.000000000 +0200
|
|
Karsten Hopp |
db86b0 |
***************
|
|
Karsten Hopp |
db86b0 |
*** 730,731 ****
|
|
Karsten Hopp |
db86b0 |
--- 730,733 ----
|
|
Karsten Hopp |
db86b0 |
{ /* Add new patch number below this line */
|
|
Karsten Hopp |
db86b0 |
+ /**/
|
|
Karsten Hopp |
db86b0 |
+ 1177,
|
|
Karsten Hopp |
db86b0 |
/**/
|
|
Karsten Hopp |
db86b0 |
|
|
Karsten Hopp |
db86b0 |
--
|
|
Karsten Hopp |
db86b0 |
hundred-and-one symptoms of being an internet addict:
|
|
Karsten Hopp |
db86b0 |
174. You know what a listserv is.
|
|
Karsten Hopp |
db86b0 |
|
|
Karsten Hopp |
db86b0 |
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
|
|
Karsten Hopp |
db86b0 |
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
|
|
Karsten Hopp |
db86b0 |
\\\ an exciting new programming language -- http://www.Zimbu.org ///
|
|
Karsten Hopp |
db86b0 |
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|