1 2000-10-25 Stefan Monnier <monnier@cs.yale.edu>
3 * regex.c: More `unsigned char' -> `re_char' changes.
4 Also change several `int' into `re_wchar_t'.
5 (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
6 (PUSH_FAILURE_POINTER): Don't cast any more.
7 (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
8 We want GCC to complain, since this piece of code makes
9 re_match non-reentrant, which *should* be fixed.
10 (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
11 (EXTEND_BUFFER): Use RETALLOC.
12 (SET_LIST_BIT): Don't cast.
13 (re_wchar_t): New type.
14 (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
15 that those two functions will always properly return.
16 (IMMEDIATE_QUIT_CHECK): Cast to void.
17 (analyse_first): Use recursion rather than an explicit stack.
18 (re_compile_fastmap): Can't fail anymore.
19 (re_search_2): Don't check re_compile_fastmap for failure.
20 (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
21 Now also sets the new value (passed in a new argument).
22 (re_match_2_internal): Use it.
23 Also, use a new var `reg' of type size_t when looping through regs
24 rather than reuse the inappropriate `mcnt'.
26 2000-10-24 Andrew Innes <andrewi@gnu.org>
28 * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
30 (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
31 so that re_search functions only quit when callers expect them to.
33 2000-10-24 Kenichi Handa <handa@etl.go.jp>
35 * regex.c (regex_compile): Change the way of handling a range from
36 a char less than 256 to a char not less than 256.
38 2000-10-15 Stefan Monnier <monnier@cs.yale.edu>
40 * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.