aboutsummaryrefslogtreecommitdiffstats
path: root/src/regex.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* (re_search_2): Use 0, not -1, as the lower boundRichard M. Stallman1995-10-011-3/+4
| | | | for the match position when we adjust RANGE.
* (re_search_2): If pattern starts with \=, optimize search.Richard M. Stallman1995-09-011-8/+12
|
* (PUSH_FAILURE_POINT, POP_FAILURE_POINT): Don't push or popRichard M. Stallman1995-08-221-34/+38
| | | | | register values if POSIX backtracking is turned off. (NUM_FAILURE_ITEMS): Value is 0 if no POSIX backtracking.
* Fix conditional.Karl Heuer1995-07-171-1/+1
|
* Don't use relocatable allocator.Richard M. Stallman1995-07-071-3/+4
|
* Use `defined' to test HAVE_STRING_H and STDC_HEADERS.Richard M. Stallman1995-06-201-1/+1
|
* Undefined INHIBIT_STRING_HEADER when we have noKarl Heuer1995-06-031-2/+13
| | | | other way of getting a bcopy and a bzero.
* (at_endline_loc_p): Use 0, not NULL, in ?: for next_next.Karl Heuer1995-05-291-1/+1
|
* (NULL): Use explicit cast.Karl Heuer1995-05-261-1/+1
|
* [REGEX_FREE]: Use ((void)0) instead of just (0).Jim Meyering1995-05-211-1/+1
|
* Add `#ifdef _LIBC' in a few places, so this can be compiled in libc.Roland McGrath1995-05-201-0/+5389
|
* Updated from ../gpl2lgpl.sed /home/gd/gnu/lib/regex.cRoland McGrath1995-05-171-5391/+1
|
* (re_compile_fastmap): Undo previous change.Karl Heuer1995-05-171-4/+8
| | | | | | (RESET_FAIL_STACK): New macro. (re_compile_fastmap): Use RESET_FAIL_STACK, not REGEX_FREE_STACK directly.
* (re_compile_fastmap): Don't free stack if it's empty.Richard M. Stallman1995-05-151-5/+9
| | | | | | | (re_match_failures): Reduce the larger value to 200000, and use whenever if MATCH_MAY_ALLOCATE. (MATCH_MAY_ALLOCATE): Don't consider REL_ALLOC when deciding whether to undef this.
* [! emacs]: #undef REL_ALLOC.Richard M. Stallman1995-05-061-0/+5
|
* (union fail_stack_elt): New union.Richard M. Stallman1995-05-021-26/+29
| | | | | | | | | | | | | (fail_stack_elt_t): Use that union. (PUSH_PATTERN_OP, PUSH_FAILURE_POINTER, PUSH_FAILURE_INT) (POP_FAILURE_POINTER, POP_FAILURE_INT): Corresponding changes. (re_compile_fastmap): Corresponding changes. (PUSH_FAILURE_ELT): New macro. (FAIL_STACK_TOP): Macro deleted. (WIDE_INT): Macro deleted. (PUSH_FAILURE_POINT): Use PUSH_FAILURE_ELT. (POP_FAILURE_ELT): New macro. (POP_FAILURE_POINT): Use POP_FAILURE_ELT.
* (PUSH_FAILURE_INT, POP_FAILURE_INT): Use WIDE_INT.Richard M. Stallman1995-04-291-53/+138
| | | | | | | | | | | | | | | | (WIDE_INT): Defined (two alternate definitions). (C_ALLOCA): Undef it, if __GNUC__. (REGEX_ALLOCATE_STACK, REGEX_REALLOCATE_STACK) (REGEX_FREE_STACK): New macros. (INIT_FAIL_STACK, DOUBLE_FAIL_STACK, FREE_VARIABLES): Use them. (re_max_failures) [REL_ALLOC]: Alternative larger initial value. (re_compile_fastmap): Use REGEX_FREE_STACK. (re_match_2_internal): Always call FREE_VARIABLES before returning. Always init regstart, old_regstart, etc. whenever MATCH_MAY_ALLOCATE is defined. (FREE_VARIABLES) [REL_ALLOC]: Define non-trivially.
* (re_match_2_internal): Eliminate cast of ptr to int.Richard M. Stallman1995-04-091-24/+33
| | | | | | | | (PUSH_FAILURE_ITEM, POP_FAILURE_ITEM): Macros deleted. (PUSH_FAILURE_INT, POP_FAILURE_INT): New macros. (PUSH_FAILURE_POINTER, POP_FAILURE_POINTER): New macros. (re_match_2_internal): Rename label `succeed' to `succeed_label'.
* (SET_REGS_MATCHED): Enclose if-stmt in `do {...} while(0)'Jim Meyering1995-02-281-14/+16
| | | | | instead of using trailing `else' -- otherwise, gcc -Wall complains of `empty body in an else-statement'.
* [!emacs] (SWITCH_ENUM_CAST): New macro, from emacs/lisp.hKarl Heuer1995-01-181-10/+8
| | | | | (re_compile_fastmap, re_match_2_internal): Use that macro instead of testing SWITCH_ENUM_BUG.
* (regex_compile): Use putchar, not printchar.Richard M. Stallman1994-12-301-11/+9
|
* (SET_REGS_MATCHED): Do nothing if set_regs_matched_done is 1.Richard M. Stallman1994-12-241-13/+28
| | | | | | | | | Set set_regs_matched_done to 1. (re_match_2_internal): New local var set_regs_matched_done. Set it to 0 when appropriate. (POP_FAILURE_POINT): Set set_regs_matched_done to 0. (re_match_2_internal, case duplicate): Call SET_REGS_MATCHED.
* [REG_UNSET_VALUE]: Define to the address of a static variable rather than toJim Meyering1994-12-111-1/+2
| | | | ((char *) -1). The latter got a warning on IRIX64.
* (gettext): Make sure this is always defined, even #if emacs.Karl Heuer1994-12-011-11/+8
| | | | (NULL): No need to #undef this anymore; Emacs uses NILP now.
* (re_compile_pattern, re_comp, regerror): Add gettext wrapper.Paul Eggert1994-11-291-16/+26
| | | | | | | | | | (re_error_msgid): Renamed from `re_error_msg', for consistency with other source files that declare arrays of message ids. Identifiers ending in `msgid' are special to to some prototype message-extracting utilities. Make "Success" be the 0th entry, so it can be extracted too. (re_comp): Replace "Memory exhausted" with re_error_msgid[REG_ESPACE], to aid message consistency.
* (re_compile_fastmap): Really, really treat `succeed' like end.Richard M. Stallman1994-11-191-0/+2
|
* (re_compile_fastmap): Really treat `succeed' like end.Richard M. Stallman1994-11-191-8/+14
|
* (re_compile_fastmap): Treat `succeed' like end of pattern.Karl Heuer1994-11-181-1/+1
|
* (re_opcode_t): New opcode `succeed'Richard M. Stallman1994-11-161-1/+15
| | | | | | (re_match_2_internal): Handle `succeed'. (regex_compile): Handle RE_NO_BACKTRACKING. (re_syntax_options): Delete initializer.
* (re_comp, re_exec): Define this obsolete 4.2bsdPaul Eggert1994-10-261-3/+3
| | | | | interface only if the new feature test macro _REGEX_RE_COMP is defined. This avoids a clash with Cray YMP include files.
* (exactn): Initializer deleted.Karl Heuer1994-10-181-7/+3
|
* Comment change.Richard M. Stallman1994-10-011-0/+1
|
* (compile_range): When casting to const unsigned char *, put const first.Richard M. Stallman1994-10-011-2/+2
|
* remove CONFIG_BROKETSDavid J. MacKenzie1994-09-261-7/+0
|
* (regex_compile): Split an if to avoid compiler bug.Richard M. Stallman1994-08-171-7/+17
| | | | (re_match_2_internal): Use separate if to compute bestmatch_p.
* (compile_range): Avoid warning in casts for range_start/end.Richard M. Stallman1994-07-311-2/+2
|
* (re_match_2_internal): Add casts to shut up some compilers.Richard M. Stallman1994-07-151-10/+7
| | | | (FREE_STACK_RETURN): Nest the free inside the return.
* Be less eager to define MATCH_MAY_ALLOCATE.Richard M. Stallman1994-07-051-4/+5
|
* (re_compile_fastmap): Either set fastmap['\n'] to 1 or don't change it.Richard M. Stallman1994-07-021-19/+28
| | | | | (re_match_2_internal): If the last match is real best match, don't restore second best one.
* entered into RCSRichard M. Stallman1994-07-011-22/+32
|
* *** empty log message ***Jim Meyering1994-05-061-0/+2
|
* *** empty log message ***Richard M. Stallman1994-05-041-0/+4
|
* *** empty log message ***Richard M. Stallman1994-05-041-1/+1
|
* *** empty log message ***Karl Heuer1994-04-271-0/+2
|
* *** empty log message ***Richard M. Stallman1994-04-231-7/+20
|
* *** empty log message ***Karl Heuer1994-04-211-4/+2
|
* *** empty log message ***Karl Heuer1994-04-211-5/+15
|
* *** empty log message ***Richard M. Stallman1994-04-211-4/+0
|
* *** empty log message ***Richard M. Stallman1994-03-261-2/+1
|
* *** empty log message ***Karl Heuer1994-03-041-1/+1
|