diff options
| author | Francesco Potortì | 2002-06-20 12:20:15 +0000 |
|---|---|---|
| committer | Francesco Potortì | 2002-06-20 12:20:15 +0000 |
| commit | 74032cc3c55228b297df4d33877557a8c11e7d8b (patch) | |
| tree | 1cf5d6be5a8982a66204b77fa3102721621561e3 /lib-src | |
| parent | 2201e3dcd65542e7b0de277c78d6df13fbf3f77a (diff) | |
| download | emacs-74032cc3c55228b297df4d33877557a8c11e7d8b.tar.gz emacs-74032cc3c55228b297df4d33877557a8c11e7d8b.zip | |
A bug in the new function. No change log.
Diffstat (limited to 'lib-src')
| -rw-r--r-- | lib-src/etags.c | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/lib-src/etags.c b/lib-src/etags.c index c6eb28f3849..0edfa480675 100644 --- a/lib-src/etags.c +++ b/lib-src/etags.c | |||
| @@ -1864,15 +1864,17 @@ make_tag (name, namelen, is_func, linestart, linelen, lno, cno) | |||
| 1864 | int lno; /* line number */ | 1864 | int lno; /* line number */ |
| 1865 | long cno; /* character number */ | 1865 | long cno; /* character number */ |
| 1866 | { | 1866 | { |
| 1867 | register char *cp; | 1867 | bool named = TRUE; |
| 1868 | bool named; | ||
| 1869 | 1868 | ||
| 1870 | named = TRUE; | ||
| 1871 | if (!CTAGS) | 1869 | if (!CTAGS) |
| 1872 | { | 1870 | { |
| 1873 | for (cp = name; !notinname (*cp); cp++) | 1871 | int i; |
| 1874 | continue; | 1872 | register char *cp = name; |
| 1875 | if (*cp == '\0') /* rule #1 */ | 1873 | |
| 1874 | for (i = 0; i < namelen; i++) | ||
| 1875 | if (notinname (*cp++)) | ||
| 1876 | break; | ||
| 1877 | if (i == namelen) /* rule #1 */ | ||
| 1876 | { | 1878 | { |
| 1877 | cp = linestart + linelen - namelen; | 1879 | cp = linestart + linelen - namelen; |
| 1878 | if (notinname (linestart[linelen-1])) | 1880 | if (notinname (linestart[linelen-1])) |