1 2010-06-04 Bruno Haible <bruno@clisp.org>
3 * gettext-0.18.1 released.
5 2010-05-24 Bruno Haible <bruno@clisp.org>
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
18 * gnulib-lib/Makefile.am: New file.
20 2010-05-24 Bruno Haible <bruno@clisp.org>
23 * m-regex.c (EGexecute): Write logic in a similar way as
26 2010-05-24 Bruno Haible <bruno@clisp.org>
28 Fix bug: Avoid out-of-bounds access.
29 * m-regex.c (EGexecute): Fix test before second call to
32 2010-05-24 Bruno Haible <bruno@clisp.org>
35 * m-regex.c (compile, EGexecute): Remove useless parentheses.
37 2010-05-24 Bruno Haible <bruno@clisp.org>
40 * m-fgrep.c (Fexecute): New local variable buflim.
42 2010-05-24 Bruno Haible <bruno@clisp.org>
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.
49 2010-05-23 Bruno Haible <bruno@clisp.org>
51 * kwset.c: Use GNU coding style.
52 (kwsalloc): Write NULL, not 0. Remove useless cast.
54 2010-05-23 Bruno Haible <bruno@clisp.org>
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>.
61 2010-05-24 Bruno Haible <bruno@clisp.org>
63 * m-fgrep.c: Untabify.
64 * m-regex.c: Likewise.
68 2010-05-23 Bruno Haible <bruno@clisp.org>
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
74 * m-fgrep.c (Fexecute): Don't assume that the buffer contains a
77 2010-05-23 Bruno Haible <bruno@clisp.org>
79 Do regex matching purely with regex, not regex + dfa + kwset.
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
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,
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.
103 2010-05-09 Bruno Haible <bruno@clisp.org>
105 * gettext-0.18 released.
107 2009-12-12 Bruno Haible <bruno@clisp.org>
109 * libgrep.h: Untabify.
110 * hard-locale.c: Untabify.
111 * memchr.c: Untabify.
113 2009-08-15 Bruno Haible <bruno@clisp.org>
115 Stop using gnulib module 'strdup'.
116 * strdup.c: Remove file.
117 * Makefile.am (LIBADD_SOURCE): Remove strdup.c.
119 2008-04-28 Eric Blake <ebb9@byu.net>
121 * memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
123 2008-04-27 Bruno Haible <bruno@clisp.org>
125 * memchr.c (__memchr): Change type of 'i'.
127 2008-04-26 Eric Blake <ebb9@byu.net>
128 Bruno Haible <bruno@clisp.org>
130 * memchr.c: Include intprops.h.
131 (__memchr): Optimize parallel detection of matching bytes. Rename local
132 variables. Add explanatory comments.
134 2008-04-26 Bruno Haible <bruno@clisp.org>
136 Fix module 'memchr', broken since 2000-10-28.
137 * memchr.c: Outside glibc, define memchr, not __memchr.
139 2007-11-07 Bruno Haible <bruno@clisp.org>
141 * gettext-0.17 released.
143 2007-01-26 Bruno Haible <bruno@clisp.org>
145 * Makefile.am (LIBADD_SOURCE): Remove strdup.h.
147 2007-01-26 Paul Eggert <eggert@cs.ucla.edu>
149 * strdup.h: Remove file.
150 * strdup.c: Don't include no-longer-existent include files. Rely on
152 * hard-locale.c: Likewise.
154 2006-11-03 Bruno Haible <bruno@clisp.org>
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
162 2006-11-01 Bruno Haible <bruno@clisp.org>
164 * dfa.c (delete_pos): Renamed from remove.
165 (epsclosure): Update.
166 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
168 2006-10-29 Bruno Haible <bruno@clisp.org>
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.
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
185 * m-regex.c (struct patterns): Move out of the scope of struct
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.
193 2006-11-27 Bruno Haible <bruno@clisp.org>
195 * gettext-0.16.1 released.
197 2006-10-26 Bruno Haible <bruno@clisp.org>
199 * gettext-0.16 released.
201 2006-10-10 Bruno Haible <bruno@clisp.org>
203 Make it possible to #define stpcpy, strdup to aliases.
204 * strdup.c (strdup) [!_LIBC]: Don't undefine.
206 2006-09-13 Paul Eggert <eggert@cs.ucla.edu>
208 * memchr.c: Include <config.h> unconditionally.
209 * strdup.c: Likewise.
211 2006-07-30 Bruno Haible <bruno@clisp.org>
213 * Makefile.am (AM_CPPFLAGS): Replace ../lib with ../gnulib-lib.
215 2006-07-25 Bruno Haible <bruno@clisp.org>
217 * Makefile.msvc: Remove file.
218 * Makefile.am (EXTRA_DIST): Remove Makefile.msvc.
220 2006-07-25 Bruno Haible <bruno@clisp.org>
222 * Makefile.vms: Remove file.
223 * Makefile.am (EXTRA_DIST): Remove Makefile.vms.
225 2006-07-21 Bruno Haible <bruno@clisp.org>
227 * gettext-0.15 released.
229 2006-05-16 Bruno Haible <bruno@clisp.org>
231 * regex.c (mempcpy) [_LIBC]: New macro.
232 (regerror): Use it instead of __mempcpy.
234 2005-10-06 Bruno Haible <bruno@clisp.org>
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.
242 2005-04-18 Bruno Haible <bruno@clisp.org>
244 * dfa.c (update_mb_len_index): Change argument type to 'const char *'.
245 Avoids gcc-4.0 warnings.
247 2006-06-21 Bruno Haible <bruno@clisp.org>
249 * gettext-0.14.6 released.
251 2005-05-23 Bruno Haible <bruno@clisp.org>
253 * gettext-0.14.5 released.
255 2005-04-11 Bruno Haible <bruno@clisp.org>
257 * gettext-0.14.4 released.
259 2005-03-14 Bruno Haible <bruno@clisp.org>
261 * gettext-0.14.3 released.
263 2005-02-24 Bruno Haible <bruno@clisp.org>
265 * gettext-0.14.2 released.
267 2005-02-12 Bruno Haible <bruno@clisp.org>
269 * Makefile.msvc (INCLUDES): Add -I., needed for <regex.h>, and
270 -I..\intl, needed for <libintl.h>.
272 2005-02-12 Bruno Haible <bruno@clisp.org>
274 * libgrep.h: Add extern "C" for C++.
276 2003-07-08 David Kaelbling <drk@sgi.com>
278 * dfa.c (lex): Remove non-constant initializers.
280 2005-02-08 Bruno Haible <bruno@clisp.org>
282 * kwset.h (kwsincr, kwsprep): Change return type to 'const char *'.
283 * kwset.c (kwsincr, kwsprep): Likewise.
285 2005-02-03 Bruno Haible <bruno@clisp.org>
287 * dfa.c (dfaexec): Avoid continuing the loop past the end of the
290 2005-01-27 Bruno Haible <bruno@clisp.org>
292 * dfa.c (parse_bracket_exp_mb): Don't confuse wctype_t with wchar_t.
294 2005-01-27 Bruno Haible <bruno@clisp.org>
296 * Makefile.am (libgrep_a_DEPENDENCIES): New variable.
297 (AM_CPPFLAGS): Add -I../intl, so that libintl.h is found before gettext
300 2005-01-14 Bruno Haible <bruno@clisp.org>
302 * Makefile.am (EXTRA_DIST): Add $(LIBADD_SOURCE).
304 2005-01-08 Bruno Haible <bruno@clisp.org>
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.