1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-02 08:22:22 +00:00
Commit Graph

184 Commits

Author SHA1 Message Date
Richard M. Stallman
4fcecab107 (POP_FAILURE_POINT): Use .word.integer. 1995-10-29 19:36:39 +00:00
Richard M. Stallman
f3c4387ff0 Don't declare alloca. 1995-10-22 17:47:13 +00:00
Richard M. Stallman
6676cb1c6c (TRANSLATE, PATFETCH): Cast elt of `translate'.
Don't define if already defined.
(regex_compile): Use RE_TRANSLATE_TYPE for `translate'.
(compile_range, re_search_2, re_match_2_internal, bcmp_translate)
(regcomp): Use RE_TRANSLATE_TYPE for `translate'.
1995-10-19 00:50:51 +00:00
Richard M. Stallman
34597fa951 (re_search_2): Use 0, not -1, as the lower bound
for the match position when we adjust RANGE.
1995-10-01 20:17:02 +00:00
Richard M. Stallman
ae4788a82b (re_search_2): If pattern starts with \=, optimize search. 1995-09-01 18:43:30 +00:00
Richard M. Stallman
faec11dbd4 (PUSH_FAILURE_POINT, POP_FAILURE_POINT): Don't push or pop
register values if POSIX backtracking is turned off.
(NUM_FAILURE_ITEMS): Value is 0 if no POSIX backtracking.
1995-08-22 19:44:26 +00:00
Karl Heuer
33487cc80b Fix conditional. 1995-07-17 23:24:57 +00:00
Richard M. Stallman
4297555ed2 Don't use relocatable allocator. 1995-07-07 13:20:16 +00:00
Richard M. Stallman
7f998252d6 Use `defined' to test HAVE_STRING_H and STDC_HEADERS. 1995-06-20 03:11:14 +00:00
Karl Heuer
9e4ecb2619 Undefined INHIBIT_STRING_HEADER when we have no
other way of getting a bcopy and a bzero.
1995-06-03 17:32:10 +00:00
Karl Heuer
5bb5297112 (at_endline_loc_p): Use 0, not NULL, in ?: for next_next. 1995-05-29 06:15:30 +00:00
Karl Heuer
075f06eca3 (NULL): Use explicit cast. 1995-05-26 22:35:10 +00:00
Jim Meyering
c2e1680ae1 [REGEX_FREE]: Use ((void)0) instead of just (0). 1995-05-21 06:19:05 +00:00
Roland McGrath
fa9a63c5c2 Add `#ifdef _LIBC' in a few places, so this can be compiled in libc. 1995-05-20 16:40:11 +00:00
Roland McGrath
2860be63dd Updated from ../gpl2lgpl.sed /home/gd/gnu/lib/regex.c 1995-05-17 20:54:49 +00:00
Karl Heuer
809a2f57c2 (re_compile_fastmap): Undo previous change.
(RESET_FAIL_STACK): New macro.
(re_compile_fastmap): Use RESET_FAIL_STACK, not REGEX_FREE_STACK
directly.
1995-05-17 20:29:52 +00:00
Richard M. Stallman
4e9ffb56ab (re_compile_fastmap): Don't free stack if it's empty.
(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.
1995-05-15 23:30:28 +00:00
Richard M. Stallman
01fadb4d84 [! emacs]: #undef REL_ALLOC. 1995-05-06 20:14:52 +00:00
Richard M. Stallman
d0b490f571 (union fail_stack_elt): New union.
(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.
1995-05-02 16:27:24 +00:00
Richard M. Stallman
c823611d96 (PUSH_FAILURE_INT, POP_FAILURE_INT): Use WIDE_INT.
(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.
1995-04-29 20:21:41 +00:00
Richard M. Stallman
85e36d2b62 (re_match_2_internal): Eliminate cast of ptr to int.
(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'.
1995-04-09 19:14:40 +00:00
Jim Meyering
6c3fe73934 (SET_REGS_MATCHED): Enclose if-stmt in `do {...} while(0)'
instead of using trailing `else' -- otherwise, gcc -Wall complains
of `empty body in an else-statement'.
1995-02-28 13:46:40 +00:00
Karl Heuer
c1d4ff308d [!emacs] (SWITCH_ENUM_CAST): New macro, from emacs/lisp.h
(re_compile_fastmap, re_match_2_internal): Use that macro instead of testing
SWITCH_ENUM_BUG.
1995-01-18 20:47:36 +00:00
Richard M. Stallman
03414ea2b6 (regex_compile): Use putchar, not printchar. 1994-12-30 23:28:45 +00:00
Richard M. Stallman
eff52a4c6f (SET_REGS_MATCHED): Do nothing if set_regs_matched_done is 1.
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.
1994-12-24 23:40:43 +00:00
Jim Meyering
b744df55d2 [REG_UNSET_VALUE]: Define to the address of a static variable rather than to
((char *) -1).  The latter got a warning on IRIX64.
1994-12-11 23:16:11 +00:00
Karl Heuer
9a2c20d57f (gettext): Make sure this is always defined, even #if emacs.
(NULL): No need to #undef this anymore; Emacs uses NILP now.
1994-12-01 22:59:35 +00:00
Paul Eggert
facd2759c5 (re_compile_pattern, re_comp, regerror): Add gettext wrapper.
(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.
1994-11-29 16:25:39 +00:00
Richard M. Stallman
ebdb2d6d9e (re_compile_fastmap): Really, really treat `succeed' like end. 1994-11-19 13:57:27 +00:00
Richard M. Stallman
5f5a1fec3c (re_compile_fastmap): Really treat `succeed' like end. 1994-11-19 10:37:38 +00:00
Karl Heuer
6d6432476c (re_compile_fastmap): Treat `succeed' like end of pattern. 1994-11-18 01:04:41 +00:00
Richard M. Stallman
91fc6e4448 (re_opcode_t): New opcode `succeed'
(re_match_2_internal): Handle `succeed'.
(regex_compile): Handle RE_NO_BACKTRACKING.
(re_syntax_options): Delete initializer.
1994-11-16 20:29:39 +00:00
Paul Eggert
273c0c509d (re_comp, re_exec): Define this obsolete 4.2bsd
interface only if the new feature test macro _REGEX_RE_COMP is defined.
This avoids a clash with Cray YMP include files.
1994-10-26 22:43:45 +00:00
Karl Heuer
72970473b2 (exactn): Initializer deleted. 1994-10-18 03:48:00 +00:00
Richard M. Stallman
a8a3c4213f Comment change. 1994-10-01 09:07:05 +00:00
Richard M. Stallman
1a0201170f (compile_range): When casting to const unsigned char *, put const first. 1994-10-01 09:06:07 +00:00
David J. MacKenzie
0981d1a45e remove CONFIG_BROKETS 1994-09-26 21:59:04 +00:00
Richard M. Stallman
514b8dcfdb (regex_compile): Split an if to avoid compiler bug.
(re_match_2_internal): Use separate if to compute bestmatch_p.
1994-08-17 23:13:50 +00:00
Richard M. Stallman
f1db542733 (compile_range): Avoid warning in casts for range_start/end. 1994-07-31 20:59:32 +00:00
Richard M. Stallman
5330e99c71 (re_match_2_internal): Add casts to shut up some compilers.
(FREE_STACK_RETURN): Nest the free inside the return.
1994-07-15 07:48:35 +00:00
Richard M. Stallman
d0a11f95f9 Be less eager to define MATCH_MAY_ALLOCATE. 1994-07-05 07:25:05 +00:00
Richard M. Stallman
73e84c9622 (re_compile_fastmap): Either set fastmap['\n'] to 1 or don't change it.
(re_match_2_internal): If the last match is real
best match, don't restore second best one.
1994-07-02 00:10:58 +00:00
Richard M. Stallman
69c38b460f entered into RCS 1994-07-01 06:19:16 +00:00
Jim Meyering
7babf5f60d *** empty log message *** 1994-05-06 15:23:06 +00:00
Richard M. Stallman
f46831b072 *** empty log message *** 1994-05-04 21:21:25 +00:00
Richard M. Stallman
6cd14acb36 *** empty log message *** 1994-05-04 01:58:05 +00:00
Karl Heuer
3fa89e8c0f *** empty log message *** 1994-04-27 20:02:46 +00:00
Richard M. Stallman
cbbe9053a6 *** empty log message *** 1994-04-23 04:07:29 +00:00
Karl Heuer
69fdec9e4d *** empty log message *** 1994-04-21 19:45:27 +00:00
Karl Heuer
501b568d67 *** empty log message *** 1994-04-21 19:26:10 +00:00
Richard M. Stallman
379728da93 *** empty log message *** 1994-04-21 03:24:35 +00:00
Richard M. Stallman
5b5bb5e486 *** empty log message *** 1994-03-26 05:37:00 +00:00
Karl Heuer
972a693aa5 *** empty log message *** 1994-03-04 22:26:03 +00:00
Karl Heuer
f765858ec5 *** empty log message *** 1994-02-25 01:30:59 +00:00
Karl Heuer
165c67142a *** empty log message *** 1994-02-23 23:04:30 +00:00
Jim Meyering
b391d2bfd0 *** empty log message *** 1994-02-08 04:01:10 +00:00
Karl Heuer
63268f7602 *** empty log message *** 1994-02-08 03:47:10 +00:00
Karl Heuer
6b528f2f18 *** empty log message *** 1993-11-20 04:05:45 +00:00
Richard M. Stallman
368481a538 *** empty log message *** 1993-11-15 04:04:59 +00:00
Richard M. Stallman
794ce2c144 *** empty log message *** 1993-11-06 08:05:07 +00:00
Jim Meyering
2f4e547fcb *** empty log message *** 1993-10-12 05:02:22 +00:00
Jim Blandy
74da500751 *** empty log message *** 1993-06-16 21:28:28 +00:00
Jim Blandy
85be31013c *** empty log message *** 1993-06-10 12:50:56 +00:00
Richard M. Stallman
4f9d3ad880 *** empty log message *** 1993-06-07 08:06:10 +00:00
Jim Blandy
a822d92fb3 *** empty log message *** 1993-05-22 08:30:16 +00:00
Jim Blandy
e18814622b *** empty log message *** 1993-05-22 08:16:25 +00:00
Jim Blandy
e959badab4 *** empty log message *** 1993-05-22 07:25:53 +00:00
Jim Blandy
8b4cc189e3 *** empty log message *** 1993-05-13 01:47:22 +00:00
Jim Blandy
b0bef8c52f *** empty log message *** 1993-04-30 16:42:24 +00:00
Jim Blandy
a1dd004b3d *** empty log message *** 1993-04-06 02:42:52 +00:00
Jim Blandy
8b20806d3c *** empty log message *** 1993-04-02 23:17:33 +00:00
Jim Blandy
5745b08698 *** empty log message *** 1993-04-02 22:53:56 +00:00
Jim Blandy
11a364d9f2 *** empty log message *** 1993-03-09 17:03:08 +00:00
Jim Blandy
8558648404 *** empty log message *** 1993-01-07 01:47:11 +00:00
Jim Blandy
4af46de60c *** empty log message *** 1992-12-14 02:28:29 +00:00
Jim Blandy
71715da973 *** empty log message *** 1992-12-12 14:44:09 +00:00
Jim Meyering
c6b4078874 *** empty log message *** 1992-12-12 02:55:16 +00:00
Jim Blandy
168e32e6e0 *** empty log message *** 1992-12-08 00:39:49 +00:00
David J. MacKenzie
a8cfc9f7e0 *** empty log message *** 1992-12-01 18:28:07 +00:00
David J. MacKenzie
d9088577ea *** empty log message *** 1992-11-26 04:42:40 +00:00
David J. MacKenzie
18ec5b0525 *** empty log message *** 1992-11-24 14:17:32 +00:00
Karl Berry
9114e2792f *** empty log message *** 1992-11-21 01:51:33 +00:00
Jim Blandy
d074788d47 *** empty log message *** 1992-11-15 10:30:58 +00:00
Karl Berry
bc78d34823 Initial revision 1992-09-16 14:52:41 +00:00