X-Git-Url: http://git.chise.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=lib-src%2Fetags.c;h=d59e2e83f6b38c8e6a496f5c4c492df2df4b81e0;hb=7056f6045b95bfce9de41bde94dca7913414346c;hp=7ae810d96fc0443b562def274b45a2dfcf8fbb9e;hpb=40402600969429d5253e62c6314a3eebbb21f027;p=chise%2Fxemacs-chise.git diff --git a/lib-src/etags.c b/lib-src/etags.c index 7ae810d..d59e2e8 100644 --- a/lib-src/etags.c +++ b/lib-src/etags.c @@ -2805,6 +2805,7 @@ C_entries (c_ext, inf) midtoken = inquote = inchar = incomm = quotednl = FALSE; token.valid = savetoken.valid = FALSE; cblev = 0; + typdefcblev = 0; parlev = 0; cplpl = (c_ext & C_PLPL) == C_PLPL; cjava = (c_ext & C_JAVA) == C_JAVA; @@ -4016,8 +4017,9 @@ Perl_functions (inf) /* * Python support - * Look for /^def[ \t\n]+[^ \t\n(:]+/ or /^class[ \t\n]+[^ \t\n(:]+/ + * Look for /^[ \t\n]*def[ \t\n]+[^ \t\n(:]+/ or /^class[ \t\n]+[^ \t\n(:]+/ * Eric S. Raymond (1997) + * Sean Legassick (2004) */ static void Python_functions (inf) @@ -4027,6 +4029,7 @@ Python_functions (inf) LOOP_ON_INPUT_LINES (inf, lb, cp) { + cp = skip_spaces (cp); if (*cp++ == 'd' && *cp++ == 'e' && *cp++ == 'f' && iswhite (*cp++)) @@ -5143,6 +5146,7 @@ add_regex (regexp_pattern, ignore_case, lang) bool ignore_case; language *lang; { + static struct re_pattern_buffer zeropattern; char *name; const char *err; struct re_pattern_buffer *patbuf; @@ -5163,11 +5167,9 @@ add_regex (regexp_pattern, ignore_case, lang) (void) scan_separators (name); patbuf = xnew (1, struct re_pattern_buffer); + *patbuf = zeropattern; /* Translation table to fold case if appropriate. */ patbuf->translate = (ignore_case) ? lc_trans : NULL; - patbuf->fastmap = NULL; - patbuf->buffer = NULL; - patbuf->allocated = 0; err = re_compile_pattern (regexp_pattern, strlen (regexp_pattern), patbuf); if (err != NULL)