summaryrefslogtreecommitdiff
path: root/ChangeLog
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2006-04-11 00:52:16 +0000
committerPaul Eggert <eggert@cs.ucla.edu>2006-04-11 00:52:16 +0000
commit9066275509f32818e75d8109aafd43c57847c05c (patch)
tree597059d85d2f54b8f6ea11499d8ee6c108e5b6e8 /ChangeLog
parent1f1ff10b0c18957931888a690dc5f2597be8eecf (diff)
downloadcoreutils-9066275509f32818e75d8109aafd43c57847c05c.tar.xz
Adjust to new regex.h API (with new fastmap type), and clean
up the regex storage allocation a bit.
Diffstat (limited to 'ChangeLog')
-rw-r--r--ChangeLog33
1 files changed, 32 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 2dbb0cca3..0e42763bc 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,7 +1,38 @@
-2006-03-30 Jim Meyering <jim@meyering.net>
+2006-04-10 Paul Eggert <eggert@cs.ucla.edu>
* Version 6.0-cvs.
+ Adjust to new regex.h API (with new fastmap type), and clean
+ up the regex storage allocation a bit.
+
+ * src/csplit.c (struct control): Put re_compiled member at the
+ end, since it's large. Change regexpr member from char * to bool;
+ all uses changed. Add new member fastmap.
+ (extract_regexp): regexp arg is now char const *, not char *.
+ Don't bother duplicating the regular expression; it's not needed.
+ Set fastmap from new fastmap member. Don't bother allocating
+ a buffer, as the regexp code does a better job than we do.
+ * src/expr.c (docolon): Allocate and use a fastmap.
+ Don't bother allocating a buffer.
+ * src/nl.c (body_fastmap, header_fastmap, footer_fastmap):
+ New vars.
+ (build_type_arg): New fastmap arg. All uses changed.
+ Don't bother allocating a buffer, but set a fastmap.
+ * src/ptx.c (context_regex_string, word_regex_string): Remove.
+ (context_regex, word_regex): New vars, replacing the above.
+ All uses changed.
+ (struct regex_data): New type.
+ (compile_regex): Renamed from alloc_and_compile_regex, since
+ we no longer allocate storage. Arg is now a struct regex_data *,
+ not a const char *. All uses changed. Don't allocate the fastmap;
+ instead, take it from the caller. Don't convert size_t to int,
+ to avoid arithmetic overflow problems. Don't bother freeing
+ storage afterwards; it's not worth the aggravation.
+ * src/tac.c (compiled_separator_fastmap): New ver.
+ (main): Use it. Don't bother allocating a buffer.
+
+2006-03-30 Jim Meyering <jim@meyering.net>
+
* src/dd.c (iwrite): Remove assignment without effect.
Reported by Felix Rauch Valenti.