1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-02-20 23:20:36 -08:00
Commit graph

29 commits

Author SHA1 Message Date
Jeff Bailey
6a45ac9cbd Remove warning that noone noticed anyway 2000-10-17 06:55:04 +00:00
Jeff Bailey
1c024bdaaa Add warning to top of source files 2000-09-19 15:47:02 +00:00
Stefan Monnier
c0f9ea083e * regex.h (RE_NO_NEWLINE_ANCHOR): New syntax flag.
(struct re_pattern_buffer): Remove newline_anchor.
* regex.c: Keep namespace clean for GNU libc by renaming <fun>
to __<fun> and using `weak_alias (__<fun>, <fun>)'.
(re_max_failures, fail_stack): Use size_t rather than unsigned.
(regex_compile): For ^ and $, choose between buffer and line (beg|end)
depending on the new RE_NO_NEWLINE_ANCHOR syntax flag.
(print_compiled_pattern, re_search_2, mutually_exclusive_p)
(re_match_2_internal, re_compile_pattern, re_comp, regcomp):
Get rid of references to newline_anchor.
(regcomp): Allocate and precompute a fastmap.
2000-08-31 17:19:15 +00:00
Stefan Monnier
98222d270c (struct re_pattern_buffer): Use size_t for used/allocated. 2000-08-30 18:21:17 +00:00
Stefan Monnier
0b32bf0e34 * regex.c: Indent cpp directives and remove parens after `defined'.
(PTR_TO_OFFSET, POS_AS_IN_BUFFER): Move to a better place.
(ISDIGIT, ISCNTRL, ISXDIGIT) [!emacs]: Remove duplicate definition.
(regex_compile): Use RE_FRUGAL instead of RE_ALL_GREEDY.
(re_compile_pattern): Use size_t for length.
(init_syntax_once): Move to a better place.
* regex.h: Merge changes from GNU libc.  Indent cpp directives.
(RE_FRUGAL): Replaces RE_ALL_GREEDY (inverted meaning).
2000-08-28 00:37:50 +00:00
Dave Love
2a90cd71a8 Test PROTOTYPES as well as __STDC__. 2000-06-19 21:59:46 +00:00
Stefan Monnier
2d1675e45c * regex.c (PTR_TO_OFFSET) [!emacs]: Remove.
(RE_MULTIBYTE_P, RE_STRING_CHAR_AND_LENGTH): New macros.
(GET_CHAR_BEFORE_2): Moved from charset.h plus fixed minor bug when
we are between str1 and str2.
(MAX_MULTIBYTE_LENGTH, CHAR_STRING) [!emacs]: Provide trivial default.
(PATFETCH): Use `TRANSLATE'.
(PATFETCH_RAW): Fetch multibyte char if applicable.
(PATUNFETCH): Remove.
(regex_compile): Rely on PATFETCH to do most of the multibyte magic.
When writing a char, write it directly into the pattern buffer rather
than going needlessly through a temp char-array.
(re_match_2_internal): Similarly, rely on RE_STRING_CHAR to do the
multibyte magic and remove the useless `#ifdef emacs'.
(bcmp_translate): Don't compare as multibyte chars when in a unibyte
buffer.
* regex.h (struct re_pattern_buffer): Make field `multibyte'
conditional on `emacs'.
* charset.h (GET_CHAR_BEFORE_2): Moved to regex.c.
2000-04-02 23:56:46 +00:00
Stefan Monnier
fc4e96c8e8 (RE_TRANSLATE. RE_TRANSLATE_P): Moved to regex.c. 2000-03-19 23:21:42 +00:00
Stefan Monnier
dd52d9705c Update the copyright.
(RE_SHY_GROUPS): New value.
(RE_UNMATCHED_RIGHT_PAREN_ORD): Renumber.
(RE_SYNTAX_EMACS): Add RE_SHY_GROUPS.
2000-03-08 23:24:54 +00:00
Stefan Monnier
fb4a568d44 * regex.h (RE_SYNTAX_EMACS): Add RE_CHAR_CLASSES and RE_INTERVALS
to Emacs' syntax.  Also fix the comment about set/not-set meanings
since Emacs syntax is not the value 0 any more.
* search.c (compile_pattern_1): Remove RE_CHAR_CLASSES from the syntax
since it's now part of RE_SYNTAX_EMACS.
2000-02-14 17:00:16 +00:00
Gerd Moellmann
f95d599c51 Lost version containing non-greedy changes from Emacs. 2000-01-27 11:40:40 +00:00
Andreas Schwab
4da4775f0d (RE_TRANSLATE_P): New macro. 1998-04-15 10:32:29 +00:00
Richard M. Stallman
1d1142ea2e (RE_TRANSLATE): Define default assuming simple integers. 1997-07-04 20:46:51 +00:00
Richard M. Stallman
766ff6275b (struct re_pattern_buffer): New member multibyte.
(re_match_object): New variable.
1997-06-15 19:02:27 +00:00
Karl Heuer
ba4a8e51f9 Update FSF address in comment. 1996-01-29 22:30:55 +00:00
Richard M. Stallman
6fffb26e42 (RE_TRANSLATE_TYPE): Define, if not already defined.
(struct re_pattern_buffer): Use RE_TRANSLATE_TYPE.
1995-10-19 00:50:14 +00:00
Roland McGrath
12f975a929 [VMS]: Don't #include <stddef.h> if _POSIX_SOURCE or _POSIX_C_SOURCE is
defined.
1995-05-17 20:47:26 +00:00
Richard M. Stallman
5cc055623c (RE_NO_POSIX_BACKTRACKING): New macro. 1994-11-16 20:28:48 +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
81b5c4dd11 (RE_EXACTN_VALUE): Deleted; Emacs doesn't need this kludge anymore. 1994-10-18 03:47:42 +00:00
Roland McGrath
f36485b73c entered into RCS 1993-05-28 00:10:45 +00:00
Jim Blandy
8b20806d3c *** empty log message *** 1993-04-02 23:17:33 +00:00
David J. MacKenzie
65565c6881 *** empty log message *** 1993-01-14 20:38:21 +00:00
Jim Blandy
0783dc9abe *** empty log message *** 1992-12-24 06:49:45 +00:00
David J. MacKenzie
1a4ea60bd2 *** empty log message *** 1992-12-15 02:35:40 +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
26a7e2e7a5 *** empty log message *** 1992-11-04 20:39:56 +00:00
Karl Berry
b1fe2cfc2b Initial revision 1992-09-16 12:19:41 +00:00