]> granicus.if.org Git - vim/commitdiff
patch 8.1.1040: FEAT_TAG_ANYWHITE is not enabled in any build v8.1.1040
authorBram Moolenaar <Bram@vim.org>
Fri, 22 Mar 2019 16:03:05 +0000 (17:03 +0100)
committerBram Moolenaar <Bram@vim.org>
Fri, 22 Mar 2019 16:03:05 +0000 (17:03 +0100)
Problem:    FEAT_TAG_ANYWHITE is not enabled in any build.
Solution:   Remove the feature.

src/Make_vms.mms
src/evalfunc.c
src/feature.h
src/tag.c
src/version.c

index 2eff6a6f61d38b80e26ded051e5e48db329e7ad7..9159496fd374ba6139d3ea9948a146aa01002d68 100644 (file)
@@ -256,11 +256,6 @@ HANGULIN_OBJ = hangulin.obj
 .ENDIF
 .ENDIF
 
-.IFDEF VIM_TAG_ANYWHITE
-# TAG_ANYWHITE related setup.
-TAG_DEF = ,"FEAT_TAG_ANYWHITE"
-.ENDIF
-
 .IFDEF VIM_MZSCHEME
 # MZSCHEME related setup
 MZSCH_DEF = ,"FEAT_MZSCHEME"
index 81264bd560b1e6fe3f87a4bc39c6fe06038d3bb0..2f75cbf222e4755f6a9d58301936356843959c52 100644 (file)
@@ -6533,9 +6533,6 @@ f_has(typval_T *argvars, typval_T *rettv)
 #ifdef FEAT_TAG_OLDSTATIC
        "tag_old_static",
 #endif
-#ifdef FEAT_TAG_ANYWHITE
-       "tag_any_white",
-#endif
 #ifdef FEAT_TCL
 # ifndef DYNAMIC_TCL
        "tcl",
index e16fc62269501a8e40ed37a64c76aa4d6070fffa..63b553669645d1d5f545bf0357e239104631662f 100644 (file)
 # define FEAT_TAG_OLDSTATIC
 #endif
 
-/*
- * +tag_any_white      Allow any white space to separate the fields in a tags
- *                     file.  When not defined, only a TAB is allowed.
- */
-/* #define FEAT_TAG_ANYWHITE */
-
 /*
  * +cscope             Unix only: Cscope support.
  */
index 9dde6a9e2be7946104433eae7395c0f1319c67bc..9e270a29ed12a1ae9dfafd57ccf1701ab1bb59d6 100644 (file)
--- a/src/tag.c
+++ b/src/tag.c
@@ -1931,13 +1931,8 @@ parse_line:
            {
                vim_memset(&tagp, 0, sizeof(tagp));
                tagp.tagname = lbuf;
-#ifdef FEAT_TAG_ANYWHITE
-               tagp.tagname_end = skiptowhite(lbuf);
-               if (*tagp.tagname_end == NUL)
-#else
                tagp.tagname_end = vim_strchr(lbuf, TAB);
                if (tagp.tagname_end == NULL)
-#endif
                {
                    if (vim_strchr(lbuf, NL) == NULL)
                    {
@@ -1976,20 +1971,11 @@ parse_line:
                    if (*p == ':')
                    {
                        if (tagp.fname == NULL)
-# ifdef FEAT_TAG_ANYWHITE
-                           tagp.fname = skipwhite(tagp.tagname_end);
-# else
                            tagp.fname = tagp.tagname_end + 1;
-# endif
-                       if (       fnamencmp(lbuf, tagp.fname, p - lbuf) == 0
-# ifdef FEAT_TAG_ANYWHITE
-                               && VIM_ISWHITE(tagp.fname[p - lbuf])
-# else
-                               && tagp.fname[p - lbuf] == TAB
-# endif
-                                   )
+                       if (fnamencmp(lbuf, tagp.fname, p - lbuf) == 0
+                                               && tagp.fname[p - lbuf] == TAB)
                        {
-                           /* found one */
+                           // found one
                            tagp.tagname = p + 1;
                            break;
                        }
@@ -2112,20 +2098,10 @@ parse_line:
 #ifdef FEAT_TAG_OLDSTATIC
                if (tagp.fname == NULL)
 #endif
-#ifdef FEAT_TAG_ANYWHITE
-                   tagp.fname = skipwhite(tagp.tagname_end);
-#else
                    tagp.fname = tagp.tagname_end + 1;
-#endif
-#ifdef FEAT_TAG_ANYWHITE
-               tagp.fname_end = skiptowhite(tagp.fname);
-               tagp.command = skipwhite(tagp.fname_end);
-               if (*tagp.command == NUL)
-#else
                tagp.fname_end = vim_strchr(tagp.fname, TAB);
                tagp.command = tagp.fname_end + 1;
                if (tagp.fname_end == NULL)
-#endif
                    i = FAIL;
                else
                    i = OK;
@@ -2843,41 +2819,25 @@ etag_fail:
     else       /* not an Emacs tag */
     {
 #endif
-       /* Isolate the tagname, from lbuf up to the first white */
+       // Isolate the tagname, from lbuf up to the first white
        tagp->tagname = lbuf;
-#ifdef FEAT_TAG_ANYWHITE
-       p = skiptowhite(lbuf);
-#else
        p = vim_strchr(lbuf, TAB);
        if (p == NULL)
            return FAIL;
-#endif
        tagp->tagname_end = p;
 
-       /* Isolate file name, from first to second white space */
-#ifdef FEAT_TAG_ANYWHITE
-       p = skipwhite(p);
-#else
+       // Isolate file name, from first to second white space
        if (*p != NUL)
            ++p;
-#endif
        tagp->fname = p;
-#ifdef FEAT_TAG_ANYWHITE
-       p = skiptowhite(p);
-#else
        p = vim_strchr(p, TAB);
        if (p == NULL)
            return FAIL;
-#endif
        tagp->fname_end = p;
 
-       /* find start of search command, after second white space */
-#ifdef FEAT_TAG_ANYWHITE
-       p = skipwhite(p);
-#else
+       // find start of search command, after second white space
        if (*p != NUL)
            ++p;
-#endif
        if (*p == NUL)
            return FAIL;
        tagp->command = p;
index ddc30c051d64ca83925762507a30e8ab842140bd..59ffe0e9e12ba687a1c3b96f83b7c3345f5a6fc1 100644 (file)
@@ -610,11 +610,7 @@ static char *(features[]) =
 #else
        "-tag_old_static",
 #endif
-#ifdef FEAT_TAG_ANYWHITE
-       "+tag_any_white",
-#else
        "-tag_any_white",
-#endif
 #ifdef FEAT_TCL
 # ifdef DYNAMIC_TCL
        "+tcl/dyn",
@@ -779,6 +775,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1040,
 /**/
     1039,
 /**/