]> git.eshelyaron.com Git - emacs.git/commitdiff
* etags.c (get_language_from_filename): Add one argument.
authorFrancesco Potortì <pot@gnu.org>
Mon, 15 Apr 2002 16:04:52 +0000 (16:04 +0000)
committerFrancesco Potortì <pot@gnu.org>
Mon, 15 Apr 2002 16:04:52 +0000 (16:04 +0000)
(strcaseeq): New function.
(get_language_from_filename): Use it to do a case insenstitive
comparison if called with appropriate args.
(find_entries): Try with case insensitive match.
(process_file): Bug fixed.

lib-src/etags.c

index 48989426641171fc0a15117003dd9908b4aa7583..56d6136e21c7189b3f9d42da8826eb92cd67e7f9 100644 (file)
@@ -33,7 +33,7 @@ Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
  *     Francesco Potortì <pot@gnu.org> has maintained it since 1993.
  */
 
-char pot_etags_version[] = "@(#) pot revision number is 15.10";
+char pot_etags_version[] = "@(#) pot revision number is 15.13";
 
 #define        TRUE    1
 #define        FALSE   0
@@ -1634,7 +1634,7 @@ find_entries (inf)
      which is unlikely. */
   if (parser == NULL)
     rewind (inf);
-#if 0
+
   /* Else try to guess the language given the case insensitive file name. */
   if (parser == NULL)
     {
@@ -1645,7 +1645,7 @@ find_entries (inf)
          parser = lang->function;
        }
     }
-#endif
+
   if (!no_line_directive
       && curfdp->lang != NULL && curfdp->lang->metasource)
     /* It may be that this is a bingo.y file, and we already parsed a bingo.c