1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-28 00:01:33 -08:00
Commit graph

41 commits

Author SHA1 Message Date
Glenn Morris
429ab54e01 Update copyright for years from Emacs 21 to present (mainly adding
2001).
2007-01-14 03:38:22 +00:00
Stefan Monnier
1351dd3b9a Remove file local variables.
(struct re_pattern_buffer): New field `used_syntax'.
2006-10-03 13:18:24 +00:00
Thien-Thi Nguyen
aaef169dc6 Update years in copyright notice; nfc. 2006-02-06 15:23:23 +00:00
Stefan Monnier
4e2f601fbc (re_char): Don't expose it in the interface.
(re_set_whitespace_regexp): Adjust the arg's type to not use it.
2005-10-04 04:32:50 +00:00
Dan Nicolaescu
fa8459a34e * image.c (slurp_file, xbm_read_bitmap_data): Cast to the correct
type.
* xterm.c (handle_one_xevent, handle_one_xevent): Likewise.

* unexelf.c (fatal): Fix prototype.

* term.c (fatal): Implement using varargs.

* regex.c (re_char): Move typedef ...
* regex.h (re_char): ... here.
(re_iswctype, re_wctype, re_set_whitespace_regexp): New
prototypes.

* emacs.c (malloc_set_state): Fix return type.
(endif): Fix type.

* lisp.h (fatal): Add argument types.

* dispextern.h (fatal): Delete prototype.

* systime.h: (make_time): Prototype moved from ...
* editfns.c (make_time): ... here.

* editfns.c: Move systime.h include after lisp.h.
* dired.c:
* xsmfns.c:
* process.c: Likewise.

* alloc.c (old_malloc_hook, old_realloc_hook, old_realloc_hook):
Add parameter types.
(__malloc_hook, __realloc_hook, __free_hook): Fix prototypes.
(emacs_blocked_free): Change definition to match __free_hook.
(emacs_blocked_malloc): Change definition to match __malloc_hook.
(emacs_blocked_realloc): Change definition to match
__realloc_hook.
2005-09-30 22:38:16 +00:00
Thien-Thi Nguyen
0b5538bd85 Update years in copyright notice; nfc. 2005-08-07 12:33:19 +00:00
Lute Kamstra
4fc5845fe8 Update FSF's address. 2005-07-04 16:49:24 +00:00
Kenichi Handa
be13f5e59d (enum reg_errcode_t): New value REG_ERANGEX. 2004-10-24 03:58:24 +00:00
Richard M. Stallman
c13ecd8fca (CHAR_CLASS_MAX_LENGTH, re_wctype_t, re_wchar_t)
(re_wctype, re_iswctype, re_wctype_to_bit):
Non-function definitions moved here from regex.c.
2004-06-13 22:34:19 +00:00
Miles Bader
ab5796a9f9 Add arch taglines 2003-09-01 15:45:59 +00:00
Francesco Potortì
b90e26e123 Comment and whitespace changes regarding # define __restrict_arr 2002-09-30 08:12:11 +00:00
Richard M. Stallman
27847466a3 (__restrict_arr): Don't define if already defined. 2002-09-26 22:04:14 +00:00
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