diff options
Diffstat (limited to 'lib-src')
| -rw-r--r-- | lib-src/etags.c | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/lib-src/etags.c b/lib-src/etags.c index 0120226b38c..d05962503ec 100644 --- a/lib-src/etags.c +++ b/lib-src/etags.c | |||
| @@ -31,7 +31,7 @@ Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ | |||
| 31 | * Francesco Potorti` (F.Potorti@cnuce.cnr.it) is the current maintainer. | 31 | * Francesco Potorti` (F.Potorti@cnuce.cnr.it) is the current maintainer. |
| 32 | */ | 32 | */ |
| 33 | 33 | ||
| 34 | char pot_etags_version[] = "@(#) pot revision number is 11.80"; | 34 | char pot_etags_version[] = "@(#) pot revision number is 11.82"; |
| 35 | 35 | ||
| 36 | #define TRUE 1 | 36 | #define TRUE 1 |
| 37 | #define FALSE 0 | 37 | #define FALSE 0 |
| @@ -86,7 +86,7 @@ extern int errno; | |||
| 86 | #endif /* ETAGS_REGEXPS */ | 86 | #endif /* ETAGS_REGEXPS */ |
| 87 | 87 | ||
| 88 | /* Define CTAGS to make the program "ctags" compatible with the usual one. | 88 | /* Define CTAGS to make the program "ctags" compatible with the usual one. |
| 89 | Let it undefined to make the program "etags", which makes emacs-style | 89 | Leave it undefined to make the program "etags", which makes emacs-style |
| 90 | tag tables and tags typedefs, #defines and struct/union/enum by default. */ | 90 | tag tables and tags typedefs, #defines and struct/union/enum by default. */ |
| 91 | #ifdef CTAGS | 91 | #ifdef CTAGS |
| 92 | # undef CTAGS | 92 | # undef CTAGS |
| @@ -3973,7 +3973,7 @@ add_regex (regexp_pattern) | |||
| 3973 | { | 3973 | { |
| 3974 | char *name; | 3974 | char *name; |
| 3975 | const char *err; | 3975 | const char *err; |
| 3976 | struct re_pattern_buffer *patbuf; | 3976 | struct re_pattern_buffer *patbuf, patbuf_init = { 0 }; |
| 3977 | 3977 | ||
| 3978 | if (regexp_pattern == NULL) | 3978 | if (regexp_pattern == NULL) |
| 3979 | { | 3979 | { |
| @@ -4002,10 +4002,7 @@ add_regex (regexp_pattern) | |||
| 4002 | (void) scan_separators (name); | 4002 | (void) scan_separators (name); |
| 4003 | 4003 | ||
| 4004 | patbuf = xnew (1, struct re_pattern_buffer); | 4004 | patbuf = xnew (1, struct re_pattern_buffer); |
| 4005 | patbuf->translate = NULL; | 4005 | *patbuf = patbuf_init; |
| 4006 | patbuf->fastmap = NULL; | ||
| 4007 | patbuf->buffer = NULL; | ||
| 4008 | patbuf->allocated = 0; | ||
| 4009 | 4006 | ||
| 4010 | err = re_compile_pattern (regexp_pattern, strlen (regexp_pattern), patbuf); | 4007 | err = re_compile_pattern (regexp_pattern, strlen (regexp_pattern), patbuf); |
| 4011 | if (err != NULL) | 4008 | if (err != NULL) |