]> git.eshelyaron.com Git - emacs.git/commitdiff
* etags.c (pfnote): Initialise been_warned in the node.
authorFrancesco Potortì <pot@gnu.org>
Wed, 1 Feb 1995 11:08:17 +0000 (11:08 +0000)
committerFrancesco Potortì <pot@gnu.org>
Wed, 1 Feb 1995 11:08:17 +0000 (11:08 +0000)
(C_entries): Removed a speed hack for the sake of clarity.

lib-src/etags.c

index b50bbe48d635d7e76fbb28b0a630470c507622a9..fc0ce6522cc8bcd9045004962e9cac3655f1d86e 100644 (file)
@@ -31,8 +31,8 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.  */
  *     Francesco Potorti` (pot@cnuce.cnr.it) is the current maintainer.
  */
 
-char pot_etags_version[] = "@(#) pot revision number is 11.16";
 
+char pot_etags_version[] = "@(#) pot revision number is 11.19";
 #ifdef MSDOS
 #include <fcntl.h>
 #include <sys/param.h>
@@ -1157,6 +1157,7 @@ pfnote (name, is_func, named, linestart, linelen, lno, cno)
       np->name = name;
       np->named = named;
     }
+  np->been_warned = FALSE;
   np->file = curfile;
   np->is_func = is_func;
   np->lno = lno;
@@ -2116,20 +2117,8 @@ C_entries (c_ext, inf)
                    structdef = snone;
                  break;
                case dsharpseen:
-                 /* Take a quick peek ahead for a define directive,
-                    so we can avoid saving the token when not absolutely
-                    necessary. [This is a speed hack.] */
-                 if (c == 'd' && strneq (lp, "efine", 5)
-                     && iswhite (*(lp + 5)))
-                   {
-                     savetok = tok;
-                     token_saved = TRUE;
-                     definedef = ddefineseen;
-                     lp += 6;
-                   }
-                 else
-                   definedef = dignorerest;
-                 continue;
+                 savetok = tok;
+                 token_saved = TRUE;
                }
              if (!yacc_rules || lp == newlb.buffer + 1)
                {
@@ -2138,7 +2127,7 @@ C_entries (c_ext, inf)
                  midtoken = TRUE;
                }
              continue;
-           }
+           } /* if (begtoken) */
        } /* if must look at token */