diff options
| author | Francesco Potortì | 2002-04-15 16:04:52 +0000 |
|---|---|---|
| committer | Francesco Potortì | 2002-04-15 16:04:52 +0000 |
| commit | 54ef70a20c8247f84e3b178e9bf6db10c4abd126 (patch) | |
| tree | 4bc854d4907522c0813b366b1560a87c8224a2bd /lib-src | |
| parent | 5dab24c1f20cf4ffb667b739beac94385fa53a46 (diff) | |
| download | emacs-54ef70a20c8247f84e3b178e9bf6db10c4abd126.tar.gz emacs-54ef70a20c8247f84e3b178e9bf6db10c4abd126.zip | |
* 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.
Diffstat (limited to 'lib-src')
| -rw-r--r-- | lib-src/etags.c | 6 |
1 files changed, 3 insertions, 3 deletions
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. */ | |||
| 33 | * Francesco Potortì <pot@gnu.org> has maintained it since 1993. | 33 | * Francesco Potortì <pot@gnu.org> has maintained it since 1993. |
| 34 | */ | 34 | */ |
| 35 | 35 | ||
| 36 | char pot_etags_version[] = "@(#) pot revision number is 15.10"; | 36 | char pot_etags_version[] = "@(#) pot revision number is 15.13"; |
| 37 | 37 | ||
| 38 | #define TRUE 1 | 38 | #define TRUE 1 |
| 39 | #define FALSE 0 | 39 | #define FALSE 0 |
| @@ -1634,7 +1634,7 @@ find_entries (inf) | |||
| 1634 | which is unlikely. */ | 1634 | which is unlikely. */ |
| 1635 | if (parser == NULL) | 1635 | if (parser == NULL) |
| 1636 | rewind (inf); | 1636 | rewind (inf); |
| 1637 | #if 0 | 1637 | |
| 1638 | /* Else try to guess the language given the case insensitive file name. */ | 1638 | /* Else try to guess the language given the case insensitive file name. */ |
| 1639 | if (parser == NULL) | 1639 | if (parser == NULL) |
| 1640 | { | 1640 | { |
| @@ -1645,7 +1645,7 @@ find_entries (inf) | |||
| 1645 | parser = lang->function; | 1645 | parser = lang->function; |
| 1646 | } | 1646 | } |
| 1647 | } | 1647 | } |
| 1648 | #endif | 1648 | |
| 1649 | if (!no_line_directive | 1649 | if (!no_line_directive |
| 1650 | && curfdp->lang != NULL && curfdp->lang->metasource) | 1650 | && curfdp->lang != NULL && curfdp->lang->metasource) |
| 1651 | /* It may be that this is a bingo.y file, and we already parsed a bingo.c | 1651 | /* It may be that this is a bingo.y file, and we already parsed a bingo.c |