]> granicus.if.org Git - vim/commitdiff
updated for version 7.3.1213 v7.3.1213
authorBram Moolenaar <Bram@vim.org>
Sun, 16 Jun 2013 15:32:40 +0000 (17:32 +0200)
committerBram Moolenaar <Bram@vim.org>
Sun, 16 Jun 2013 15:32:40 +0000 (17:32 +0200)
Problem:    Can't build with small features and Python.
Solution:   Adjust #ifdefs.

src/buffer.c
src/eval.c
src/version.c
src/window.c

index 6e3fa55b8bfc37f18e188b67e4c6d914fdd13368..ee5d33cd4041dbec281748d437504394a87e0561 100644 (file)
@@ -984,6 +984,10 @@ do_bufdel(command, arg, addr_count, start_bnr, end_bnr, forceit)
 
     return errormsg;
 }
+#endif /* FEAT_LISTCMDS */
+
+#if defined(FEAT_LISTCMDS) || defined(FEAT_PYTHON) \
+       || defined(FEAT_PYTHON3) || defined(PROTO)
 
 /*
  * Implementation of the commands for the buffer list.
@@ -1364,8 +1368,7 @@ do_buffer(action, start, dir, count, forceit)
 
     return OK;
 }
-
-#endif /* FEAT_LISTCMDS */
+#endif
 
 /*
  * Set current buffer to "buf".  Executes autocommands and closes current
index a4dae79c7959980a490eca16dcbd82b8ef213602..9a0258906fafbe3ca197fcfd34dc8bdb0535f2ab 100644 (file)
@@ -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;
index 8d730d00c6b9fbe0ca174a912ab58082b68e3e94..dbbda7ad3df9f0336746765ce0d23992e67dc776 100644 (file)
@@ -728,6 +728,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1213,
 /**/
     1212,
 /**/
index ca92d57712cbebf11e0af03e9027d91c44e81645..1ed3decac194c2e9f474180dc6b97a2b0764f44e 100644 (file)
@@ -6582,11 +6582,11 @@ restore_snapshot_rec(sn, fr)
  */
     int
 switch_win(save_curwin, save_curtab, win, tp, no_display)
-    win_T      **save_curwin;
-    tabpage_T  **save_curtab;
-    win_T      *win;
-    tabpage_T  *tp;
-    int                no_display;
+    win_T      **save_curwin UNUSED;
+    tabpage_T  **save_curtab UNUSED;
+    win_T      *win UNUSED;
+    tabpage_T  *tp UNUSED;
+    int                no_display UNUSED;
 {
 # ifdef FEAT_AUTOCMD
     block_autocmds();
@@ -6627,9 +6627,9 @@ switch_win(save_curwin, save_curtab, win, tp, no_display)
  */
     void
 restore_win(save_curwin, save_curtab, no_display)
-    win_T      *save_curwin;
-    tabpage_T  *save_curtab;
-    int                no_display;
+    win_T      *save_curwin UNUSED;
+    tabpage_T  *save_curtab UNUSED;
+    int                no_display UNUSED;
 {
 # ifdef FEAT_WINDOWS
     if (save_curtab != NULL && valid_tabpage(save_curtab))
@@ -6906,9 +6906,10 @@ get_win_number(win_T *wp, win_T *first_win)
 }
 
     int
-get_tab_number(tabpage_T *tp)
+get_tab_number(tabpage_T *tp UNUSED)
 {
     int                i = 1;
+# ifdef FEAT_WINDOWS
     tabpage_T  *t;
 
     for (t = first_tabpage; t != NULL && t != tp; t = t->tp_next)
@@ -6917,6 +6918,7 @@ get_tab_number(tabpage_T *tp)
     if (t == NULL)
        return 0;
     else
+# endif
        return i;
 }
 #endif