|
Karsten Hopp |
31d045 |
To: vim_dev@googlegroups.com
|
|
Karsten Hopp |
31d045 |
Subject: Patch 7.3.1213
|
|
Karsten Hopp |
31d045 |
Fcc: outbox
|
|
Karsten Hopp |
31d045 |
From: Bram Moolenaar <Bram@moolenaar.net>
|
|
Karsten Hopp |
31d045 |
Mime-Version: 1.0
|
|
Karsten Hopp |
31d045 |
Content-Type: text/plain; charset=UTF-8
|
|
Karsten Hopp |
31d045 |
Content-Transfer-Encoding: 8bit
|
|
Karsten Hopp |
31d045 |
------------
|
|
Karsten Hopp |
31d045 |
|
|
Karsten Hopp |
31d045 |
Patch 7.3.1213
|
|
Karsten Hopp |
31d045 |
Problem: Can't build with small features and Python.
|
|
Karsten Hopp |
31d045 |
Solution: Adjust #ifdefs.
|
|
Karsten Hopp |
31d045 |
Files: src/eval.c, src/buffer.c, src/window.c
|
|
Karsten Hopp |
31d045 |
|
|
Karsten Hopp |
31d045 |
|
|
Karsten Hopp |
31d045 |
*** ../vim-7.3.1212/src/eval.c 2013-06-16 14:18:20.000000000 +0200
|
|
Karsten Hopp |
31d045 |
--- src/eval.c 2013-06-16 17:24:32.000000000 +0200
|
|
Karsten Hopp |
31d045 |
***************
|
|
Karsten Hopp |
31d045 |
*** 112,118 ****
|
|
Karsten Hopp |
31d045 |
--- 112,120 ----
|
|
Karsten Hopp |
31d045 |
static char *e_letwrong = N_("E734: Wrong variable type for %s=");
|
|
Karsten Hopp |
31d045 |
static char *e_nofunc = N_("E130: Unknown function: %s");
|
|
Karsten Hopp |
31d045 |
static char *e_illvar = N_("E461: Illegal variable name: %s");
|
|
Karsten Hopp |
31d045 |
+ #ifdef FEAT_FLOAT
|
|
Karsten Hopp |
31d045 |
static char *e_float_as_string = N_("E806: using Float as a String");
|
|
Karsten Hopp |
31d045 |
+ #endif
|
|
Karsten Hopp |
31d045 |
|
|
Karsten Hopp |
31d045 |
static dictitem_T globvars_var; /* variable used for g: */
|
|
Karsten Hopp |
31d045 |
#define globvarht globvardict.dv_hashtab
|
|
Karsten Hopp |
31d045 |
***************
|
|
Karsten Hopp |
31d045 |
*** 11882,11888 ****
|
|
Karsten Hopp |
31d045 |
static win_T *
|
|
Karsten Hopp |
31d045 |
find_win_by_nr(vp, tp)
|
|
Karsten Hopp |
31d045 |
typval_T *vp;
|
|
Karsten Hopp |
31d045 |
! tabpage_T *tp; /* NULL for current tab page */
|
|
Karsten Hopp |
31d045 |
{
|
|
Karsten Hopp |
31d045 |
#ifdef FEAT_WINDOWS
|
|
Karsten Hopp |
31d045 |
win_T *wp;
|
|
Karsten Hopp |
31d045 |
--- 11884,11890 ----
|
|
Karsten Hopp |
31d045 |
static win_T *
|
|
Karsten Hopp |
31d045 |
find_win_by_nr(vp, tp)
|
|
Karsten Hopp |
31d045 |
typval_T *vp;
|
|
Karsten Hopp |
31d045 |
! tabpage_T *tp UNUSED; /* NULL for current tab page */
|
|
Karsten Hopp |
31d045 |
{
|
|
Karsten Hopp |
31d045 |
#ifdef FEAT_WINDOWS
|
|
Karsten Hopp |
31d045 |
win_T *wp;
|
|
Karsten Hopp |
31d045 |
***************
|
|
Karsten Hopp |
31d045 |
*** 11932,11938 ****
|
|
Karsten Hopp |
31d045 |
win_T *win, *oldcurwin;
|
|
Karsten Hopp |
31d045 |
char_u *varname;
|
|
Karsten Hopp |
31d045 |
dictitem_T *v;
|
|
Karsten Hopp |
31d045 |
! tabpage_T *tp, *oldtabpage;
|
|
Karsten Hopp |
31d045 |
int done = FALSE;
|
|
Karsten Hopp |
31d045 |
|
|
Karsten Hopp |
31d045 |
#ifdef FEAT_WINDOWS
|
|
Karsten Hopp |
31d045 |
--- 11934,11941 ----
|
|
Karsten Hopp |
31d045 |
win_T *win, *oldcurwin;
|
|
Karsten Hopp |
31d045 |
char_u *varname;
|
|
Karsten Hopp |
31d045 |
dictitem_T *v;
|
|
Karsten Hopp |
31d045 |
! tabpage_T *tp = NULL;
|
|
Karsten Hopp |
31d045 |
! tabpage_T *oldtabpage;
|
|
Karsten Hopp |
31d045 |
int done = FALSE;
|
|
Karsten Hopp |
31d045 |
|
|
Karsten Hopp |
31d045 |
#ifdef FEAT_WINDOWS
|
|
Karsten Hopp |
31d045 |
***************
|
|
Karsten Hopp |
31d045 |
*** 16683,16706 ****
|
|
Karsten Hopp |
31d045 |
typval_T *argvars;
|
|
Karsten Hopp |
31d045 |
typval_T *rettv;
|
|
Karsten Hopp |
31d045 |
{
|
|
Karsten Hopp |
31d045 |
tabpage_T *save_curtab;
|
|
Karsten Hopp |
31d045 |
char_u *varname, *tabvarname;
|
|
Karsten Hopp |
31d045 |
typval_T *varp;
|
|
Karsten Hopp |
31d045 |
- tabpage_T *tp;
|
|
Karsten Hopp |
31d045 |
|
|
Karsten Hopp |
31d045 |
rettv->vval.v_number = 0;
|
|
Karsten Hopp |
31d045 |
|
|
Karsten Hopp |
31d045 |
if (check_restricted() || check_secure())
|
|
Karsten Hopp |
31d045 |
return;
|
|
Karsten Hopp |
31d045 |
|
|
Karsten Hopp |
31d045 |
tp = find_tabpage((int)get_tv_number_chk(&argvars[0], NULL));
|
|
Karsten Hopp |
31d045 |
varname = get_tv_string_chk(&argvars[1]);
|
|
Karsten Hopp |
31d045 |
varp = &argvars[2];
|
|
Karsten Hopp |
31d045 |
|
|
Karsten Hopp |
31d045 |
! if (tp != NULL && varname != NULL && varp != NULL)
|
|
Karsten Hopp |
31d045 |
{
|
|
Karsten Hopp |
31d045 |
save_curtab = curtab;
|
|
Karsten Hopp |
31d045 |
goto_tabpage_tp(tp, FALSE, FALSE);
|
|
Karsten Hopp |
31d045 |
|
|
Karsten Hopp |
31d045 |
tabvarname = alloc((unsigned)STRLEN(varname) + 3);
|
|
Karsten Hopp |
31d045 |
if (tabvarname != NULL)
|
|
Karsten Hopp |
31d045 |
--- 16686,16719 ----
|
|
Karsten Hopp |
31d045 |
typval_T *argvars;
|
|
Karsten Hopp |
31d045 |
typval_T *rettv;
|
|
Karsten Hopp |
31d045 |
{
|
|
Karsten Hopp |
31d045 |
+ #ifdef FEAT_WINDOWS
|
|
Karsten Hopp |
31d045 |
tabpage_T *save_curtab;
|
|
Karsten Hopp |
31d045 |
+ tabpage_T *tp;
|
|
Karsten Hopp |
31d045 |
+ #endif
|
|
Karsten Hopp |
31d045 |
char_u *varname, *tabvarname;
|
|
Karsten Hopp |
31d045 |
typval_T *varp;
|
|
Karsten Hopp |
31d045 |
|
|
Karsten Hopp |
31d045 |
rettv->vval.v_number = 0;
|
|
Karsten Hopp |
31d045 |
|
|
Karsten Hopp |
31d045 |
if (check_restricted() || check_secure())
|
|
Karsten Hopp |
31d045 |
return;
|
|
Karsten Hopp |
31d045 |
|
|
Karsten Hopp |
31d045 |
+ #ifdef FEAT_WINDOWS
|
|
Karsten Hopp |
31d045 |
tp = find_tabpage((int)get_tv_number_chk(&argvars[0], NULL));
|
|
Karsten Hopp |
31d045 |
+ #endif
|
|
Karsten Hopp |
31d045 |
varname = get_tv_string_chk(&argvars[1]);
|
|
Karsten Hopp |
31d045 |
varp = &argvars[2];
|
|
Karsten Hopp |
31d045 |
|
|
Karsten Hopp |
31d045 |
! if (varname != NULL && varp != NULL
|
|
Karsten Hopp |
31d045 |
! #ifdef FEAT_WINDOWS
|
|
Karsten Hopp |
31d045 |
! && tp != NULL
|
|
Karsten Hopp |
31d045 |
! #endif
|
|
Karsten Hopp |
31d045 |
! )
|
|
Karsten Hopp |
31d045 |
{
|
|
Karsten Hopp |
31d045 |
+ #ifdef FEAT_WINDOWS
|
|
Karsten Hopp |
31d045 |
save_curtab = curtab;
|
|
Karsten Hopp |
31d045 |
goto_tabpage_tp(tp, FALSE, FALSE);
|
|
Karsten Hopp |
31d045 |
+ #endif
|
|
Karsten Hopp |
31d045 |
|
|
Karsten Hopp |
31d045 |
tabvarname = alloc((unsigned)STRLEN(varname) + 3);
|
|
Karsten Hopp |
31d045 |
if (tabvarname != NULL)
|
|
Karsten Hopp |
31d045 |
***************
|
|
Karsten Hopp |
31d045 |
*** 16711,16719 ****
|
|
Karsten Hopp |
31d045 |
--- 16724,16734 ----
|
|
Karsten Hopp |
31d045 |
vim_free(tabvarname);
|
|
Karsten Hopp |
31d045 |
}
|
|
Karsten Hopp |
31d045 |
|
|
Karsten Hopp |
31d045 |
+ #ifdef FEAT_WINDOWS
|
|
Karsten Hopp |
31d045 |
/* Restore current tabpage */
|
|
Karsten Hopp |
31d045 |
if (valid_tabpage(save_curtab))
|
|
Karsten Hopp |
31d045 |
goto_tabpage_tp(save_curtab, FALSE, FALSE);
|
|
Karsten Hopp |
31d045 |
+ #endif
|
|
Karsten Hopp |
31d045 |
}
|
|
Karsten Hopp |
31d045 |
}
|
|
Karsten Hopp |
31d045 |
|
|
Karsten Hopp |
31d045 |
***************
|
|
Karsten Hopp |
31d045 |
*** 16757,16763 ****
|
|
Karsten Hopp |
31d045 |
char_u *varname, *winvarname;
|
|
Karsten Hopp |
31d045 |
typval_T *varp;
|
|
Karsten Hopp |
31d045 |
char_u nbuf[NUMBUFLEN];
|
|
Karsten Hopp |
31d045 |
! tabpage_T *tp;
|
|
Karsten Hopp |
31d045 |
|
|
Karsten Hopp |
31d045 |
if (check_restricted() || check_secure())
|
|
Karsten Hopp |
31d045 |
return;
|
|
Karsten Hopp |
31d045 |
--- 16772,16778 ----
|
|
Karsten Hopp |
31d045 |
char_u *varname, *winvarname;
|
|
Karsten Hopp |
31d045 |
typval_T *varp;
|
|
Karsten Hopp |
31d045 |
char_u nbuf[NUMBUFLEN];
|
|
Karsten Hopp |
31d045 |
! tabpage_T *tp = NULL;
|
|
Karsten Hopp |
31d045 |
|
|
Karsten Hopp |
31d045 |
if (check_restricted() || check_secure())
|
|
Karsten Hopp |
31d045 |
return;
|
|
Karsten Hopp |
31d045 |
*** ../vim-7.3.1212/src/buffer.c 2013-06-08 18:19:39.000000000 +0200
|
|
Karsten Hopp |
31d045 |
--- src/buffer.c 2013-06-16 17:14:14.000000000 +0200
|
|
Karsten Hopp |
31d045 |
***************
|
|
Karsten Hopp |
31d045 |
*** 984,989 ****
|
|
Karsten Hopp |
31d045 |
--- 984,993 ----
|
|
Karsten Hopp |
31d045 |
|
|
Karsten Hopp |
31d045 |
return errormsg;
|
|
Karsten Hopp |
31d045 |
}
|
|
Karsten Hopp |
31d045 |
+ #endif /* FEAT_LISTCMDS */
|
|
Karsten Hopp |
31d045 |
+
|
|
Karsten Hopp |
31d045 |
+ #if defined(FEAT_LISTCMDS) || defined(FEAT_PYTHON) \
|
|
Karsten Hopp |
31d045 |
+ || defined(FEAT_PYTHON3) || defined(PROTO)
|
|
Karsten Hopp |
31d045 |
|
|
Karsten Hopp |
31d045 |
/*
|
|
Karsten Hopp |
31d045 |
* Implementation of the commands for the buffer list.
|
|
Karsten Hopp |
31d045 |
***************
|
|
Karsten Hopp |
31d045 |
*** 1364,1371 ****
|
|
Karsten Hopp |
31d045 |
|
|
Karsten Hopp |
31d045 |
return OK;
|
|
Karsten Hopp |
31d045 |
}
|
|
Karsten Hopp |
31d045 |
!
|
|
Karsten Hopp |
31d045 |
! #endif /* FEAT_LISTCMDS */
|
|
Karsten Hopp |
31d045 |
|
|
Karsten Hopp |
31d045 |
/*
|
|
Karsten Hopp |
31d045 |
* Set current buffer to "buf". Executes autocommands and closes current
|
|
Karsten Hopp |
31d045 |
--- 1368,1374 ----
|
|
Karsten Hopp |
31d045 |
|
|
Karsten Hopp |
31d045 |
return OK;
|
|
Karsten Hopp |
31d045 |
}
|
|
Karsten Hopp |
31d045 |
! #endif
|
|
Karsten Hopp |
31d045 |
|
|
Karsten Hopp |
31d045 |
/*
|
|
Karsten Hopp |
31d045 |
* Set current buffer to "buf". Executes autocommands and closes current
|
|
Karsten Hopp |
31d045 |
*** ../vim-7.3.1212/src/window.c 2013-06-16 14:18:20.000000000 +0200
|
|
Karsten Hopp |
31d045 |
--- src/window.c 2013-06-16 17:25:11.000000000 +0200
|
|
Karsten Hopp |
31d045 |
***************
|
|
Karsten Hopp |
31d045 |
*** 6582,6592 ****
|
|
Karsten Hopp |
31d045 |
*/
|
|
Karsten Hopp |
31d045 |
int
|
|
Karsten Hopp |
31d045 |
switch_win(save_curwin, save_curtab, win, tp, no_display)
|
|
Karsten Hopp |
31d045 |
! win_T **save_curwin;
|
|
Karsten Hopp |
31d045 |
! tabpage_T **save_curtab;
|
|
Karsten Hopp |
31d045 |
! win_T *win;
|
|
Karsten Hopp |
31d045 |
! tabpage_T *tp;
|
|
Karsten Hopp |
31d045 |
! int no_display;
|
|
Karsten Hopp |
31d045 |
{
|
|
Karsten Hopp |
31d045 |
# ifdef FEAT_AUTOCMD
|
|
Karsten Hopp |
31d045 |
block_autocmds();
|
|
Karsten Hopp |
31d045 |
--- 6582,6592 ----
|
|
Karsten Hopp |
31d045 |
*/
|
|
Karsten Hopp |
31d045 |
int
|
|
Karsten Hopp |
31d045 |
switch_win(save_curwin, save_curtab, win, tp, no_display)
|
|
Karsten Hopp |
31d045 |
! win_T **save_curwin UNUSED;
|
|
Karsten Hopp |
31d045 |
! tabpage_T **save_curtab UNUSED;
|
|
Karsten Hopp |
31d045 |
! win_T *win UNUSED;
|
|
Karsten Hopp |
31d045 |
! tabpage_T *tp UNUSED;
|
|
Karsten Hopp |
31d045 |
! int no_display UNUSED;
|
|
Karsten Hopp |
31d045 |
{
|
|
Karsten Hopp |
31d045 |
# ifdef FEAT_AUTOCMD
|
|
Karsten Hopp |
31d045 |
block_autocmds();
|
|
Karsten Hopp |
31d045 |
***************
|
|
Karsten Hopp |
31d045 |
*** 6627,6635 ****
|
|
Karsten Hopp |
31d045 |
*/
|
|
Karsten Hopp |
31d045 |
void
|
|
Karsten Hopp |
31d045 |
restore_win(save_curwin, save_curtab, no_display)
|
|
Karsten Hopp |
31d045 |
! win_T *save_curwin;
|
|
Karsten Hopp |
31d045 |
! tabpage_T *save_curtab;
|
|
Karsten Hopp |
31d045 |
! int no_display;
|
|
Karsten Hopp |
31d045 |
{
|
|
Karsten Hopp |
31d045 |
# ifdef FEAT_WINDOWS
|
|
Karsten Hopp |
31d045 |
if (save_curtab != NULL && valid_tabpage(save_curtab))
|
|
Karsten Hopp |
31d045 |
--- 6627,6635 ----
|
|
Karsten Hopp |
31d045 |
*/
|
|
Karsten Hopp |
31d045 |
void
|
|
Karsten Hopp |
31d045 |
restore_win(save_curwin, save_curtab, no_display)
|
|
Karsten Hopp |
31d045 |
! win_T *save_curwin UNUSED;
|
|
Karsten Hopp |
31d045 |
! tabpage_T *save_curtab UNUSED;
|
|
Karsten Hopp |
31d045 |
! int no_display UNUSED;
|
|
Karsten Hopp |
31d045 |
{
|
|
Karsten Hopp |
31d045 |
# ifdef FEAT_WINDOWS
|
|
Karsten Hopp |
31d045 |
if (save_curtab != NULL && valid_tabpage(save_curtab))
|
|
Karsten Hopp |
31d045 |
***************
|
|
Karsten Hopp |
31d045 |
*** 6906,6914 ****
|
|
Karsten Hopp |
31d045 |
}
|
|
Karsten Hopp |
31d045 |
|
|
Karsten Hopp |
31d045 |
int
|
|
Karsten Hopp |
31d045 |
! get_tab_number(tabpage_T *tp)
|
|
Karsten Hopp |
31d045 |
{
|
|
Karsten Hopp |
31d045 |
int i = 1;
|
|
Karsten Hopp |
31d045 |
tabpage_T *t;
|
|
Karsten Hopp |
31d045 |
|
|
Karsten Hopp |
31d045 |
for (t = first_tabpage; t != NULL && t != tp; t = t->tp_next)
|
|
Karsten Hopp |
31d045 |
--- 6906,6915 ----
|
|
Karsten Hopp |
31d045 |
}
|
|
Karsten Hopp |
31d045 |
|
|
Karsten Hopp |
31d045 |
int
|
|
Karsten Hopp |
31d045 |
! get_tab_number(tabpage_T *tp UNUSED)
|
|
Karsten Hopp |
31d045 |
{
|
|
Karsten Hopp |
31d045 |
int i = 1;
|
|
Karsten Hopp |
31d045 |
+ # ifdef FEAT_WINDOWS
|
|
Karsten Hopp |
31d045 |
tabpage_T *t;
|
|
Karsten Hopp |
31d045 |
|
|
Karsten Hopp |
31d045 |
for (t = first_tabpage; t != NULL && t != tp; t = t->tp_next)
|
|
Karsten Hopp |
31d045 |
***************
|
|
Karsten Hopp |
31d045 |
*** 6917,6922 ****
|
|
Karsten Hopp |
31d045 |
--- 6918,6924 ----
|
|
Karsten Hopp |
31d045 |
if (t == NULL)
|
|
Karsten Hopp |
31d045 |
return 0;
|
|
Karsten Hopp |
31d045 |
else
|
|
Karsten Hopp |
31d045 |
+ # endif
|
|
Karsten Hopp |
31d045 |
return i;
|
|
Karsten Hopp |
31d045 |
}
|
|
Karsten Hopp |
31d045 |
#endif
|
|
Karsten Hopp |
31d045 |
*** ../vim-7.3.1212/src/version.c 2013-06-16 16:57:43.000000000 +0200
|
|
Karsten Hopp |
31d045 |
--- src/version.c 2013-06-16 17:30:40.000000000 +0200
|
|
Karsten Hopp |
31d045 |
***************
|
|
Karsten Hopp |
31d045 |
*** 730,731 ****
|
|
Karsten Hopp |
31d045 |
--- 730,733 ----
|
|
Karsten Hopp |
31d045 |
{ /* Add new patch number below this line */
|
|
Karsten Hopp |
31d045 |
+ /**/
|
|
Karsten Hopp |
31d045 |
+ 1213,
|
|
Karsten Hopp |
31d045 |
/**/
|
|
Karsten Hopp |
31d045 |
|
|
Karsten Hopp |
31d045 |
--
|
|
Karsten Hopp |
31d045 |
You can tune a file system, but you can't tuna fish
|
|
Karsten Hopp |
31d045 |
-- man tunefs
|
|
Karsten Hopp |
31d045 |
|
|
Karsten Hopp |
31d045 |
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
|
|
Karsten Hopp |
31d045 |
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
|
|
Karsten Hopp |
31d045 |
\\\ an exciting new programming language -- http://www.Zimbu.org ///
|
|
Karsten Hopp |
31d045 |
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|