Imported Upstream version 0.18.1.1
[platform/upstream/gettext.git] / gettext-tools / libgrep / ChangeLog
1 2010-06-04  Bruno Haible  <bruno@clisp.org>
2
3         * gettext-0.18.1 released.
4
5 2010-05-24  Bruno Haible  <bruno@clisp.org>
6
7         Use the newest regex module from gnulib.
8         * regex.h: Remove file.
9         * regex.c: Remove file.
10         * memchr.c: Remove file.
11         * Makefile.am: Include Makefile.gnulib.
12         (BUILT_SOURCES, MOSTLYCLEANFILES, MOSTLYCLEANDIRS, CLEANFILES,
13         DISTCLEANFILES, MAINTAINERCLEANFILES): New variables.
14         (noinst_LIBRARIES): Initialize empty.
15         (libgrep_a_SOURCES): Augment instead of initializing.
16         (LIBADD_SOURCE, libgrep_a_LIBADD, libgrep_a_DEPENDENCIES): Remove
17         variables.
18         * gnulib-lib/Makefile.am: New file.
19
20 2010-05-24  Bruno Haible  <bruno@clisp.org>
21
22         Code cleanup.
23         * m-regex.c (EGexecute): Write logic in a similar way as
24         m-fgrep.c:Fexecute.
25
26 2010-05-24  Bruno Haible  <bruno@clisp.org>
27
28         Fix bug: Avoid out-of-bounds access.
29         * m-regex.c (EGexecute): Fix test before second call to
30         IS_WORD_CONSTITUENT.
31
32 2010-05-24  Bruno Haible  <bruno@clisp.org>
33
34         Cleanup syntax.
35         * m-regex.c (compile, EGexecute): Remove useless parentheses.
36
37 2010-05-24  Bruno Haible  <bruno@clisp.org>
38
39         Tiny optimization.
40         * m-fgrep.c (Fexecute): New local variable buflim.
41
42 2010-05-24  Bruno Haible  <bruno@clisp.org>
43
44         * m-fgrep.c (Fcompile, Fexecute): Reduce scope of local variables.
45         * m-regex.c (compile, EGexecute): Likewise.
46         * kwset.c (kwsincr, treefails, kwsprep, bmexec, cwexec): Likewise.
47         (kwsexec): Remove useless cast.
48
49 2010-05-23  Bruno Haible  <bruno@clisp.org>
50
51         * kwset.c: Use GNU coding style.
52         (kwsalloc): Write NULL, not 0. Remove useless cast.
53
54 2010-05-23  Bruno Haible  <bruno@clisp.org>
55
56         msggrep: Fix interpretation of '$' in regular expressions.
57         * m-regex.c (EGexecute): When searching up to the end of a string that
58         does not end in a newline, set not_eol to 0.
59         Reported by Sean Flanigan <sflaniga@redhat.com>.
60
61 2010-05-24  Bruno Haible  <bruno@clisp.org>
62
63         * m-fgrep.c: Untabify.
64         * m-regex.c: Likewise.
65         * kwset.h: Likewise.
66         * kwset.c: Likewise.
67
68 2010-05-23  Bruno Haible  <bruno@clisp.org>
69
70         Fix bug: A regex was not regonized when it matched the end of the last
71         line and that last line was not terminated with a newline.
72         * m-regex.c (EGexecute): Don't ignore the last byte of the buffer if it
73         is not a newline.
74         * m-fgrep.c (Fexecute): Don't assume that the buffer contains a
75         newline.
76
77 2010-05-23  Bruno Haible  <bruno@clisp.org>
78
79         Do regex matching purely with regex, not regex + dfa + kwset.
80         * dfa.h: Remove file.
81         * dfa.c: Remove file.
82         * hard-locale.h: Remove file.
83         * hard-locale.c: Remove file.
84         * m-common.h: Remove file.
85         * m-common.c: Remove file.
86         * m-fgrep.c: Include <limits.h>, <stdbool.h>, not m-common.h.
87         (MBS_SUPPORT): Moved here from m-common.h.
88         Include kwset.h, gettext.h.
89         (_, ISUPPER, TOLOWER): Moved here from m-common.c.
90         (IS_WORD_CONSTITUENT, NCHAR, compiled_kwset): Moved here from
91         m-common.h.
92         (kwsinit, check_multibyte_string): Moved here from m-common.c.
93         * m-regex.c: Include <stdbool.h>, <regex.h>, not m-common.h.
94         (IS_WORD_CONSTITUENT): Moved here from m-common.h.
95         (struct compiled_regex): Remove fields dfa, ckwset,
96         kwset_exact_matches.
97         (dfaerror, kwsmusts): Remove functions.
98         (compile): Simplify accordingly.
99         (Gcompile): Likewise. Invoke compile.
100         (EGexecute): Simplify accordingly.
101         * Makefile.am (libgrep_a_SOURCES): Update.
102
103 2010-05-09  Bruno Haible  <bruno@clisp.org>
104
105         * gettext-0.18 released.
106
107 2009-12-12  Bruno Haible  <bruno@clisp.org>
108
109         * libgrep.h: Untabify.
110         * hard-locale.c: Untabify.
111         * memchr.c: Untabify.
112
113 2009-08-15  Bruno Haible  <bruno@clisp.org>
114
115         Stop using gnulib module 'strdup'.
116         * strdup.c: Remove file.
117         * Makefile.am (LIBADD_SOURCE): Remove strdup.c.
118
119 2008-04-28  Eric Blake  <ebb9@byu.net>
120
121         * memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
122
123 2008-04-27  Bruno Haible  <bruno@clisp.org>
124
125         * memchr.c (__memchr): Change type of 'i'.
126
127 2008-04-26  Eric Blake  <ebb9@byu.net>
128             Bruno Haible  <bruno@clisp.org>
129
130         * memchr.c: Include intprops.h.
131         (__memchr): Optimize parallel detection of matching bytes. Rename local
132         variables. Add explanatory comments.
133
134 2008-04-26  Bruno Haible  <bruno@clisp.org>
135
136         Fix module 'memchr', broken since 2000-10-28.
137         * memchr.c: Outside glibc, define memchr, not __memchr.
138
139 2007-11-07  Bruno Haible  <bruno@clisp.org>
140
141         * gettext-0.17 released.
142
143 2007-01-26  Bruno Haible  <bruno@clisp.org>
144
145         * Makefile.am (LIBADD_SOURCE): Remove strdup.h.
146
147 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
148
149         * strdup.h: Remove file.
150         * strdup.c: Don't include no-longer-existent include files. Rely on
151         <string.h> instead.
152         * hard-locale.c: Likewise.
153
154 2006-11-03  Bruno Haible  <bruno@clisp.org>
155
156         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
157         * m-common.c (kwsinit): Use XNMALLOC instead of xmalloc.
158         * m-fgrep.c (Fcompile): Use XMALLOC instead of xmalloc.
159         * m-regex.c (Gcompile, compile): Use XMALLOC, XNMALLOC instead of
160         xmalloc.
161
162 2006-11-01  Bruno Haible  <bruno@clisp.org>
163
164         * dfa.c (delete_pos): Renamed from remove.
165         (epsclosure): Update.
166         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
167
168 2006-10-29  Bruno Haible  <bruno@clisp.org>
169
170         Make it compile in C++ mode.
171         * dfa.h (token): Typedef as int.
172         * dfa.c (remove): Renamed from delete.
173         (epsclosure): Update.
174         (match_mb_charset): Cast strncpy argument.
175         (dfaexec): Add cast.
176         (dfacomp): Cast malloc result.
177         (icatalloc): Rename argument names to 'stem', 'suffix'.
178         (enlist): Rename 'new' argument to 'suffix'.
179         (addlists): Rename 'new' argument to 'suffixes'.
180         (dfamust): Cast malloc results. Rename local variable 'new' to 'common'.
181         * kwset.c (kwsprep): Cast obstack_alloc result.
182         (bmexec): Cast memchr result.
183         * m-fgrep.c (Fexecute): Rename local variable 'try' to 'curr'. Cast
184         memchr result.
185         * m-regex.c (struct patterns): Move out of the scope of struct
186         compiled_regex.
187         (Gcompile, compile, EGexecute): Cast memchr results.
188         * regex.c (EXTEND_BUFFER): Cast REALLOC result.
189         (byte_re_match_2_internal): Limit the scope of same_str_p variable.
190         Rename local variable 'not' to 'invert'.
191         (regcomp): Cast malloc results.
192
193 2006-11-27  Bruno Haible  <bruno@clisp.org>
194
195         * gettext-0.16.1 released.
196
197 2006-10-26  Bruno Haible  <bruno@clisp.org>
198
199         * gettext-0.16 released.
200
201 2006-10-10  Bruno Haible  <bruno@clisp.org>
202
203         Make it possible to #define stpcpy, strdup to aliases.
204         * strdup.c (strdup) [!_LIBC]: Don't undefine.
205
206 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
207
208         * memchr.c: Include <config.h> unconditionally.
209         * strdup.c: Likewise.
210
211 2006-07-30  Bruno Haible  <bruno@clisp.org>
212
213         * Makefile.am (AM_CPPFLAGS): Replace ../lib with ../gnulib-lib.
214
215 2006-07-25  Bruno Haible  <bruno@clisp.org>
216
217         * Makefile.msvc: Remove file.
218         * Makefile.am (EXTRA_DIST): Remove Makefile.msvc.
219
220 2006-07-25  Bruno Haible  <bruno@clisp.org>
221
222         * Makefile.vms: Remove file.
223         * Makefile.am (EXTRA_DIST): Remove Makefile.vms.
224
225 2006-07-21  Bruno Haible  <bruno@clisp.org>
226
227         * gettext-0.15 released.
228
229 2006-05-16  Bruno Haible  <bruno@clisp.org>
230
231         * regex.c (mempcpy) [_LIBC]: New macro.
232         (regerror): Use it instead of __mempcpy.
233
234 2005-10-06  Bruno Haible  <bruno@clisp.org>
235
236         * hard-locale.c: Test HAVE_CONFIG_H using #ifdef.
237         * m-common.c: Likewise.
238         * m-fgrep.c: Likewise.
239         * m-regex.c: Likewise.
240         Reported by Ralf Wildenhues on bug-gnulib.
241
242 2005-04-18  Bruno Haible  <bruno@clisp.org>
243
244         * dfa.c (update_mb_len_index): Change argument type to 'const char *'.
245         Avoids gcc-4.0 warnings.
246
247 2006-06-21  Bruno Haible  <bruno@clisp.org>
248
249         * gettext-0.14.6 released.
250
251 2005-05-23  Bruno Haible  <bruno@clisp.org>
252
253         * gettext-0.14.5 released.
254
255 2005-04-11  Bruno Haible  <bruno@clisp.org>
256
257         * gettext-0.14.4 released.
258
259 2005-03-14  Bruno Haible  <bruno@clisp.org>
260
261         * gettext-0.14.3 released.
262
263 2005-02-24  Bruno Haible  <bruno@clisp.org>
264
265         * gettext-0.14.2 released.
266
267 2005-02-12  Bruno Haible  <bruno@clisp.org>
268
269         * Makefile.msvc (INCLUDES): Add -I., needed for <regex.h>, and
270         -I..\intl, needed for <libintl.h>.
271
272 2005-02-12  Bruno Haible  <bruno@clisp.org>
273
274         * libgrep.h: Add extern "C" for C++.
275
276 2003-07-08  David Kaelbling  <drk@sgi.com>
277
278         * dfa.c (lex): Remove non-constant initializers.
279
280 2005-02-08  Bruno Haible  <bruno@clisp.org>
281
282         * kwset.h (kwsincr, kwsprep): Change return type to 'const char *'.
283         * kwset.c (kwsincr, kwsprep): Likewise.
284
285 2005-02-03  Bruno Haible  <bruno@clisp.org>
286
287         * dfa.c (dfaexec): Avoid continuing the loop past the end of the
288         string.
289
290 2005-01-27  Bruno Haible  <bruno@clisp.org>
291
292         * dfa.c (parse_bracket_exp_mb): Don't confuse wctype_t with wchar_t.
293
294 2005-01-27  Bruno Haible  <bruno@clisp.org>
295
296         * Makefile.am (libgrep_a_DEPENDENCIES): New variable.
297         (AM_CPPFLAGS): Add -I../intl, so that libintl.h is found before gettext
298         is installed.
299
300 2005-01-14  Bruno Haible  <bruno@clisp.org>
301
302         * Makefile.am (EXTRA_DIST): Add $(LIBADD_SOURCE).
303
304 2005-01-08  Bruno Haible  <bruno@clisp.org>
305
306         * libgrep.h: New file.
307         * kwset.h: From grep-2.5.1 with modifications.
308         * kwset.c: From grep-2.5.1 with modifications.
309         * dfa.h: From grep-2.5.1 with modifications.
310         * dfa.c: From grep-2.5.1 with modifications.
311         * m-common.h: New file.
312         * m-common.c: New file, with code from grep-2.5.1/src/search.c.
313         * m-fgrep.c: New file, with code from grep-2.5.1/src/search.c.
314         * m-regex.c: New file, with code from grep-2.5.1/src/search.c.
315         * hard-locale.h: New file, from gnulib.
316         * hard-locale.c: New file, from gnulib.
317         * memchr.c: New file, from gnulib.
318         * regex.h: New file, from gnulib.
319         * regex.c: New file, from gnulib.
320         * strdup.h: New file, from gnulib.
321         * strdup.c: New file, from gnulib.
322         * Makefile.am: New file.
323         * Makefile.msvc: New file.
324         * Makefile.vms: New file.
325