(context_regex_string, word_regex_string): Remove.
authorPaul Eggert <eggert@cs.ucla.edu>
Tue, 11 Apr 2006 00:51:42 +0000 (00:51 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Tue, 11 Apr 2006 00:51:42 +0000 (00:51 +0000)
commit8745735aaf830f8339a552a79bc557c7592a9c44
tree977d31ec3f25598561b4d6a6210ee9c9dc99a814
parentfad52643e0f6b3ebdae1c7763973bc4ffc7f1368
(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/ptx.c