gnulib.git
24 years ago*** empty log message *** FILEUTILS-4_0r
Jim Meyering [Sat, 29 Apr 2000 09:25:58 +0000 (09:25 +0000)]
*** empty log message ***

24 years agoDeclare strdup only if it's not defined.
Jim Meyering [Sat, 29 Apr 2000 09:25:09 +0000 (09:25 +0000)]
Declare strdup only if it's not defined.

24 years ago*** empty log message ***
Jim Meyering [Fri, 28 Apr 2000 16:50:24 +0000 (16:50 +0000)]
*** empty log message ***

24 years ago[HAVE_LIMITS_H]: Include limits.h before regex.h to avoid
Jim Meyering [Fri, 28 Apr 2000 16:49:38 +0000 (16:49 +0000)]
[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.

24 years ago.
Jim Meyering [Thu, 27 Apr 2000 12:19:38 +0000 (12:19 +0000)]
.

24 years ago*** empty log message ***
Jim Meyering [Thu, 27 Apr 2000 06:47:05 +0000 (06:47 +0000)]
*** empty log message ***

24 years agotweak comment
Jim Meyering [Thu, 27 Apr 2000 06:46:13 +0000 (06:46 +0000)]
tweak comment

24 years ago.
Jim Meyering [Wed, 26 Apr 2000 12:36:49 +0000 (12:36 +0000)]
.

24 years ago(S_IRWXUGO): Define.
Jim Meyering [Wed, 26 Apr 2000 12:36:43 +0000 (12:36 +0000)]
(S_IRWXUGO): Define.
(make_path): Always perform explicit chmod if MODE specifies any
of the `special' permission bits.

24 years ago(re_match_2_internal): Don't shorten the strings anymore,
Stefan Monnier [Wed, 19 Apr 2000 21:39:18 +0000 (21:39 +0000)]
(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'.

24 years ago*** empty log message ***
Jim Meyering [Tue, 18 Apr 2000 17:28:34 +0000 (17:28 +0000)]
*** empty log message ***

24 years agoadd comment
Jim Meyering [Tue, 18 Apr 2000 13:41:26 +0000 (13:41 +0000)]
add comment

24 years ago*** empty log message ***
Jim Meyering [Tue, 18 Apr 2000 13:40:29 +0000 (13:40 +0000)]
*** empty log message ***

24 years ago[!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define getpagesize.
Jim Meyering [Tue, 18 Apr 2000 13:40:25 +0000 (13:40 +0000)]
[!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define getpagesize.
For BeOS.  Based on a patch from Bruno Haible.

24 years ago*** empty log message ***
Jim Meyering [Tue, 18 Apr 2000 13:35:22 +0000 (13:35 +0000)]
*** empty log message ***

24 years ago(jm_PREREQ_GETPAGESIZE): New macro.
Jim Meyering [Tue, 18 Apr 2000 13:35:18 +0000 (13:35 +0000)]
(jm_PREREQ_GETPAGESIZE): New macro.
(jm_PREREQ): Use it.

24 years ago*** empty log message ***
Jim Meyering [Mon, 17 Apr 2000 11:39:36 +0000 (11:39 +0000)]
*** empty log message ***

24 years ago(my_strftime) [strftime]: Declare strftime here, since the definition
Jim Meyering [Mon, 17 Apr 2000 11:39:26 +0000 (11:39 +0000)]
(my_strftime) [strftime]: Declare strftime here, since the definition
of it to rpl_strftime also defined-away the system's declaration.

24 years ago*** empty log message ***
Jim Meyering [Mon, 17 Apr 2000 09:56:02 +0000 (09:56 +0000)]
*** empty log message ***

24 years agoGet it right :-)
Jim Meyering [Mon, 17 Apr 2000 09:55:53 +0000 (09:55 +0000)]
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.

24 years ago*** empty log message ***
Jim Meyering [Sat, 15 Apr 2000 21:58:37 +0000 (21:58 +0000)]
*** empty log message ***

24 years agoUse `C' to denote so-called `contiguous' files, the same way that tar does.
Jim Meyering [Sat, 15 Apr 2000 21:54:46 +0000 (21:54 +0000)]
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.

24 years ago*** empty log message ***
Jim Meyering [Fri, 14 Apr 2000 15:42:02 +0000 (15:42 +0000)]
*** empty log message ***

24 years ago(jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg form
Jim Meyering [Fri, 14 Apr 2000 15:41:06 +0000 (15:41 +0000)]
(jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg form
of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets clobbered.

24 years ago*** empty log message ***
Jim Meyering [Thu, 13 Apr 2000 08:15:07 +0000 (08:15 +0000)]
*** empty log message ***

24 years ago(jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new AH_VERBATIM
Jim Meyering [Thu, 13 Apr 2000 08:15:01 +0000 (08:15 +0000)]
(jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new AH_VERBATIM
to insert required #ifndef into config.h.in.
Suggestion from Akim Demaille.

24 years ago*** empty log message ***
Jim Meyering [Wed, 12 Apr 2000 16:03:53 +0000 (16:03 +0000)]
*** empty log message ***

24 years ago(AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
Jim Meyering [Wed, 12 Apr 2000 16:03:20 +0000 (16:03 +0000)]
(AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
`AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
Christian Krackowizer.

24 years ago*** empty log message ***
Jim Meyering [Wed, 12 Apr 2000 06:21:06 +0000 (06:21 +0000)]
*** empty log message ***

24 years ago*** empty log message ***
Jim Meyering [Wed, 12 Apr 2000 06:19:55 +0000 (06:19 +0000)]
*** empty log message ***

24 years ago(_GNU_SOURCE): Define.
Jim Meyering [Wed, 12 Apr 2000 06:19:45 +0000 (06:19 +0000)]
(_GNU_SOURCE): Define.
(AC_SYS_LARGEFILE): Require.
(AM_C_PROTOTYPES): Require.

24 years ago*** empty log message ***
Jim Meyering [Sat, 8 Apr 2000 06:34:06 +0000 (06:34 +0000)]
*** empty log message ***

24 years ago(charset.alias): Use t-$@, not $@-t so the DOS 8.3
Jim Meyering [Sat, 8 Apr 2000 06:34:02 +0000 (06:34 +0000)]
(charset.alias): Use t-$@, not $@-t so the DOS 8.3
names don't conflict.  Reported by Eli Zaretskii.

24 years ago.
Jim Meyering [Sat, 8 Apr 2000 06:31:38 +0000 (06:31 +0000)]
.

24 years ago*** empty log message ***
Jim Meyering [Fri, 7 Apr 2000 09:41:51 +0000 (09:41 +0000)]
*** empty log message ***

24 years ago(print_unicode_char): Avoid triggering Solaris iconv bug.
Jim Meyering [Fri, 7 Apr 2000 09:41:38 +0000 (09:41 +0000)]
(print_unicode_char): Avoid triggering Solaris iconv bug.
Deal with the different error behaviour of Irix iconv.

24 years agoMove inclusion of errno.h so it follows that of sys/types.h,
Jim Meyering [Fri, 7 Apr 2000 09:24:18 +0000 (09:24 +0000)]
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.

24 years ago.
Jim Meyering [Fri, 7 Apr 2000 08:45:27 +0000 (08:45 +0000)]
.

24 years ago*** empty log message ***
Jim Meyering [Thu, 6 Apr 2000 06:56:05 +0000 (06:56 +0000)]
*** empty log message ***

24 years ago(AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
Jim Meyering [Thu, 6 Apr 2000 06:55:14 +0000 (06:55 +0000)]
(AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
IRIX if the installer said otherwise.

24 years agofix two typos. Duh
Jim Meyering [Wed, 5 Apr 2000 15:22:04 +0000 (15:22 +0000)]
fix two typos.  Duh

24 years ago*** empty log message ***
Jim Meyering [Wed, 5 Apr 2000 15:16:27 +0000 (15:16 +0000)]
*** empty log message ***

24 years ago[!HAVE_UTMPX_H] (headers): Include <utmp.h>.
Jim Meyering [Wed, 5 Apr 2000 15:14:28 +0000 (15:14 +0000)]
[!HAVE_UTMPX_H] (headers): Include <utmp.h>.
(jm_CHECK_DECLS): Add getutent to the list of functions.
(_jm_DECL_HEADERS): Add utmpx.h.

24 years agoDeclare strdup.
Jim Meyering [Wed, 5 Apr 2000 15:08:11 +0000 (15:08 +0000)]
Declare strdup.

24 years ago[HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare getutent.
Jim Meyering [Wed, 5 Apr 2000 15:05:54 +0000 (15:05 +0000)]
[HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare getutent.

24 years agoInclude sys/types.h before sys/stat.h.
Jim Meyering [Wed, 5 Apr 2000 15:00:11 +0000 (15:00 +0000)]
Include sys/types.h before sys/stat.h.
Required for ultrix4.3.

24 years ago(canon_host): Declare strdup. Required for ultrix4.3.
Jim Meyering [Wed, 5 Apr 2000 14:57:36 +0000 (14:57 +0000)]
(canon_host): Declare strdup.  Required for ultrix4.3.

24 years ago*** empty log message ***
Jim Meyering [Wed, 5 Apr 2000 12:25:13 +0000 (12:25 +0000)]
*** empty log message ***

24 years agoBack out the 2000-04-02 change.
Jim Meyering [Wed, 5 Apr 2000 12:13:59 +0000 (12:13 +0000)]
Back out the 2000-04-02 change.
Instead of that change, simply undefine putenv in the test program.

24 years agoBack out the 2000-04-02 change.
Jim Meyering [Wed, 5 Apr 2000 11:50:48 +0000 (11:50 +0000)]
Back out the 2000-04-02 change.

24 years ago*** empty log message ***
Jim Meyering [Tue, 4 Apr 2000 12:58:57 +0000 (12:58 +0000)]
*** empty log message ***

24 years agoBe more DOS 8.3-friendly.
Jim Meyering [Tue, 4 Apr 2000 12:58:49 +0000 (12:58 +0000)]
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.

24 years agorenamed to ref-del.sin
Jim Meyering [Tue, 4 Apr 2000 12:50:59 +0000 (12:50 +0000)]
renamed to ref-del.sin

24 years agorenamed from ref-del.sed.in
Jim Meyering [Tue, 4 Apr 2000 12:50:59 +0000 (12:50 +0000)]
renamed from ref-del.sed.in

24 years agorenamed to ref-add.sin
Jim Meyering [Tue, 4 Apr 2000 12:50:44 +0000 (12:50 +0000)]
renamed to ref-add.sin

24 years agorenamed from ref-add.sed.in
Jim Meyering [Tue, 4 Apr 2000 12:50:44 +0000 (12:50 +0000)]
renamed from ref-add.sed.in

24 years agoUse a temporary file name that won't clash with `charset.alias'
Jim Meyering [Tue, 4 Apr 2000 12:47:19 +0000 (12:47 +0000)]
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.

24 years ago*** empty log message ***
Jim Meyering [Mon, 3 Apr 2000 19:35:28 +0000 (19:35 +0000)]
*** empty log message ***

24 years agoFix typo in comment.
Jim Meyering [Mon, 3 Apr 2000 19:35:24 +0000 (19:35 +0000)]
Fix typo in comment.

24 years ago*** empty log message ***
Jim Meyering [Mon, 3 Apr 2000 07:48:11 +0000 (07:48 +0000)]
*** empty log message ***

24 years ago(AC_CHECK_HEADERS): Add langinfo.h (moved here from
Jim Meyering [Mon, 3 Apr 2000 07:48:06 +0000 (07:48 +0000)]
(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)

24 years ago(AC_CHECK_HEADERS): Remove langinfo.h -- put it in codeset instead.
Jim Meyering [Mon, 3 Apr 2000 07:46:51 +0000 (07:46 +0000)]
(AC_CHECK_HEADERS): Remove langinfo.h -- put it in codeset instead.
(AC_CHECK_FUNCS): Likewise for nl_langinfo.

24 years ago*** empty log message ***
Jim Meyering [Mon, 3 Apr 2000 07:32:07 +0000 (07:32 +0000)]
*** empty log message ***

24 years ago(_jm_STRFTIME_PREREQS): Check for strftime,
Jim Meyering [Mon, 3 Apr 2000 07:31:59 +0000 (07:31 +0000)]
(_jm_STRFTIME_PREREQS): Check for strftime,
since strftime.c uses HAVE_STRFTIME to decide whether to use
the underlying strftime.

24 years ago*** empty log message ***
Jim Meyering [Mon, 3 Apr 2000 07:26:43 +0000 (07:26 +0000)]
*** empty log message ***

24 years ago(AC_CHECK_FUNCS): Add nl_langinfo. (also from textutils/configure.in)
Jim Meyering [Mon, 3 Apr 2000 07:26:38 +0000 (07:26 +0000)]
(AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)

24 years ago*** empty log message ***
Jim Meyering [Mon, 3 Apr 2000 07:20:44 +0000 (07:20 +0000)]
*** empty log message ***

24 years ago(AC_CHECK_HEADERS): Add langinfo.h (moved here from textutils/configure.in).
Jim Meyering [Mon, 3 Apr 2000 07:20:38 +0000 (07:20 +0000)]
(AC_CHECK_HEADERS): Add langinfo.h (moved here from textutils/configure.in).

24 years ago*** empty log message ***
Jim Meyering [Mon, 3 Apr 2000 07:10:21 +0000 (07:10 +0000)]
*** empty log message ***

24 years ago(my_strftime): Make sure we call the system
Jim Meyering [Mon, 3 Apr 2000 07:09:38 +0000 (07:09 +0000)]
(my_strftime): Make sure we call the system
strftime, not ourselves, when invoking the underlying strftime.

24 years ago*** empty log message ***
Jim Meyering [Mon, 3 Apr 2000 06:24:31 +0000 (06:24 +0000)]
*** empty log message ***

24 years ago(jm_FUNC_GNU_STRFTIME): Set TZ environment
Jim Meyering [Mon, 3 Apr 2000 06:24:20 +0000 (06:24 +0000)]
(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.

24 years ago* regex.c (PTR_TO_OFFSET) [!emacs]: Remove.
Stefan Monnier [Sun, 2 Apr 2000 23:56:45 +0000 (23:56 +0000)]
* 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.

24 years ago*** empty log message ***
Jim Meyering [Sun, 2 Apr 2000 21:00:30 +0000 (21:00 +0000)]
*** empty log message ***

24 years ago(jm_CHECK_ALL_TYPES): Include <sys/stat.h>
Jim Meyering [Sun, 2 Apr 2000 21:00:24 +0000 (21:00 +0000)]
(jm_CHECK_ALL_TYPES): Include <sys/stat.h>
before checking struct stat.st_blksize, so that
HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.

24 years ago(analyse_first): New function obtained by ripping out most
Stefan Monnier [Wed, 29 Mar 2000 04:01:25 +0000 (04:01 +0000)]
(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'.

24 years ago(REGEX_FREE_STACK, RESET_FAIL_STACK): Make them usable as an expression.
Stefan Monnier [Mon, 27 Mar 2000 22:26:37 +0000 (22:26 +0000)]
(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.

24 years ago(enum re_opcode_t): New opcode on_failure_jump_nastyloop.
Stefan Monnier [Sun, 26 Mar 2000 23:05:51 +0000 (23:05 +0000)]
(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.

24 years ago. SH-UTILS-2_0g
Jim Meyering [Sat, 25 Mar 2000 18:33:17 +0000 (18:33 +0000)]
.

24 years agoback out last change
Jim Meyering [Sat, 25 Mar 2000 18:26:47 +0000 (18:26 +0000)]
back out last change

24 years ago*** empty log message ***
Jim Meyering [Fri, 24 Mar 2000 09:07:18 +0000 (09:07 +0000)]
*** empty log message ***

24 years ago(jm_MACROS): Invoke `AC_CONFIG_AUX_DIR(.)' to work
Jim Meyering [Fri, 24 Mar 2000 09:07:12 +0000 (09:07 +0000)]
(jm_MACROS): Invoke `AC_CONFIG_AUX_DIR(.)' to work
around bug that made cvs-automake complain it couldn't find lib/depcomp.

24 years ago.
Jim Meyering [Fri, 24 Mar 2000 08:50:13 +0000 (08:50 +0000)]
.

24 years ago.
Jim Meyering [Fri, 24 Mar 2000 06:40:29 +0000 (06:40 +0000)]
.

24 years agoOutput a line containing "Packages using this file".
Jim Meyering [Fri, 24 Mar 2000 06:40:23 +0000 (06:40 +0000)]
Output a line containing "Packages using this file".

24 years ago*** empty log message ***
Jim Meyering [Fri, 24 Mar 2000 06:39:01 +0000 (06:39 +0000)]
*** empty log message ***

24 years ago(EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
Jim Meyering [Fri, 24 Mar 2000 05:54:46 +0000 (05:54 +0000)]
(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.

24 years ago(install-exec-local, uninstall-local, ref-add.sed, ref-del.sed): New rules.
Jim Meyering [Fri, 24 Mar 2000 05:46:01 +0000 (05:46 +0000)]
(install-exec-local, uninstall-local, ref-add.sed, ref-del.sed): New rules.
From Bruno.

24 years ago(enum syntaxcode): Provide default for non-Emacs.
Stefan Monnier [Thu, 23 Mar 2000 04:36:14 +0000 (04:36 +0000)]
(enum syntaxcode): Provide default for non-Emacs.
(re_compile_fastmap, re_match_2_internal): Undo Dave's previous fix.

24 years ago*** empty log message ***
Jim Meyering [Wed, 22 Mar 2000 21:46:50 +0000 (21:46 +0000)]
*** empty log message ***

24 years ago(re_compile_fastmap, re_match_2_internal): Fix cast to re_opcode_t.
Dave Love [Wed, 22 Mar 2000 14:25:38 +0000 (14:25 +0000)]
(re_compile_fastmap, re_match_2_internal): Fix cast to re_opcode_t.

24 years ago(CHAR_CHARSET, CHARSET_LEADING_CODE_BASE): Add default
Stefan Monnier [Wed, 22 Mar 2000 04:17:32 +0000 (04:17 +0000)]
(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.

24 years ago(RE_STRING_CHAR): New macro.
Stefan Monnier [Sun, 19 Mar 2000 23:22:06 +0000 (23:22 +0000)]
(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.

24 years ago(RE_TRANSLATE. RE_TRANSLATE_P): Moved to regex.c.
Stefan Monnier [Sun, 19 Mar 2000 23:21:42 +0000 (23:21 +0000)]
(RE_TRANSLATE. RE_TRANSLATE_P): Moved to regex.c.

24 years ago.
Jim Meyering [Fri, 17 Mar 2000 21:26:31 +0000 (21:26 +0000)]
.

24 years ago(<string.h>): Include only #if HAVE_STRING_H.
Jim Meyering [Fri, 17 Mar 2000 19:34:16 +0000 (19:34 +0000)]
(<string.h>): Include only #if HAVE_STRING_H.
Otherwise, include <strings.h>

24 years ago(utf8_wctomb): New function.
Jim Meyering [Fri, 17 Mar 2000 19:32:27 +0000 (19:32 +0000)]
(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.

24 years ago(re_match_2): Fix string shortening (to fit `stop') to make sure
Stefan Monnier [Thu, 16 Mar 2000 02:53:38 +0000 (02:53 +0000)]
(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.

24 years ago* regex.c: Declare a new type `re_char' used throughout the code for the
Stefan Monnier [Tue, 14 Mar 2000 00:27:57 +0000 (00:27 +0000)]
* 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.

24 years ago*** empty log message ***
Jim Meyering [Fri, 10 Mar 2000 11:40:29 +0000 (11:40 +0000)]
*** empty log message ***