Log

Author Commit Date CI Message
Jim Meyering 931fd187 2000-04-29T09:25:58 *** empty log message ***
Jim Meyering eeedc1da 2000-04-29T09:25:09 Declare strdup only if it's not defined.
Jim Meyering 346cea54 2000-04-28T16:50:24 *** empty log message ***
Jim Meyering c2f78d65 2000-04-28T16:49:38 [HAVE_LIMITS_H]: Include limits.h before regex.h to avoid redefinition warning on some systems (HPUX). Otherwise, regex.h is included first, then limits.h is included by locale.h by libintl.h. From John David Anglin.
Jim Meyering a703e558 2000-04-27T12:19:38 .
Jim Meyering 2e879d32 2000-04-27T06:47:05 *** empty log message ***
Jim Meyering f71611c4 2000-04-27T06:46:13 tweak comment
Jim Meyering 581e09e3 2000-04-26T12:36:49 .
Jim Meyering 53d01ff8 2000-04-26T12:36:43 (S_IRWXUGO): Define. (make_path): Always perform explicit chmod if MODE specifies any of the `special' permission bits.
Stefan Monnier 6a4fc8be 2000-04-19T21:39:18 (re_match_2_internal): Don't shorten the strings anymore, instead define end_match(1|2) more carefully. Use GET_CHAR_BEFORE_2 for `begline'.
Jim Meyering 5ef027ce 2000-04-18T17:28:34 *** empty log message ***
Jim Meyering 96651696 2000-04-18T13:41:26 add comment
Jim Meyering 03c71a70 2000-04-18T13:40:29 *** empty log message ***
Jim Meyering a26dc89f 2000-04-18T13:40:25 [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define getpagesize. For BeOS. Based on a patch from Bruno Haible.
Jim Meyering a775f8d6 2000-04-18T13:35:22 *** empty log message ***
Jim Meyering eae97f96 2000-04-18T13:35:18 (jm_PREREQ_GETPAGESIZE): New macro. (jm_PREREQ): Use it.
Jim Meyering 4b82a914 2000-04-17T11:39:36 *** empty log message ***
Jim Meyering dcbcec14 2000-04-17T11:39:26 (my_strftime) [strftime]: Declare strftime here, since the definition of it to rpl_strftime also defined-away the system's declaration.
Jim Meyering 5fb39ef1 2000-04-17T09:56:02 *** empty log message ***
Jim Meyering 218664d3 2000-04-17T09:55:53 Get it right :-) (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the actual #define via AH_VERBATIM. Don't need separate AC_DEFINE. Suggestion from Akim Demaille.
Jim Meyering 7abd4b91 2000-04-15T21:58:37 *** empty log message ***
Jim Meyering 8a7c83d5 2000-04-15T21:54:46 Use `C' to denote so-called `contiguous' files, the same way that tar does. * filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define. (ftypelet): Use S_ISCTG.
Jim Meyering b657dd00 2000-04-14T15:42:02 *** empty log message ***
Jim Meyering 52a59960 2000-04-14T15:41:06 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg form of AC_DEFINE. Otherwise, the #ifndef in AH_VERBATIM gets clobbered.
Jim Meyering 5324c053 2000-04-13T08:15:07 *** empty log message ***
Jim Meyering 4a11ac99 2000-04-13T08:15:01 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new AH_VERBATIM to insert required #ifndef into config.h.in. Suggestion from Akim Demaille.
Jim Meyering a24af4f6 2000-04-12T16:03:53 *** empty log message ***
Jim Meyering e232db70 2000-04-12T16:03:20 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not `AC_CHECK_HEADER' to check for locale.h. Thanks to a report from Christian Krackowizer.
Jim Meyering fecfc3aa 2000-04-12T06:21:06 *** empty log message ***
Jim Meyering fbc3039a 2000-04-12T06:19:55 *** empty log message ***
Jim Meyering 5b12144d 2000-04-12T06:19:45 (_GNU_SOURCE): Define. (AC_SYS_LARGEFILE): Require. (AM_C_PROTOTYPES): Require.
Jim Meyering 869db633 2000-04-08T06:34:06 *** empty log message ***
Jim Meyering 49d7ea3e 2000-04-08T06:34:02 (charset.alias): Use t-$@, not $@-t so the DOS 8.3 names don't conflict. Reported by Eli Zaretskii.
Jim Meyering fb12ff0b 2000-04-08T06:31:38 .
Jim Meyering b5dddf0a 2000-04-07T09:41:51 *** empty log message ***
Jim Meyering 51630940 2000-04-07T09:41:38 (print_unicode_char): Avoid triggering Solaris iconv bug. Deal with the different error behaviour of Irix iconv.
Jim Meyering d08d6527 2000-04-07T09:24:18 Move inclusion of errno.h so it follows that of sys/types.h, to work around system header problems on AIX 3.2.5. From Bruno Haible.
Jim Meyering 0ee6bda8 2000-04-07T08:45:27 .
Jim Meyering 73027a6d 2000-04-06T06:56:05 *** empty log message ***
Jim Meyering d9bb1ae9 2000-04-06T06:55:14 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on IRIX if the installer said otherwise.
Jim Meyering 9b1445bd 2000-04-05T15:22:04 fix two typos. Duh
Jim Meyering aea4e23f 2000-04-05T15:16:27 *** empty log message ***
Jim Meyering dacc1385 2000-04-05T15:14:28 [!HAVE_UTMPX_H] (headers): Include <utmp.h>. (jm_CHECK_DECLS): Add getutent to the list of functions. (_jm_DECL_HEADERS): Add utmpx.h.
Jim Meyering e704e54e 2000-04-05T15:08:11 Declare strdup.
Jim Meyering a9dbf48d 2000-04-05T15:05:54 [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare getutent.
Jim Meyering a456afef 2000-04-05T15:00:11 Include sys/types.h before sys/stat.h. Required for ultrix4.3.
Jim Meyering 968fbdf8 2000-04-05T14:57:36 (canon_host): Declare strdup. Required for ultrix4.3.
Jim Meyering 03ddf4c3 2000-04-05T12:25:13 *** empty log message ***
Jim Meyering 2b9f3fcf 2000-04-05T12:13:59 Back out the 2000-04-02 change. Instead of that change, simply undefine putenv in the test program.
Jim Meyering 2077366b 2000-04-05T11:50:48 Back out the 2000-04-02 change.
Jim Meyering 5d5fae01 2000-04-04T12:58:57 *** empty log message ***
Jim Meyering ecd42141 2000-04-04T12:58:49 Be more DOS 8.3-friendly. * ref-add.sin: Renamed from ref-add.sed.in. * ref-del.sin: Renamed from ref-del.sed.in. * Makefile.am: Reflect renaming.
Jim Meyering 540ebcd6 2000-04-04T12:50:59 renamed to ref-del.sin
Jim Meyering 74360cbe 2000-04-04T12:50:59 renamed from ref-del.sed.in
Jim Meyering c1bff613 2000-04-04T12:50:44 renamed to ref-add.sin
Jim Meyering cfc8637a 2000-04-04T12:50:44 renamed from ref-add.sed.in
Jim Meyering 43523fc0 2000-04-04T12:47:19 Use a temporary file name that won't clash with `charset.alias' in the DOS 8.3 name space. (charset_tmp): Define. (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t. (uninstall-local): Likewise. Reported by Eli Zaretskii.
Jim Meyering d9b48916 2000-04-03T19:35:28 *** empty log message ***
Jim Meyering 2eaec5ea 2000-04-03T19:35:24 Fix typo in comment.
Jim Meyering 05595d49 2000-04-03T07:48:11 *** empty log message ***
Jim Meyering cfeec074 2000-04-03T07:48:06 (AC_CHECK_HEADERS): Add langinfo.h (moved here from textutils/configure.in). Suggestion from Paul Eggert. (AC_CHECK_FUNCS): Add nl_langinfo. (also from textutils/configure.in)
Jim Meyering 634612f1 2000-04-03T07:46:51 (AC_CHECK_HEADERS): Remove langinfo.h -- put it in codeset instead. (AC_CHECK_FUNCS): Likewise for nl_langinfo.
Jim Meyering 8b2fdc45 2000-04-03T07:32:07 *** empty log message ***
Jim Meyering 2851693b 2000-04-03T07:31:59 (_jm_STRFTIME_PREREQS): Check for strftime, since strftime.c uses HAVE_STRFTIME to decide whether to use the underlying strftime.
Jim Meyering 8bf2847e 2000-04-03T07:26:43 *** empty log message ***
Jim Meyering 3fe59d6c 2000-04-03T07:26:38 (AC_CHECK_FUNCS): Add nl_langinfo. (also from textutils/configure.in)
Jim Meyering e59c7d49 2000-04-03T07:20:44 *** empty log message ***
Jim Meyering 001ac720 2000-04-03T07:20:38 (AC_CHECK_HEADERS): Add langinfo.h (moved here from textutils/configure.in).
Jim Meyering 0f438a75 2000-04-03T07:10:21 *** empty log message ***
Jim Meyering 4c81c55a 2000-04-03T07:09:38 (my_strftime): Make sure we call the system strftime, not ourselves, when invoking the underlying strftime.
Jim Meyering 8405d026 2000-04-03T06:24:31 *** empty log message ***
Jim Meyering 7b2edcb7 2000-04-03T06:24:20 (jm_FUNC_GNU_STRFTIME): Set TZ environment variable in the shell rather than using putenv, which isn't portable. This avoids the configure-time inter-test dependency on the potentially-renamed putenv function.
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.
Jim Meyering fbf994a2 2000-04-02T21:00:30 *** empty log message ***
Jim Meyering 99877a3a 2000-04-02T21:00:24 (jm_CHECK_ALL_TYPES): Include <sys/stat.h> before checking struct stat.st_blksize, so that HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
Stefan Monnier 0be3fccc 2000-03-29T04:01:25 (analyse_first): New function obtained by ripping out most of re_compile_fastmap and generalizing it a little bit so that it can also just return whether a given (sub)pattern can match the empty string or not. (regex_compile): Use `analyse_first' to decide whether the loop-check needs to be done or not for *, +, *? and +? (the loop check is costly for non-greedy repetition). (re_compile_fastmap): Delegate the actual work to `analyse_first'.
Stefan Monnier 1570cc6b 2000-03-27T22:26:37 (REGEX_FREE_STACK, RESET_FAIL_STACK): Make them usable as an expression. (enum re_opcode_t): Update description of succeed_n. (PATFETCH): Always define. (regex_compile): Use lookahead rather than PATUNFETCH (for repetition operators, char classes, shy-groups and intervals). Optimize special cases of intervals so as to only use succeed_n and jump_n when really needed. (re_compile_fastmap): Simplify handling of jump_n and succeed_n now that we don't have to handle the special cases any more. Simplify on_failure_jump handling as well.
Stefan Monnier aeb359a7 2000-03-26T23:05:51 (enum re_opcode_t): New opcode on_failure_jump_nastyloop. (print_partial_compiled_pattern, re_compile_fastmap): Handle new opcode. (regex_compile): Use on_failure_jump_nastyloop for non-greedy loops. (re_match_2_internal): Add code for on_failure_jump_nastyloop when executing it as well as when popping it off the stack to find infinite loops in non-greedy repetition operators.
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 ***