]> granicus.if.org Git - vim/commitdiff
patch 8.0.0221: unnecessary condition on PROTO v8.0.0221
authorBram Moolenaar <Bram@vim.org>
Sun, 22 Jan 2017 18:49:12 +0000 (19:49 +0100)
committerBram Moolenaar <Bram@vim.org>
Sun, 22 Jan 2017 18:49:12 +0000 (19:49 +0100)
Problem:    Checking if PROTO is defined inside a function has no effect.
Solution:   Remove the check for PROTO. (Hirohito Higashi)

src/misc1.c
src/version.c

index 046e2f067163ebbb14efcb1398d6beefd3bc9d39..cc5d5e60f6707e3bb52d2b777dfdf3d6f0990191 100644 (file)
@@ -2180,7 +2180,7 @@ ins_char(int c)
     char_u     buf[MB_MAXBYTES + 1];
     int                n = 1;
 
-#if defined(FEAT_MBYTE) || defined(PROTO)
+#ifdef FEAT_MBYTE
     n = (*mb_char2bytes)(c, buf);
 
     /* When "c" is 0x100, 0x200, etc. we don't want to insert a NUL byte.
index 84cb94030c7cded2b984ae3259cff44cbcb0f242..5cca0342e7bbb79a58347686242a0a708df8775e 100644 (file)
@@ -764,6 +764,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    221,
 /**/
     220,
 /**/