changeset 20510:3d9a2c8d4f95 v8.2.0809

patch 8.2.0809: build failure with small features Commit: https://github.com/vim/vim/commit/5a80f8ad5dc0b2cc63400255dcf3c63f6c1a2ef9 Author: Bram Moolenaar <Bram@vim.org> Date: Fri May 22 13:38:18 2020 +0200 patch 8.2.0809: build failure with small features Problem: Build failure with small features. (Tony Mechelynck) Solution: Move "expr" inside #ifdef.
author Bram Moolenaar <Bram@vim.org>
date Fri, 22 May 2020 13:45:04 +0200
parents 5acf0e9d9019
children 07f529a41696
files src/map.c src/version.c
diffstat 2 files changed, 8 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/src/map.c
+++ b/src/map.c
@@ -211,13 +211,13 @@ map_add(
 	char_u	    *keys,
 	char_u	    *rhs,
 	char_u	    *orig_rhs,
-	int	    expr,
 	int	    noremap,
 	int	    nowait,
 	int	    silent,
 	int	    mode,
 	int	    is_abbr,
 #ifdef FEAT_EVAL
+	int	    expr,
 	scid_T	    sid,	    // -1 to use current_sctx
 	linenr_T    lnum,
 #endif
@@ -839,11 +839,10 @@ do_map(
 	    continue;	// have added the new entry already
 
 	// Get here when adding a new entry to the maphash[] list or abbrlist.
-	if (map_add(map_table, abbr_table, keys, rhs, orig_rhs, expr,
-		    noremap, nowait, silent, mode,
-		    abbrev,
+	if (map_add(map_table, abbr_table, keys, rhs, orig_rhs,
+		    noremap, nowait, silent, mode, abbrev,
 #ifdef FEAT_EVAL
-		    /* sid */ -1, /* lnum */ 0,
+		    expr, /* sid */ -1, /* lnum */ 0,
 #endif
 		    did_simplify && keyround == 1) == FAIL)
 	{
@@ -2331,8 +2330,8 @@ f_mapset(typval_T *argvars, typval_T *re
 
     keys = replace_termcodes(lhs, &keys_buf,
 				      REPTERM_FROM_PART | REPTERM_DO_LT, NULL);
-    (void)map_add(map_table, abbr_table, keys, rhs, rhs, expr,
-		noremap, nowait, silent, mode, is_abbr, sid, lnum, simplified);
+    (void)map_add(map_table, abbr_table, keys, rhs, rhs, noremap,
+	    nowait, silent, mode, is_abbr, expr, sid, lnum, simplified);
     vim_free(keys_buf);
 }
 #endif
--- a/src/version.c
+++ b/src/version.c
@@ -747,6 +747,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    809,
+/**/
     808,
 /**/
     807,