|
f7c6345a
|
2000-03-25T18:33:17
|
|
.
|
|
536e0a0d
|
2000-03-25T18:26:47
|
|
back out last change
|
|
433cd145
|
2000-03-24T09:07:18
|
|
*** empty log message ***
|
|
e562e7a2
|
2000-03-24T09:07:12
|
|
(jm_MACROS): Invoke `AC_CONFIG_AUX_DIR(.)' to work
around bug that made cvs-automake complain it couldn't find lib/depcomp.
|
|
79ca818f
|
2000-03-24T08:50:13
|
|
.
|
|
1f091092
|
2000-03-24T06:40:29
|
|
.
|
|
89dc9eaf
|
2000-03-24T06:40:23
|
|
Output a line containing "Packages using this file".
|
|
cbc3b7cd
|
2000-03-24T06:39:01
|
|
*** empty log message ***
|
|
abde3836
|
2000-03-24T05:54:46
|
|
(EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
(charset_alias): Define.
(install-exec-local): Factor out common code.
(uninstall-local): Split lines longer than 80.
(ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
(SUFFIXES): Define.
(.sed.in.sed): New rule. Don't redirect directly to $@.
(CLEANFILES): Add ref-add.sed and ref-del.sed.
|
|
07690e78
|
2000-03-24T05:46:01
|
|
(install-exec-local, uninstall-local, ref-add.sed, ref-del.sed): New rules.
From Bruno.
|
|
4918e100
|
2000-03-23T04:36:14
|
|
(enum syntaxcode): Provide default for non-Emacs.
(re_compile_fastmap, re_match_2_internal): Undo Dave's previous fix.
|
|
274e8afa
|
2000-03-22T21:46:50
|
|
*** empty log message ***
|
|
017e46a8
|
2000-03-22T14:25:38
|
|
(re_compile_fastmap, re_match_2_internal): Fix cast to re_opcode_t.
|
|
27d8e5f0
|
2000-03-22T04:17:32
|
|
(CHAR_CHARSET, CHARSET_LEADING_CODE_BASE): Add default
definitions for non-Emacs compilation.
(enum re_opcode_t): Remove (not)wordchar and move (not)syntaxspec
outside of `#ifdef emacs'.
(print_partial_compiled_pattern): Update.
(regex_compile): Use (not)syntaxspec(Sword) instead of (not)wordchar.
(re_compile_fastmap): Merge handling of charset and charset_not (for
emacs and non-emacs compilation as well).
Similarly for (not)categoryspec and (not)syntaxspec.
Don't use the fastmap when reaching `anychar' since the added
complexity is not justified.
(re_match_2_internal): Merge (not)wordchar (emacs and non-emacs)
and (not)syntaxspec. Merge (not)categoryspec.
|
|
7540e140
|
2000-03-19T23:22:06
|
|
(RE_STRING_CHAR): New macro.
(GET_CHAR_AFER_2): Remove.
(RE_TRANSLATE, RE_TRANSLATE_P): New macros moved from regex.h.
(enum re_opcode_t): Remove on_failure_jump_exclusive.
(print_partial_compiled_pattern, re_compile_fastmap)
(re_match_2_internal): Remove on_failure_jump_exclusive.
(regex_compile): Turn optimizable P+ loops into PP*, so that the
optimization only need to work for * (ie. can use of_keep_string_jump).
Remove the special case for .*\n since it is now covered by the general
optimization.
(re_search_2): Don't bother with `room'.
(skip_one_char): New function.
(skip_noops): Simplify since `memory' is not needed any more.
(mutually_exclusive_p): Restructure slightly to use `switch' and
add handling for "all" remaining cases.
(re_match_2_internal): Change on_failure_jump_smart to use
on_failure_keep_string_jump (and redirect the end-of-loop jump)
rather than on_failure_jump_exclusive.
|
|
24f91832
|
2000-03-19T23:21:42
|
|
(RE_TRANSLATE. RE_TRANSLATE_P): Moved to regex.c.
|
|
7e9943c1
|
2000-03-17T21:26:31
|
|
.
|
|
df0c912c
|
2000-03-17T19:34:16
|
|
(<string.h>): Include only #if HAVE_STRING_H.
Otherwise, include <strings.h>
|
|
269accf8
|
2000-03-17T19:32:27
|
|
(utf8_wctomb): New function.
(print_unicode_char): Pass the Unicode character to iconv in UTF-8
format instead of in UCS-4 with platform dependent endianness.
|
|
5f5a55d6
|
2000-03-16T02:53:38
|
|
(re_match_2): Fix string shortening (to fit `stop') to make sure
POINTER_TO_OFFSET gives the same value before and after PREFETCH.
Use `dfail' to guarantee "atomic" matching.
(PTR_TO_OFFSET): Use POINTER_TO_OFFSET.
(debug): Now only active if > 0 rather than if != 0.
(DEBUG_*): Update for the new meaning of `debug'.
(print_partial_compiled_pattern): Add missing `succeed' case.
Use CHARSET_* macros in the charset(_not) branch.
Fix off-by-two bugs in `succeed_n', `jump_n' and `set_number_at'.
(store_op1, store_op2, insert_op1, insert_op2)
(at_begline_loc_p, at_endline_loc_p): Add prototype.
(group_in_compile_stack): Move to after its arg's types are declared
and add a prototype.
(PATFETCH): Define in terms of PATFETCH_RAW.
(GET_UNSIGNED_NUMBER): Add the usual `do { ... } while(0)' wrapper.
(QUIT): Redefine as a nop except for NTemacs.
(regex_compile): Handle intervals {,M} as if it was {0,M}.
Fix indentation of the greedy-op and shy-group code.
(at_(beg|end)line_loc_p): Fix argument's types.
(re_compile_fastmap): Ifdef out failure_stack_ptr to shut up gcc.
(re_search_2): Use POS_AS_IN_BUFFER. Simplify `room' computation.
(MATCHING_IN_FIRST_STRING): Remove.
(re_match_2): Use POS_AS_IN_BUFFER.
Ifdef out failure_stack_ptr to shut up gcc.
Use FIRST_STRING_P and POINTER_TO_OFFSET.
Use QUIT unconditionally.
|
|
c0b1cf90
|
2000-03-14T00:27:57
|
|
* regex.c: Declare a new type `re_char' used throughout the code for the
string char type. It's `const unsigned char' to match the rest of Emacs.
Consistently make sure all pointers to strings use it and make sure all
pointers into the pattern use `unsigned char'.
(re_match_2_internal): Use `PREFETCH+STRING_CHAR' instead of
GET_CHAR_AFTER_2.
Also merge wordbound and notwordbound to reduce code duplication.
* charset.h (GET_CHAR_AFTER_2): Remove.
(GET_CHAR_BEFORE_2): Use unsigned chars, like everywhere else.
|
|
4883f2ec
|
2000-03-10T11:40:29
|
|
*** empty log message ***
|
|
1adc496b
|
2000-03-10T09:09:08
|
|
*** empty log message ***
|
|
345b05ad
|
2000-03-10T09:08:53
|
|
Look for getspnam in -lgen, too.
|
|
9ff01e71
|
2000-03-08T23:25:41
|
|
This is a big redesign of failure-stack and register handling, prompted
by bugs revealed when trying to add shy-groups. Overall, what happened
is that loops are now structured a little differently, groups can be
shy and the code is a little simpler.
(enum re_opcode_t): Remove jump_past_alt, maybe_pop_jump,
push_dummy_failure and dumy_failure_jump.
Add on_failure_jump_(exclusive, loop and smart).
Also fix the comment for (start|stop)_memory since they now only take
one argument (the second has becomes unnecessary).
(print_partial_compiled_pattern): Adjust for changes in re_opcode_t.
(print_compiled_pattern): Use %ld to printf long ints and flush to make
debugging a little easier.
(union fail_stack_elt): Make the integer unsigned.
(struct fail_stack_type): Add a `frame' element.
(INIT_FAIL_STACK): Init `frame' as well.
(POP_PATTERN_OP): New macro for re_compile_fastmap.
(DEBUG_PUSH, DEBUG_POP): Remove.
(NUM_REG_ITEMS): Remove.
(NUM_NONREG_ITEMS): Adjust.
(FAILURE_PAT, FAILURE_STR, NEXT_FAILURE_HANDLE, TOP_FAILURE_HANDLE):
New macros for the cycle detection.
(ENSURE_FAIL_STACK): New macro for PUSH_FAILURE_(REG|POINT).
(PUSH_FAILURE_REG, POP_FAILURE_REG, CHECK_INFINITE_LOOP): New macros.
(PUSH_FAILURE_POINT): Don't push registers any more.
The pattern address pushed is not the destination of the jump
but the source of it instead.
(NUM_FAILURE_ITEMS): Remove.
(POP_FAILURE_POINT): Adapt to the new stack structure (i.e. pop
registers before the actual failure point).
Don't hardcode any meaning for str==NULL anymore.
(union register_info_type, REG_MATCH_NULL_STRING_P, IS_ACTIVE)
(MATCHED_SOMETHING, EVER_MATCHED_SOMETHING, SET_REGS_MATCHED): Remove.
(REG_UNSET_VALUE): Use NULL (why not?).
(compile_range): Remove declaration since it doesn't exist.
(struct compile_stack_elt_t): Remove inner_group_offset.
(old_reg(start|end), reg_info, reg_dummy, reg_info_dummy): Remove.
(regex_grow_registers): Remove dead code.
(FIXUP_ALT_JUMP): New macro.
(regex_compile): Add shy-groups
Change loops to use on_failure_jump_smart&jump instead of
on_failure_jump&maybe_pop_jump.
Change + loops to eliminate the initial (dummy_failure_)jump.
Remove c1_base (looks like unused variable to me).
Use `jump' instead of `jump_past_alt' and don't bother with
push_dummy_failure in alternatives since it is now unnecessary.
Use FIXUP_ALT_JUMP.
Eliminate a useless `#ifdef emacs' for (re)allocating the stack.
(re_compile_fastmap): Remove dead variables i and num_regs.
Exit from loop when bufp->can_be_null rather than jumping to `done'.
Avoid jumping backwards so as to ensure termination.
Use PATTERN_STACK_EMPTY and POP_PATTERN_OP.
Improved handling of backreferences.
Remove dead code in handling of `anychar'.
(skip_noops, mutually_exclusive_p): New functions taken from the
handling of `maybe_pop_jump' in re_match_2_internal.
Slightly improve mutually_exclusive_p to handle ".+\n".
((lowest|highest)_active_reg, NO_(LOWEST|HIGHEST)_ACTIVE_REG)
Remove.
(re_match_2_internal): Use %p instead of 0x%x when printf'ing ptrs.
Don't SET_REGS_MATCHED anymore. Remove many dead variables.
Push register (in `start_memory') on the stack rather than storing it
in old_reg(start|end).
Remove the cycle detection from `stop_memory', replaced by the use
of on_failure_jump_loop for greedy loops.
Add code for the new on_failure_jump_<foo>.
Remove ad-hoc code in `on_failure_jump' to push more registers
in the case of a loop.
Take out code from `maybe_pop_jump' into separate functions and
adapt it to the semantics of `on_failure_jump_smart'.
Remove jump_past_alt, dummy_failure_jump and push_dummy_failure.
Remove dummy_failure handling and handling of `failures to jump
to on_failure_jump' (this last one was already dead code, it seems).
((group|alt|common_op)_match_null_string_p): Remove.
|
|
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.
|
|
606ec43d
|
2000-03-08T14:50:11
|
|
*** empty log message ***
|
|
30f76aad
|
2000-03-08T14:50:05
|
|
(savedir): Work even if directory size is
negative; this can happen with some screwy NFS configurations.
|
|
ce15c933
|
2000-03-07T20:06:03
|
|
tweak indentation
|
|
e7ee6af7
|
2000-03-06T11:19:23
|
|
(get_charset_aliases): Don't try to free file_name
if it's NULL (because we ran out of memory). From Bruno Haible.
|
|
eacdee93
|
2000-03-05T10:27:29
|
|
*** empty log message ***
|
|
8f36ae9d
|
2000-03-05T10:27:22
|
|
("path-concat.h"): Include.
(get_charset_aliases): Use path_concat instead of ANSI string
concatenation.
|
|
344aa1f7
|
2000-03-05T10:22:03
|
|
*** empty log message ***
|
|
09ca7bd9
|
2000-03-05T10:21:58
|
|
(PARAMS): Define.
Use it to guard prototype.
|
|
3ac2d0a3
|
2000-03-05T06:53:08
|
|
.
|
|
2a5e4312
|
2000-03-04T21:14:51
|
|
.
|
|
485c4e6d
|
2000-03-04T21:10:21
|
|
(uninstall-local): Uncomment this rule so `make distcheck' works once again.
|
|
3df87fd8
|
2000-03-04T20:15:07
|
|
*** empty log message ***
|
|
b58b3db2
|
2000-03-04T20:15:03
|
|
(install-exec-local): Create $(libdir) before installing into it.
|
|
52f500ac
|
2000-03-04T12:53:29
|
|
.
|
|
f1ed0e84
|
2000-03-04T12:35:47
|
|
(<errno.h>): Include it.
(errno): Declare if not defined.
|
|
c98af17c
|
2000-03-04T12:22:47
|
|
.
|
|
f74b847e
|
2000-03-04T12:19:57
|
|
*** empty log message ***
|
|
ce47030e
|
2000-03-04T08:11:22
|
|
*** empty log message ***
|
|
1f7c39be
|
2000-03-04T08:11:18
|
|
(jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE, for lib/localcharset.c.
|
|
fac1a01e
|
2000-03-04T07:57:35
|
|
Add Bruno's comment justifying use of volatile.
|
|
059ec323
|
2000-03-04T07:53:33
|
|
New version, incorporating remarks from a linux
i18n mailing list. From Bruno Haible.
|
|
6266b671
|
2000-03-03T12:28:28
|
|
.
|
|
67f34206
|
2000-03-03T12:24:11
|
|
*** empty log message ***
|
|
2c33d34e
|
2000-03-03T12:23:47
|
|
Make sure re_compile_pattern accepts patterns like `{1'.
|
|
cffbc793
|
2000-03-03T08:25:13
|
|
.
|
|
e08ea16f
|
2000-03-02T15:28:23
|
|
(EXTRA_DIST): Add config.charset.
|
|
6c3a19d0
|
2000-03-02T09:44:56
|
|
*** empty log message ***
|
|
4edbafe0
|
2000-03-02T09:44:43
|
|
Require AC_HEADER_TIME before the cache check so
the messages come out on separate lines.
|
|
e70ad00f
|
2000-03-02T09:09:08
|
|
*** empty log message ***
|
|
50c6bbe5
|
2000-03-02T09:09:02
|
|
.
|
|
eac4f603
|
2000-03-02T09:08:32
|
|
(jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS, rather than jm_CHECK_DECLARATIONS.
|
|
0775e2f8
|
2000-03-02T09:05:33
|
|
*** empty log message ***
|
|
dce9198e
|
2000-03-02T09:05:28
|
|
(AC_CHECK_DECLS): Add getlogin, ttyname, and geteuid.
|
|
75232d6a
|
2000-03-01T13:26:04
|
|
(DEFS): Add -DLIBDIR=...
(libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
(noinst_HEADERS): Add unicodeio.h.
(all-local, install-exec-local, charset.alias): New targets.
|
|
c3e58bf7
|
2000-03-01T13:23:53
|
|
*** empty log message ***
|
|
461269e1
|
2000-03-01T13:23:47
|
|
*** empty log message ***
|
|
75fa9a8a
|
2000-03-01T13:23:41
|
|
New file from Bruno.
|
|
d3f0860f
|
2000-03-01T13:22:57
|
|
New file from Bruno.
filter through cppi
|
|
95ad3586
|
2000-03-01T13:22:35
|
|
New file from Bruno.
One portability tweak:
guard inclusion of stddef.h.
|
|
8aecbf69
|
2000-03-01T13:21:23
|
|
Guard some #includes with `#if HAVE_...'.
|
|
7f69123a
|
2000-03-01T13:11:05
|
|
new file, from Bruno
|
|
eba94b6a
|
2000-03-01T12:49:12
|
|
.
|
|
a3fbf7ad
|
2000-03-01T12:27:54
|
|
.
|
|
75c98f39
|
2000-02-28T20:45:33
|
|
*** empty log message ***
|
|
02b27c92
|
2000-02-28T20:45:28
|
|
(ALERT_CHAR): New macro.
(quotearg_buffer_restyled): Use it.
|
|
4aec394f
|
2000-02-27T19:05:50
|
|
.
|
|
82af802d
|
2000-02-27T18:49:10
|
|
Fix typo in decl of strtoul: s/long long/long/.
Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
|
|
28771d55
|
2000-02-27T18:45:29
|
|
Fix typo in decl of strtoul: s/long long/long/.
|
|
9deec7db
|
2000-02-27T18:04:10
|
|
*** empty log message ***
|
|
660fca6a
|
2000-02-27T18:04:00
|
|
Guard inclusion of stdlib.h with `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
Declare malloc if needed.
|
|
de1b0c61
|
2000-02-27T17:54:25
|
|
use double quotes, not single quotes around syntax-error-evoking string
|
|
025ca348
|
2000-02-27T17:53:36
|
|
*** empty log message ***
|
|
2689f07b
|
2000-02-27T17:53:31
|
|
Add getenv to the list.
|
|
42e2ac46
|
2000-02-27T17:42:30
|
|
*** empty log message ***
|
|
92065733
|
2000-02-27T17:40:53
|
|
Arrange for cpp to fail if the configure-time
declaration check was not run.
|
|
d9f6701e
|
2000-02-27T17:39:52
|
|
Use `#if !HAVE_DECL...' instead of `#ifndef HAVE_DECL..'
now that autoconf always defines the HAVE_DECL_ symbols.
Arrange for cpp to fail if the configure-time
declaration check was not run.
|
|
43de6da7
|
2000-02-27T13:58:12
|
|
Put cedilla on `c' in author's name.
|
|
bafd9f11
|
2000-02-27T11:27:38
|
|
*** empty log message ***
|
|
2b7c7bf4
|
2000-02-27T11:23:22
|
|
.
|
|
d1834f9b
|
2000-02-27T11:13:16
|
|
(parse_user_spec): If there is no `:' but there is a `.',
then first look up the entire `.'-containing string as a login name.
|
|
f10987bb
|
2000-02-26T21:28:10
|
|
whoops. Add commas in parenthesized list of functions in call
to AC_CHECK_DECLS.
|
|
71fb0859
|
2000-02-23T15:24:57
|
|
*** empty log message ***
|
|
b5603508
|
2000-02-23T15:24:51
|
|
Now that we have the new AC_CHECK_DECLS, use it in place of my hack.
|
|
22e6c88a
|
2000-02-22T20:16:07
|
|
Handle two-digit years with leading zeros correctly.
(textint): New typedef.
(parser_control): Member year changed from int to textint.
All uses changed.
(YYSTYPE): Removed; replaced by %union with int and textint members.
(tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
(tSNUMBER, tUNUMBER): Now of type <textintval>.
(date, number, to_year): Use width of number in digits, not its value,
to determine whether it's a 2-digit year, or a 2-digit time.
(yylex): Store number of digits of numeric tokens.
Reported by John Kendall.
(parser_control): Changed from struct parser_control to typedef (for
consistency). All uses changed.
(tID): Removed; not used.
(yylex): Return '?' for unknown identifiers, rather than (unused) tID.
|
|
c1d4b7c5
|
2000-02-15T13:08:08
|
|
*** empty log message ***
|
|
991fe5bd
|
2000-02-14T23:27:25
|
|
.
|
|
167efa0d
|
2000-02-14T20:15:32
|
|
adapted from changes to grep getpagesize.h
by Martin P.J. Zinser <zinser@decus.de>.
|
|
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.
|
|
4a508d1e
|
2000-02-12T10:42:19
|
|
*** empty log message ***
|
|
144e8455
|
2000-02-12T10:41:48
|
|
*** empty log message ***
|
|
63be8072
|
2000-02-12T10:41:37
|
|
<libintl.h>: Include.
(_ and N_): Define.
(parse_user_spec): Mark translatable strings.
|
|
2cbc4063
|
2000-02-12T10:11:54
|
|
add FIXME comments for use of atoi
|
|
e7fedf4d
|
2000-02-12T10:10:40
|
|
(ISDIGIT): Define it.
(isdigit): Remove definition.
(is_number): Use ISDIGIT, not isdigit.
|
|
7994372d
|
2000-02-10T09:38:43
|
|
#undef nanosleep.
(rpl_nanosleep): Rename from nanosleep.
|