Log

Author Commit Date CI Message
Jim Meyering f7c6345a 2000-03-25T18:33:17 .
Jim Meyering 536e0a0d 2000-03-25T18:26:47 back out last change
Jim Meyering 433cd145 2000-03-24T09:07:18 *** empty log message ***
Jim Meyering 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.
Jim Meyering 79ca818f 2000-03-24T08:50:13 .
Jim Meyering 1f091092 2000-03-24T06:40:29 .
Jim Meyering 89dc9eaf 2000-03-24T06:40:23 Output a line containing "Packages using this file".
Jim Meyering cbc3b7cd 2000-03-24T06:39:01 *** empty log message ***
Jim Meyering 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.
Jim Meyering 07690e78 2000-03-24T05:46:01 (install-exec-local, uninstall-local, ref-add.sed, ref-del.sed): New rules. From Bruno.
Stefan Monnier 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.
Jim Meyering 274e8afa 2000-03-22T21:46:50 *** empty log message ***
Dave Love 017e46a8 2000-03-22T14:25:38 (re_compile_fastmap, re_match_2_internal): Fix cast to re_opcode_t.
Stefan Monnier 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.
Stefan Monnier 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.
Stefan Monnier 24f91832 2000-03-19T23:21:42 (RE_TRANSLATE. RE_TRANSLATE_P): Moved to regex.c.
Jim Meyering 7e9943c1 2000-03-17T21:26:31 .
Jim Meyering df0c912c 2000-03-17T19:34:16 (<string.h>): Include only #if HAVE_STRING_H. Otherwise, include <strings.h>
Jim Meyering 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.
Stefan Monnier 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.
Stefan Monnier 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.
Jim Meyering 4883f2ec 2000-03-10T11:40:29 *** empty log message ***
Jim Meyering 1adc496b 2000-03-10T09:09:08 *** empty log message ***
Jim Meyering 345b05ad 2000-03-10T09:08:53 Look for getspnam in -lgen, too.
Stefan Monnier 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.
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.
Jim Meyering 606ec43d 2000-03-08T14:50:11 *** empty log message ***
Jim Meyering 30f76aad 2000-03-08T14:50:05 (savedir): Work even if directory size is negative; this can happen with some screwy NFS configurations.
Jim Meyering ce15c933 2000-03-07T20:06:03 tweak indentation
Jim Meyering 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.
Jim Meyering eacdee93 2000-03-05T10:27:29 *** empty log message ***
Jim Meyering 8f36ae9d 2000-03-05T10:27:22 ("path-concat.h"): Include. (get_charset_aliases): Use path_concat instead of ANSI string concatenation.
Jim Meyering 344aa1f7 2000-03-05T10:22:03 *** empty log message ***
Jim Meyering 09ca7bd9 2000-03-05T10:21:58 (PARAMS): Define. Use it to guard prototype.
Jim Meyering 3ac2d0a3 2000-03-05T06:53:08 .
Jim Meyering 2a5e4312 2000-03-04T21:14:51 .
Jim Meyering 485c4e6d 2000-03-04T21:10:21 (uninstall-local): Uncomment this rule so `make distcheck' works once again.
Jim Meyering 3df87fd8 2000-03-04T20:15:07 *** empty log message ***
Jim Meyering b58b3db2 2000-03-04T20:15:03 (install-exec-local): Create $(libdir) before installing into it.
Jim Meyering 52f500ac 2000-03-04T12:53:29 .
Jim Meyering f1ed0e84 2000-03-04T12:35:47 (<errno.h>): Include it. (errno): Declare if not defined.
Jim Meyering c98af17c 2000-03-04T12:22:47 .
Jim Meyering f74b847e 2000-03-04T12:19:57 *** empty log message ***
Jim Meyering ce47030e 2000-03-04T08:11:22 *** empty log message ***
Jim Meyering 1f7c39be 2000-03-04T08:11:18 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE, for lib/localcharset.c.
Jim Meyering fac1a01e 2000-03-04T07:57:35 Add Bruno's comment justifying use of volatile.
Jim Meyering 059ec323 2000-03-04T07:53:33 New version, incorporating remarks from a linux i18n mailing list. From Bruno Haible.
Jim Meyering 6266b671 2000-03-03T12:28:28 .
Jim Meyering 67f34206 2000-03-03T12:24:11 *** empty log message ***
Jim Meyering 2c33d34e 2000-03-03T12:23:47 Make sure re_compile_pattern accepts patterns like `{1'.
Jim Meyering cffbc793 2000-03-03T08:25:13 .
Jim Meyering e08ea16f 2000-03-02T15:28:23 (EXTRA_DIST): Add config.charset.
Jim Meyering 6c3a19d0 2000-03-02T09:44:56 *** empty log message ***
Jim Meyering 4edbafe0 2000-03-02T09:44:43 Require AC_HEADER_TIME before the cache check so the messages come out on separate lines.
Jim Meyering e70ad00f 2000-03-02T09:09:08 *** empty log message ***
Jim Meyering 50c6bbe5 2000-03-02T09:09:02 .
Jim Meyering eac4f603 2000-03-02T09:08:32 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS, rather than jm_CHECK_DECLARATIONS.
Jim Meyering 0775e2f8 2000-03-02T09:05:33 *** empty log message ***
Jim Meyering dce9198e 2000-03-02T09:05:28 (AC_CHECK_DECLS): Add getlogin, ttyname, and geteuid.
Jim Meyering 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.
Jim Meyering c3e58bf7 2000-03-01T13:23:53 *** empty log message ***
Jim Meyering 461269e1 2000-03-01T13:23:47 *** empty log message ***
Jim Meyering 75fa9a8a 2000-03-01T13:23:41 New file from Bruno.
Jim Meyering d3f0860f 2000-03-01T13:22:57 New file from Bruno. filter through cppi
Jim Meyering 95ad3586 2000-03-01T13:22:35 New file from Bruno. One portability tweak: guard inclusion of stddef.h.
Jim Meyering 8aecbf69 2000-03-01T13:21:23 Guard some #includes with `#if HAVE_...'.
Jim Meyering 7f69123a 2000-03-01T13:11:05 new file, from Bruno
Jim Meyering eba94b6a 2000-03-01T12:49:12 .
Jim Meyering a3fbf7ad 2000-03-01T12:27:54 .
Jim Meyering 75c98f39 2000-02-28T20:45:33 *** empty log message ***
Jim Meyering 02b27c92 2000-02-28T20:45:28 (ALERT_CHAR): New macro. (quotearg_buffer_restyled): Use it.
Jim Meyering 4aec394f 2000-02-27T19:05:50 .
Jim Meyering 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'.
Jim Meyering 28771d55 2000-02-27T18:45:29 Fix typo in decl of strtoul: s/long long/long/.
Jim Meyering 9deec7db 2000-02-27T18:04:10 *** empty log message ***
Jim Meyering 660fca6a 2000-02-27T18:04:00 Guard inclusion of stdlib.h with `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'. Declare malloc if needed.
Jim Meyering de1b0c61 2000-02-27T17:54:25 use double quotes, not single quotes around syntax-error-evoking string
Jim Meyering 025ca348 2000-02-27T17:53:36 *** empty log message ***
Jim Meyering 2689f07b 2000-02-27T17:53:31 Add getenv to the list.
Jim Meyering 42e2ac46 2000-02-27T17:42:30 *** empty log message ***
Jim Meyering 92065733 2000-02-27T17:40:53 Arrange for cpp to fail if the configure-time declaration check was not run.
Jim Meyering 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.
Jim Meyering 43de6da7 2000-02-27T13:58:12 Put cedilla on `c' in author's name.
Jim Meyering bafd9f11 2000-02-27T11:27:38 *** empty log message ***
Jim Meyering 2b7c7bf4 2000-02-27T11:23:22 .
Jim Meyering 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.
Jim Meyering f10987bb 2000-02-26T21:28:10 whoops. Add commas in parenthesized list of functions in call to AC_CHECK_DECLS.
Jim Meyering 71fb0859 2000-02-23T15:24:57 *** empty log message ***
Jim Meyering b5603508 2000-02-23T15:24:51 Now that we have the new AC_CHECK_DECLS, use it in place of my hack.
Jim Meyering 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.
Jim Meyering c1d4b7c5 2000-02-15T13:08:08 *** empty log message ***
Jim Meyering 991fe5bd 2000-02-14T23:27:25 .
Jim Meyering 167efa0d 2000-02-14T20:15:32 adapted from changes to grep getpagesize.h by Martin P.J. Zinser <zinser@decus.de>.
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.
Jim Meyering 4a508d1e 2000-02-12T10:42:19 *** empty log message ***
Jim Meyering 144e8455 2000-02-12T10:41:48 *** empty log message ***
Jim Meyering 63be8072 2000-02-12T10:41:37 <libintl.h>: Include. (_ and N_): Define. (parse_user_spec): Mark translatable strings.
Jim Meyering 2cbc4063 2000-02-12T10:11:54 add FIXME comments for use of atoi
Jim Meyering e7fedf4d 2000-02-12T10:10:40 (ISDIGIT): Define it. (isdigit): Remove definition. (is_number): Use ISDIGIT, not isdigit.
Jim Meyering 7994372d 2000-02-10T09:38:43 #undef nanosleep. (rpl_nanosleep): Rename from nanosleep.