regex.h


Log

Author Commit Date CI Message
Jeff Bailey 92d64a23 2000-10-17T06:55:04 Remove warning that noone noticed anyway
Jeff Bailey 0ee31d9c 2000-09-19T15:47:02 Add warning to top of source files
Stefan Monnier 0806807c 2000-08-31T17:19:13 * 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.
Stefan Monnier 2f3b372d 2000-08-30T18:21:17 (struct re_pattern_buffer): Use size_t for used/allocated.
Stefan Monnier ef7d99e1 2000-08-28T00:37:22 * 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).
Dave Love 0944b4a5 2000-06-19T21:59:46 Test PROTOTYPES as well as __STDC__.
Stefan Monnier ecd70598 2000-04-02T23:56:45 * 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.
Stefan Monnier 24f91832 2000-03-19T23:21:42 (RE_TRANSLATE. RE_TRANSLATE_P): Moved to regex.c.
Stefan Monnier 0d2c408c 2000-03-08T23:24:54 Update the copyright. (RE_SHY_GROUPS): New value. (RE_UNMATCHED_RIGHT_PAREN_ORD): Renumber. (RE_SYNTAX_EMACS): Add RE_SHY_GROUPS.
Stefan Monnier cc66751b 2000-02-14T17:00:16 * 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.
Gerd Moellmann 5f3fd8f1 2000-01-27T11:40:40 Lost version containing non-greedy changes from Emacs.
Andreas Schwab 7596a6b5 1998-04-15T10:32:29 (RE_TRANSLATE_P): New macro.
Richard Stallman d5e67c44 1997-07-04T20:46:51 (RE_TRANSLATE): Define default assuming simple integers.
Richard Stallman 610a09ff 1997-06-15T19:02:27 (struct re_pattern_buffer): New member multibyte. (re_match_object): New variable.
Karl Heuer df2594c7 1996-01-29T22:25:51 Update FSF address in comment.
Richard Stallman c264f861 1995-10-19T00:50:14 (RE_TRANSLATE_TYPE): Define, if not already defined. (struct re_pattern_buffer): Use RE_TRANSLATE_TYPE.
Roland McGrath 2dd0bd2a 1995-05-17T20:47:26 [VMS]: Don't #include <stddef.h> if _POSIX_SOURCE or _POSIX_C_SOURCE is defined.
Richard Stallman e3bcf16a 1994-11-16T20:28:48 (RE_NO_POSIX_BACKTRACKING): New macro.
Paul Eggert f683a15f 1994-10-26T22:43:45 (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.
Karl Heuer 93113fa3 1994-10-18T03:47:42 (RE_EXACTN_VALUE): Deleted; Emacs doesn't need this kludge anymore.
Roland McGrath 61c3a3d7 1993-05-28T00:10:45 entered into RCS
Jim Blandy ba806906 1993-04-02T23:12:15 *** empty log message ***
David J. MacKenzie 5ea636e7 1993-01-14T20:38:21 *** empty log message ***
Jim Blandy e7562765 1992-12-24T06:48:09 *** empty log message ***
David J. MacKenzie c55dc5b1 1992-12-15T02:35:40 *** empty log message ***
Karl Berry cb106d54 1992-11-21T01:51:22 *** empty log message ***
Jim Blandy a6abfa23 1992-11-15T10:01:16 *** empty log message ***
Karl Berry 5c6e8d84 1992-11-04T20:39:56 *** empty log message ***
Karl Berry d146c864 1992-09-16T12:19:41 Initial revision