summaryrefslogtreecommitdiff
path: root/src/eval.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2013-06-16 17:32:40 +0200
committerBram Moolenaar <Bram@vim.org>2013-06-16 17:32:40 +0200
commit8c0e322f18c11f4cc2fb6ee2525d47374044a706 (patch)
treea950bc417b81cfd118d7aa119fe0e5dd6ae75c9a /src/eval.c
parent6949eea7cc79ef35921f82411bf8439a079ca424 (diff)
downloadvim-git-8c0e322f18c11f4cc2fb6ee2525d47374044a706.tar.gz
updated for version 7.3.1213v7.3.1213
Problem: Can't build with small features and Python. Solution: Adjust #ifdefs.
Diffstat (limited to 'src/eval.c')
-rw-r--r--src/eval.c25
1 files changed, 20 insertions, 5 deletions
diff --git a/src/eval.c b/src/eval.c
index a4dae79c7..9a0258906 100644
--- a/src/eval.c
+++ b/src/eval.c
@@ -112,7 +112,9 @@ static char *e_dictrange = N_("E719: Cannot use [:] with a Dictionary");
static char *e_letwrong = N_("E734: Wrong variable type for %s=");
static char *e_nofunc = N_("E130: Unknown function: %s");
static char *e_illvar = N_("E461: Illegal variable name: %s");
+#ifdef FEAT_FLOAT
static char *e_float_as_string = N_("E806: using Float as a String");
+#endif
static dictitem_T globvars_var; /* variable used for g: */
#define globvarht globvardict.dv_hashtab
@@ -11882,7 +11884,7 @@ f_getwinposy(argvars, rettv)
static win_T *
find_win_by_nr(vp, tp)
typval_T *vp;
- tabpage_T *tp; /* NULL for current tab page */
+ tabpage_T *tp UNUSED; /* NULL for current tab page */
{
#ifdef FEAT_WINDOWS
win_T *wp;
@@ -11932,7 +11934,8 @@ getwinvar(argvars, rettv, off)
win_T *win, *oldcurwin;
char_u *varname;
dictitem_T *v;
- tabpage_T *tp, *oldtabpage;
+ tabpage_T *tp = NULL;
+ tabpage_T *oldtabpage;
int done = FALSE;
#ifdef FEAT_WINDOWS
@@ -16683,24 +16686,34 @@ f_settabvar(argvars, rettv)
typval_T *argvars;
typval_T *rettv;
{
+#ifdef FEAT_WINDOWS
tabpage_T *save_curtab;
+ tabpage_T *tp;
+#endif
char_u *varname, *tabvarname;
typval_T *varp;
- tabpage_T *tp;
rettv->vval.v_number = 0;
if (check_restricted() || check_secure())
return;
+#ifdef FEAT_WINDOWS
tp = find_tabpage((int)get_tv_number_chk(&argvars[0], NULL));
+#endif
varname = get_tv_string_chk(&argvars[1]);
varp = &argvars[2];
- if (tp != NULL && varname != NULL && varp != NULL)
+ if (varname != NULL && varp != NULL
+#ifdef FEAT_WINDOWS
+ && tp != NULL
+#endif
+ )
{
+#ifdef FEAT_WINDOWS
save_curtab = curtab;
goto_tabpage_tp(tp, FALSE, FALSE);
+#endif
tabvarname = alloc((unsigned)STRLEN(varname) + 3);
if (tabvarname != NULL)
@@ -16711,9 +16724,11 @@ f_settabvar(argvars, rettv)
vim_free(tabvarname);
}
+#ifdef FEAT_WINDOWS
/* Restore current tabpage */
if (valid_tabpage(save_curtab))
goto_tabpage_tp(save_curtab, FALSE, FALSE);
+#endif
}
}
@@ -16757,7 +16772,7 @@ setwinvar(argvars, rettv, off)
char_u *varname, *winvarname;
typval_T *varp;
char_u nbuf[NUMBUFLEN];
- tabpage_T *tp;
+ tabpage_T *tp = NULL;
if (check_restricted() || check_secure())
return;