From 54ef70a20c8247f84e3b178e9bf6db10c4abd126 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Francesco=20Potort=C3=AC?= Date: Mon, 15 Apr 2002 16:04:52 +0000 Subject: [PATCH] * 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. --- lib-src/etags.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib-src/etags.c b/lib-src/etags.c index 4898942664..56d6136e21 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 -- 2.20.1