]> git.eshelyaron.com Git - emacs.git/commitdiff
(consider_token): check C++ `operator' only when the token len is long
authorFrancesco Potortì <pot@gnu.org>
Wed, 3 Sep 2003 14:18:03 +0000 (14:18 +0000)
committerFrancesco Potortì <pot@gnu.org>
Wed, 3 Sep 2003 14:18:03 +0000 (14:18 +0000)
enough.

lib-src/ChangeLog
lib-src/etags.c

index 95bd5e6c3103532da5ff615d8b73686feb72d07c..134eafc8d1e1bb938f860e320d0397fd3a938b3f 100644 (file)
@@ -1,3 +1,8 @@
+2003-08-25  Takaaki Ota  <Takaaki.Ota@am.sony.com>  (tiny change)
+
+       * etags.c (consider_token): check C++ `operator' only when the
+       token len is long enough.
+
 2003-05-03  Dave Love  <fx@gnu.org>
 
        * Makefile.in [HAVE_LIBMAIL]: Check HAVE_LIBLOCKFILE.
index faf5f7f06f2a8fd7a01b835fb62cf7c97bb03bbe..817469ab1ee0ddeb203be4c763068a993ccbda2e 100644 (file)
@@ -2668,7 +2668,8 @@ consider_token (str, len, c, c_extp, cblev, parlev, is_func_or_var)
              fvdef = vignore;
              return FALSE;
            }
-         if ((*c_extp & C_PLPL) && strneq (str+len-10, "::operator", 10))
+         if ((*c_extp & C_PLPL) &&
+             strneq (len >= 10 && str+len-10, "::operator", 10))
            {
              fvdef = foperator;
              *is_func_or_var = TRUE;