|
Karsten Hopp |
c05c48 |
To: vim_dev@googlegroups.com
|
|
Karsten Hopp |
c05c48 |
Subject: Patch 7.3.820
|
|
Karsten Hopp |
c05c48 |
Fcc: outbox
|
|
Karsten Hopp |
c05c48 |
From: Bram Moolenaar <Bram@moolenaar.net>
|
|
Karsten Hopp |
c05c48 |
Mime-Version: 1.0
|
|
Karsten Hopp |
c05c48 |
Content-Type: text/plain; charset=UTF-8
|
|
Karsten Hopp |
c05c48 |
Content-Transfer-Encoding: 8bit
|
|
Karsten Hopp |
c05c48 |
------------
|
|
Karsten Hopp |
c05c48 |
|
|
Karsten Hopp |
c05c48 |
Patch 7.3.820
|
|
Karsten Hopp |
c05c48 |
Problem: Build errors and warnings when building with small features and
|
|
Karsten Hopp |
c05c48 |
Lua, Perl or Ruby.
|
|
Karsten Hopp |
c05c48 |
Solution: Add #ifdefs and UNUSED.
|
|
Karsten Hopp |
c05c48 |
Files: src/if_perl.xs, src/if_lua.c, src/if_ruby.c
|
|
Karsten Hopp |
c05c48 |
|
|
Karsten Hopp |
c05c48 |
|
|
Karsten Hopp |
c05c48 |
*** ../vim-7.3.819/src/if_perl.xs 2013-02-06 19:58:38.000000000 +0100
|
|
Karsten Hopp |
c05c48 |
--- src/if_perl.xs 2013-02-14 19:16:00.000000000 +0100
|
|
Karsten Hopp |
c05c48 |
***************
|
|
Karsten Hopp |
c05c48 |
*** 600,608 ****
|
|
Karsten Hopp |
c05c48 |
*/
|
|
Karsten Hopp |
c05c48 |
char_u *
|
|
Karsten Hopp |
c05c48 |
eval_to_string(arg, nextcmd, dolist)
|
|
Karsten Hopp |
c05c48 |
! char_u *arg;
|
|
Karsten Hopp |
c05c48 |
! char_u **nextcmd;
|
|
Karsten Hopp |
c05c48 |
! int dolist;
|
|
Karsten Hopp |
c05c48 |
{
|
|
Karsten Hopp |
c05c48 |
return NULL;
|
|
Karsten Hopp |
c05c48 |
}
|
|
Karsten Hopp |
c05c48 |
--- 600,608 ----
|
|
Karsten Hopp |
c05c48 |
*/
|
|
Karsten Hopp |
c05c48 |
char_u *
|
|
Karsten Hopp |
c05c48 |
eval_to_string(arg, nextcmd, dolist)
|
|
Karsten Hopp |
c05c48 |
! char_u *arg UNUSED;
|
|
Karsten Hopp |
c05c48 |
! char_u **nextcmd UNUSED;
|
|
Karsten Hopp |
c05c48 |
! int dolist UNUSED;
|
|
Karsten Hopp |
c05c48 |
{
|
|
Karsten Hopp |
c05c48 |
return NULL;
|
|
Karsten Hopp |
c05c48 |
}
|
|
Karsten Hopp |
c05c48 |
*** ../vim-7.3.819/src/if_lua.c 2012-10-14 03:41:54.000000000 +0200
|
|
Karsten Hopp |
c05c48 |
--- src/if_lua.c 2013-02-14 19:15:29.000000000 +0100
|
|
Karsten Hopp |
c05c48 |
***************
|
|
Karsten Hopp |
c05c48 |
*** 845,852 ****
|
|
Karsten Hopp |
c05c48 |
}
|
|
Karsten Hopp |
c05c48 |
|
|
Karsten Hopp |
c05c48 |
static int
|
|
Karsten Hopp |
c05c48 |
! luaV_dict_iter (lua_State *L)
|
|
Karsten Hopp |
c05c48 |
{
|
|
Karsten Hopp |
c05c48 |
hashitem_T *hi = (hashitem_T *) lua_touserdata(L, lua_upvalueindex(2));
|
|
Karsten Hopp |
c05c48 |
int n = lua_tointeger(L, lua_upvalueindex(3));
|
|
Karsten Hopp |
c05c48 |
dictitem_T *di;
|
|
Karsten Hopp |
c05c48 |
--- 845,853 ----
|
|
Karsten Hopp |
c05c48 |
}
|
|
Karsten Hopp |
c05c48 |
|
|
Karsten Hopp |
c05c48 |
static int
|
|
Karsten Hopp |
c05c48 |
! luaV_dict_iter (lua_State *L UNUSED)
|
|
Karsten Hopp |
c05c48 |
{
|
|
Karsten Hopp |
c05c48 |
+ #ifdef FEAT_EVAL
|
|
Karsten Hopp |
c05c48 |
hashitem_T *hi = (hashitem_T *) lua_touserdata(L, lua_upvalueindex(2));
|
|
Karsten Hopp |
c05c48 |
int n = lua_tointeger(L, lua_upvalueindex(3));
|
|
Karsten Hopp |
c05c48 |
dictitem_T *di;
|
|
Karsten Hopp |
c05c48 |
***************
|
|
Karsten Hopp |
c05c48 |
*** 860,865 ****
|
|
Karsten Hopp |
c05c48 |
--- 861,869 ----
|
|
Karsten Hopp |
c05c48 |
lua_pushinteger(L, n - 1);
|
|
Karsten Hopp |
c05c48 |
lua_replace(L, lua_upvalueindex(3));
|
|
Karsten Hopp |
c05c48 |
return 2;
|
|
Karsten Hopp |
c05c48 |
+ #else
|
|
Karsten Hopp |
c05c48 |
+ return 0;
|
|
Karsten Hopp |
c05c48 |
+ #endif
|
|
Karsten Hopp |
c05c48 |
}
|
|
Karsten Hopp |
c05c48 |
|
|
Karsten Hopp |
c05c48 |
static int
|
|
Karsten Hopp |
c05c48 |
*** ../vim-7.3.819/src/if_ruby.c 2012-11-24 13:38:56.000000000 +0100
|
|
Karsten Hopp |
c05c48 |
--- src/if_ruby.c 2013-02-14 22:18:50.000000000 +0100
|
|
Karsten Hopp |
c05c48 |
***************
|
|
Karsten Hopp |
c05c48 |
*** 1210,1230 ****
|
|
Karsten Hopp |
c05c48 |
return height;
|
|
Karsten Hopp |
c05c48 |
}
|
|
Karsten Hopp |
c05c48 |
|
|
Karsten Hopp |
c05c48 |
! static VALUE window_width(VALUE self)
|
|
Karsten Hopp |
c05c48 |
{
|
|
Karsten Hopp |
c05c48 |
! win_T *win = get_win(self);
|
|
Karsten Hopp |
c05c48 |
!
|
|
Karsten Hopp |
c05c48 |
! return INT2NUM(win->w_width);
|
|
Karsten Hopp |
c05c48 |
}
|
|
Karsten Hopp |
c05c48 |
|
|
Karsten Hopp |
c05c48 |
! static VALUE window_set_width(VALUE self, VALUE width)
|
|
Karsten Hopp |
c05c48 |
{
|
|
Karsten Hopp |
c05c48 |
win_T *win = get_win(self);
|
|
Karsten Hopp |
c05c48 |
win_T *savewin = curwin;
|
|
Karsten Hopp |
c05c48 |
|
|
Karsten Hopp |
c05c48 |
curwin = win;
|
|
Karsten Hopp |
c05c48 |
win_setwidth(NUM2INT(width));
|
|
Karsten Hopp |
c05c48 |
curwin = savewin;
|
|
Karsten Hopp |
c05c48 |
return width;
|
|
Karsten Hopp |
c05c48 |
}
|
|
Karsten Hopp |
c05c48 |
|
|
Karsten Hopp |
c05c48 |
--- 1210,1230 ----
|
|
Karsten Hopp |
c05c48 |
return height;
|
|
Karsten Hopp |
c05c48 |
}
|
|
Karsten Hopp |
c05c48 |
|
|
Karsten Hopp |
c05c48 |
! static VALUE window_width(VALUE self UNUSED)
|
|
Karsten Hopp |
c05c48 |
{
|
|
Karsten Hopp |
c05c48 |
! return INT2NUM(W_WIDTH(get_win(self)));
|
|
Karsten Hopp |
c05c48 |
}
|
|
Karsten Hopp |
c05c48 |
|
|
Karsten Hopp |
c05c48 |
! static VALUE window_set_width(VALUE self UNUSED, VALUE width)
|
|
Karsten Hopp |
c05c48 |
{
|
|
Karsten Hopp |
c05c48 |
+ #ifdef FEAT_VERTSPLIT
|
|
Karsten Hopp |
c05c48 |
win_T *win = get_win(self);
|
|
Karsten Hopp |
c05c48 |
win_T *savewin = curwin;
|
|
Karsten Hopp |
c05c48 |
|
|
Karsten Hopp |
c05c48 |
curwin = win;
|
|
Karsten Hopp |
c05c48 |
win_setwidth(NUM2INT(width));
|
|
Karsten Hopp |
c05c48 |
curwin = savewin;
|
|
Karsten Hopp |
c05c48 |
+ #endif
|
|
Karsten Hopp |
c05c48 |
return width;
|
|
Karsten Hopp |
c05c48 |
}
|
|
Karsten Hopp |
c05c48 |
|
|
Karsten Hopp |
c05c48 |
*** ../vim-7.3.819/src/version.c 2013-02-14 22:11:31.000000000 +0100
|
|
Karsten Hopp |
c05c48 |
--- src/version.c 2013-02-14 22:19:09.000000000 +0100
|
|
Karsten Hopp |
c05c48 |
***************
|
|
Karsten Hopp |
c05c48 |
*** 727,728 ****
|
|
Karsten Hopp |
c05c48 |
--- 727,730 ----
|
|
Karsten Hopp |
c05c48 |
{ /* Add new patch number below this line */
|
|
Karsten Hopp |
c05c48 |
+ /**/
|
|
Karsten Hopp |
c05c48 |
+ 820,
|
|
Karsten Hopp |
c05c48 |
/**/
|
|
Karsten Hopp |
c05c48 |
|
|
Karsten Hopp |
c05c48 |
--
|
|
Karsten Hopp |
c05c48 |
Did Adam and Eve have navels?
|
|
Karsten Hopp |
c05c48 |
|
|
Karsten Hopp |
c05c48 |
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
|
|
Karsten Hopp |
c05c48 |
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
|
|
Karsten Hopp |
c05c48 |
\\\ an exciting new programming language -- http://www.Zimbu.org ///
|
|
Karsten Hopp |
c05c48 |
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|