From: Francesco Potortì Date: Mon, 15 Apr 2002 16:04:52 +0000 (+0000) Subject: * etags.c (get_language_from_filename): Add one argument. X-Git-Tag: ttn-vms-21-2-B4~15599 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=54ef70a20c8247f84e3b178e9bf6db10c4abd126;p=emacs.git * etags.c (get_language_from_filename): Add one argument. (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. --- diff --git a/lib-src/etags.c b/lib-src/etags.c index 48989426641..56d6136e21c 100644 --- a/lib-src/etags.c +++ b/lib-src/etags.c @@ -33,7 +33,7 @@ Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ * Francesco Potortì 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