aboutsummaryrefslogtreecommitdiffstats
path: root/lib-src
diff options
context:
space:
mode:
authorFrancesco Potortì1995-02-01 11:08:17 +0000
committerFrancesco Potortì1995-02-01 11:08:17 +0000
commit4b533b5be6ead8e4749fa75c85246082e919402d (patch)
tree30b2afb4b12edf40f8b8d01a02a9eb9f9f70bf0f /lib-src
parent3e483e0134beb8d47e0acd7b7449575807971ce3 (diff)
downloademacs-4b533b5be6ead8e4749fa75c85246082e919402d.tar.gz
emacs-4b533b5be6ead8e4749fa75c85246082e919402d.zip
* etags.c (pfnote): Initialise been_warned in the node.
(C_entries): Removed a speed hack for the sake of clarity.
Diffstat (limited to 'lib-src')
-rw-r--r--lib-src/etags.c21
1 files changed, 5 insertions, 16 deletions
diff --git a/lib-src/etags.c b/lib-src/etags.c
index b50bbe48d63..fc0ce6522cc 100644
--- a/lib-src/etags.c
+++ b/lib-src/etags.c
@@ -31,8 +31,8 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
31 * Francesco Potorti` (pot@cnuce.cnr.it) is the current maintainer. 31 * Francesco Potorti` (pot@cnuce.cnr.it) is the current maintainer.
32 */ 32 */
33 33
34char pot_etags_version[] = "@(#) pot revision number is 11.16";
35 34
35char pot_etags_version[] = "@(#) pot revision number is 11.19";
36#ifdef MSDOS 36#ifdef MSDOS
37#include <fcntl.h> 37#include <fcntl.h>
38#include <sys/param.h> 38#include <sys/param.h>
@@ -1157,6 +1157,7 @@ pfnote (name, is_func, named, linestart, linelen, lno, cno)
1157 np->name = name; 1157 np->name = name;
1158 np->named = named; 1158 np->named = named;
1159 } 1159 }
1160 np->been_warned = FALSE;
1160 np->file = curfile; 1161 np->file = curfile;
1161 np->is_func = is_func; 1162 np->is_func = is_func;
1162 np->lno = lno; 1163 np->lno = lno;
@@ -2116,20 +2117,8 @@ C_entries (c_ext, inf)
2116 structdef = snone; 2117 structdef = snone;
2117 break; 2118 break;
2118 case dsharpseen: 2119 case dsharpseen:
2119 /* Take a quick peek ahead for a define directive, 2120 savetok = tok;
2120 so we can avoid saving the token when not absolutely 2121 token_saved = TRUE;
2121 necessary. [This is a speed hack.] */
2122 if (c == 'd' && strneq (lp, "efine", 5)
2123 && iswhite (*(lp + 5)))
2124 {
2125 savetok = tok;
2126 token_saved = TRUE;
2127 definedef = ddefineseen;
2128 lp += 6;
2129 }
2130 else
2131 definedef = dignorerest;
2132 continue;
2133 } 2122 }
2134 if (!yacc_rules || lp == newlb.buffer + 1) 2123 if (!yacc_rules || lp == newlb.buffer + 1)
2135 { 2124 {
@@ -2138,7 +2127,7 @@ C_entries (c_ext, inf)
2138 midtoken = TRUE; 2127 midtoken = TRUE;
2139 } 2128 }
2140 continue; 2129 continue;
2141 } 2130 } /* if (begtoken) */
2142 } /* if must look at token */ 2131 } /* if must look at token */
2143 2132
2144 2133