gnulib.git
28 years agoUse void* alloca, not char*. The latter lost on convexOS. ss-950614-22h58-1_11_5a
Jim Meyering [Thu, 15 Jun 1995 03:57:49 +0000 (03:57 +0000)]
Use void* alloca, not char*.  The latter lost on convexOS.

28 years ago(Convert): Use 2037 as threshold, not 1999.
Jim Meyering [Wed, 7 Jun 1995 18:10:17 +0000 (18:10 +0000)]
(Convert): Use 2037 as threshold, not 1999.
Otherwise years after 1999 are treated as invalid.
From Andreas Schwab.

28 years agoUndefined INHIBIT_STRING_HEADER when we have no
Karl Heuer [Sat, 3 Jun 1995 17:32:10 +0000 (17:32 +0000)]
Undefined INHIBIT_STRING_HEADER when we have no
other way of getting a bcopy and a bzero.

28 years agomerge with 1.11.5
Jim Meyering [Thu, 1 Jun 1995 14:12:57 +0000 (14:12 +0000)]
merge with 1.11.5

28 years ago(at_endline_loc_p): Use 0, not NULL, in ?: for next_next.
Karl Heuer [Mon, 29 May 1995 06:15:30 +0000 (06:15 +0000)]
(at_endline_loc_p): Use 0, not NULL, in ?: for next_next.

28 years agomerge with 1.11.4a
Jim Meyering [Sun, 28 May 1995 01:55:00 +0000 (01:55 +0000)]
merge with 1.11.4a

28 years ago(NULL): Use explicit cast.
Karl Heuer [Fri, 26 May 1995 22:35:10 +0000 (22:35 +0000)]
(NULL): Use explicit cast.

28 years agoRemove trailing white space.
Jim Meyering [Fri, 26 May 1995 15:08:55 +0000 (15:08 +0000)]
Remove trailing white space.

28 years ago(__strtol): Remove prototype altogether.
Jim Meyering [Mon, 22 May 1995 04:43:36 +0000 (04:43 +0000)]
(__strtol): Remove prototype altogether.
Move inclusion of xstrtol.h back so that it follows system headers.

28 years ago(install-exec, install-exec): New targets. From Karl Berry.
Jim Meyering [Sun, 21 May 1995 12:27:46 +0000 (12:27 +0000)]
(install-exec, install-exec): New targets.  From Karl Berry.
(maintainer-clean): Renamed from realclean per GNU Standards.

28 years agomerge with 1.11.1b
Jim Meyering [Sun, 21 May 1995 11:44:25 +0000 (11:44 +0000)]
merge with 1.11.1b

28 years ago[REGEX_FREE]: Use ((void)0) instead of just (0).
Jim Meyering [Sun, 21 May 1995 06:19:05 +0000 (06:19 +0000)]
[REGEX_FREE]: Use ((void)0) instead of just (0).

28 years agoAdd `#ifdef _LIBC' in a few places, so this can be compiled in libc.
Roland McGrath [Sat, 20 May 1995 16:40:11 +0000 (16:40 +0000)]
Add `#ifdef _LIBC' in a few places, so this can be compiled in libc.

28 years agomerge with 1.11.1a
Jim Meyering [Sat, 20 May 1995 13:28:24 +0000 (13:28 +0000)]
merge with 1.11.1a

28 years agoNo longer include safe-l?stat.h.
Jim Meyering [Fri, 19 May 1995 15:23:18 +0000 (15:23 +0000)]
No longer include safe-l?stat.h.

28 years agoUpdated from ../gpl2lgpl.sed /home/gd/gnu/lib/regex.c
Roland McGrath [Wed, 17 May 1995 20:54:49 +0000 (20:54 +0000)]
Updated from ../gpl2lgpl.sed /home/gd/gnu/lib/regex.c

28 years ago[VMS]: Don't #include <stddef.h> if _POSIX_SOURCE or _POSIX_C_SOURCE is
Roland McGrath [Wed, 17 May 1995 20:47:26 +0000 (20:47 +0000)]
[VMS]: Don't #include <stddef.h> if _POSIX_SOURCE or _POSIX_C_SOURCE is
defined.

28 years ago(re_compile_fastmap): Undo previous change.
Karl Heuer [Wed, 17 May 1995 20:29:52 +0000 (20:29 +0000)]
(re_compile_fastmap): Undo previous change.

(RESET_FAIL_STACK): New macro.
(re_compile_fastmap): Use RESET_FAIL_STACK, not REGEX_FREE_STACK
directly.

28 years ago(re_compile_fastmap): Don't free stack if it's empty.
Richard Stallman [Mon, 15 May 1995 23:30:28 +0000 (23:30 +0000)]
(re_compile_fastmap): Don't free stack if it's empty.
(re_match_failures): Reduce the larger value to 200000,
and use whenever if MATCH_MAY_ALLOCATE.
(MATCH_MAY_ALLOCATE): Don't consider REL_ALLOC when deciding
whether to undef this.

29 years ago(maintainer-clean): Rename from realclean.
Jim Meyering [Sat, 13 May 1995 13:55:56 +0000 (13:55 +0000)]
(maintainer-clean): Rename from realclean.
(.PHONY): New dependencies.
[.c.o]: Remove -I. since safe-l?stat.h is no longer used.

29 years ago(make_path): Use stat, not SAFE_STAT.
Jim Meyering [Sat, 13 May 1995 13:30:10 +0000 (13:30 +0000)]
(make_path): Use stat, not SAFE_STAT.
Use strchr, not index.  Adjust defines accordingly.

29 years ago(parse_user_spec): Use strchr, not index.
Jim Meyering [Sat, 13 May 1995 13:25:42 +0000 (13:25 +0000)]
(parse_user_spec): Use strchr, not index.
[!HAVE_STRING_H]: Define strchr in terms of index, not the other way around.

29 years ago(rmdir): Use stat, not safe_stat.
Jim Meyering [Sat, 13 May 1995 13:20:19 +0000 (13:20 +0000)]
(rmdir): Use stat, not safe_stat.

29 years ago(rename): Use stat, not safe_stat.
Jim Meyering [Sat, 13 May 1995 13:19:07 +0000 (13:19 +0000)]
(rename): Use stat, not safe_stat.
(rename): Compare src and dest inode numbers rather than src
inode and dest *dev* when determining whether src and dest refer
to the same file.  From marc@math.cornell.edu (Marc Parmet).

29 years ago(mkdir): Use stat, not safe_stat.
Jim Meyering [Sat, 13 May 1995 13:13:04 +0000 (13:13 +0000)]
(mkdir): Use stat, not safe_stat.

29 years agoUndef __P before defining.
Jim Meyering [Sat, 13 May 1995 13:10:38 +0000 (13:10 +0000)]
Undef __P before defining.
Guard definition with simpler `#if __STDC__'.

29 years ago(isdir): Usage stat, not safe_stat.
Jim Meyering [Sat, 13 May 1995 13:07:54 +0000 (13:07 +0000)]
(isdir): Usage stat, not safe_stat.

29 years ago(statfs): Use stat, not safe_stat.
Jim Meyering [Sat, 13 May 1995 13:06:46 +0000 (13:06 +0000)]
(statfs): Use stat, not safe_stat.

29 years ago(eaccess_stat): Make statp and path arguments const.
Jim Meyering [Sat, 13 May 1995 13:05:35 +0000 (13:05 +0000)]
(eaccess_stat): Make statp and path arguments const.
(euidaccess): Make statp argument const.  Use stat, not safe_stat.

29 years agoRemove unnecessary definitions for r?index.
Jim Meyering [Sat, 13 May 1995 13:02:08 +0000 (13:02 +0000)]
Remove unnecessary definitions for r?index.
Update definitions for ISDIGIT.

29 years agoRemove safe-l?stat.[ch]in and related rules.
Jim Meyering [Sat, 13 May 1995 12:57:46 +0000 (12:57 +0000)]
Remove safe-l?stat.[ch]in and related rules.

29 years ago(argmatch): Include sys/types.h and declare length argument with type size_t.
Jim Meyering [Sat, 13 May 1995 12:55:49 +0000 (12:55 +0000)]
(argmatch): Include sys/types.h and declare length argument with type size_t.

29 years ago(basename): Make arg const.
Jim Meyering [Sat, 13 May 1995 12:52:57 +0000 (12:52 +0000)]
(basename): Make arg const.

29 years agomerge with 1.11.g ss-950520-08h12-sync-tu
Jim Meyering [Wed, 10 May 1995 14:22:19 +0000 (14:22 +0000)]
merge with 1.11.g

29 years ago[! emacs]: #undef REL_ALLOC.
Richard Stallman [Sat, 6 May 1995 20:14:52 +0000 (20:14 +0000)]
[! emacs]: #undef REL_ALLOC.

29 years ago(union fail_stack_elt): New union.
Richard Stallman [Tue, 2 May 1995 16:27:24 +0000 (16:27 +0000)]
(union fail_stack_elt): New union.
(fail_stack_elt_t): Use that union.
(PUSH_PATTERN_OP, PUSH_FAILURE_POINTER, PUSH_FAILURE_INT)
(POP_FAILURE_POINTER, POP_FAILURE_INT): Corresponding changes.
(re_compile_fastmap): Corresponding changes.
(PUSH_FAILURE_ELT): New macro.
(FAIL_STACK_TOP): Macro deleted.
(WIDE_INT): Macro deleted.
(PUSH_FAILURE_POINT): Use PUSH_FAILURE_ELT.
(POP_FAILURE_ELT): New macro.
(POP_FAILURE_POINT): Use POP_FAILURE_ELT.

29 years ago(PUSH_FAILURE_INT, POP_FAILURE_INT): Use WIDE_INT.
Richard Stallman [Sat, 29 Apr 1995 20:21:41 +0000 (20:21 +0000)]
(PUSH_FAILURE_INT, POP_FAILURE_INT): Use WIDE_INT.
(WIDE_INT): Defined (two alternate definitions).

(C_ALLOCA): Undef it, if __GNUC__.

(REGEX_ALLOCATE_STACK, REGEX_REALLOCATE_STACK)
(REGEX_FREE_STACK): New macros.
(INIT_FAIL_STACK, DOUBLE_FAIL_STACK, FREE_VARIABLES): Use them.
(re_max_failures) [REL_ALLOC]: Alternative larger initial value.
(re_compile_fastmap): Use REGEX_FREE_STACK.
(re_match_2_internal): Always call FREE_VARIABLES before returning.
Always init regstart, old_regstart, etc. whenever MATCH_MAY_ALLOCATE
is defined.
(FREE_VARIABLES) [REL_ALLOC]: Define non-trivially.

29 years agoUse __-protected versions of `format' and `printf' only with gcc-2.7 and later.
Jim Meyering [Thu, 27 Apr 1995 17:04:23 +0000 (17:04 +0000)]
Use __-protected versions of `format' and `printf' only with gcc-2.7 and later.

29 years agomerge with 1.11.f
Jim Meyering [Thu, 27 Apr 1995 06:06:46 +0000 (06:06 +0000)]
merge with 1.11.f

29 years ago(REGEX_FREE): Add back the `while (0)' hack
Jim Meyering [Thu, 27 Apr 1995 05:23:35 +0000 (05:23 +0000)]
(REGEX_FREE): Add back the `while (0)' hack
Put back ifdefs to protect unnecessary decl.

29 years agoLatest from RMS.
Jim Meyering [Thu, 27 Apr 1995 04:54:07 +0000 (04:54 +0000)]
Latest from RMS.

29 years ago(EMACS_INT): Define it to int. (BIG KLUDGE)
Jim Meyering [Wed, 26 Apr 1995 17:19:13 +0000 (17:19 +0000)]
(EMACS_INT): Define it to int.  (BIG KLUDGE)

29 years ago(REGEX_FREE): Define to `while (0) /* empty */' rather than nothing.
Jim Meyering [Wed, 26 Apr 1995 17:18:27 +0000 (17:18 +0000)]
(REGEX_FREE): Define to `while (0) /* empty */' rather than nothing.
Otherwise, some uses got warnings about empty if-clause.

Declare failure_stack_ptr only #ifdef REL_ALLOC.

29 years agoNew version from FSF.
Jim Meyering [Wed, 26 Apr 1995 17:02:38 +0000 (17:02 +0000)]
New version from FSF.

29 years agoProtect format and printf with __*__.
Jim Meyering [Mon, 24 Apr 1995 16:25:29 +0000 (16:25 +0000)]
Protect format and printf with __*__.

29 years agoFix mostly per Franc,ois' suggestions.
Jim Meyering [Sat, 22 Apr 1995 05:54:18 +0000 (05:54 +0000)]
Fix mostly per Franc,ois' suggestions.

29 years agoUpdate and add copyright.
Jim Meyering [Fri, 21 Apr 1995 17:29:15 +0000 (17:29 +0000)]
Update and add copyright.

29 years ago(re_match_2_internal): Eliminate cast of ptr to int.
Richard Stallman [Sun, 9 Apr 1995 19:14:40 +0000 (19:14 +0000)]
(re_match_2_internal): Eliminate cast of ptr to int.
(PUSH_FAILURE_ITEM, POP_FAILURE_ITEM): Macros deleted.
(PUSH_FAILURE_INT, POP_FAILURE_INT): New macros.
(PUSH_FAILURE_POINTER, POP_FAILURE_POINTER): New macros.

(re_match_2_internal): Rename label `succeed' to `succeed_label'.

29 years agomerge with 1.11.d
Jim Meyering [Tue, 21 Mar 1995 01:43:35 +0000 (01:43 +0000)]
merge with 1.11.d

29 years agosync from FSF
Jim Meyering [Mon, 20 Mar 1995 15:09:56 +0000 (15:09 +0000)]
sync from FSF

29 years ago.
Jim Meyering [Mon, 20 Mar 1995 14:26:41 +0000 (14:26 +0000)]
.

29 years ago.
Jim Meyering [Sun, 12 Mar 1995 18:21:38 +0000 (18:21 +0000)]
.

29 years agoUndef __P before defining it.
Jim Meyering [Sun, 12 Mar 1995 18:06:08 +0000 (18:06 +0000)]
Undef __P before defining it.

29 years agoMake source const.
Jim Meyering [Sun, 12 Mar 1995 15:26:36 +0000 (15:26 +0000)]
Make source const.

29 years agoUpdate from glibc.
Jim Meyering [Sun, 12 Mar 1995 15:26:09 +0000 (15:26 +0000)]
Update from glibc.

29 years ago(SET_REGS_MATCHED): Enclose if-stmt in `do {...} while(0)'
Jim Meyering [Tue, 28 Feb 1995 13:54:33 +0000 (13:54 +0000)]
(SET_REGS_MATCHED): Enclose if-stmt in `do {...} while(0)'
instead of using trailing `else' -- otherwise, gcc -Wall complains
of `empty body in an else-statement'.

29 years ago(SET_REGS_MATCHED): Enclose if-stmt in `do {...} while(0)'
Jim Meyering [Tue, 28 Feb 1995 13:46:40 +0000 (13:46 +0000)]
(SET_REGS_MATCHED): Enclose if-stmt in `do {...} while(0)'
instead of using trailing `else' -- otherwise, gcc -Wall complains
of `empty body in an else-statement'.

29 years agoAlways include system headers, but define-away any putenv prototype.
Jim Meyering [Tue, 28 Feb 1995 12:08:03 +0000 (12:08 +0000)]
Always include system headers, but define-away any putenv prototype.

29 years agoRemove sys-dependent cruft and define-away getopt in system headers
Jim Meyering [Tue, 28 Feb 1995 12:06:57 +0000 (12:06 +0000)]
Remove sys-dependent cruft and define-away getopt in system headers
instead.

29 years agoupdate from FSF
Jim Meyering [Thu, 16 Feb 1995 20:25:54 +0000 (20:25 +0000)]
update from FSF

29 years ago(SOURCES): Add memcmp.c, memcpy.c, and memset.c.
Jim Meyering [Sat, 11 Feb 1995 14:11:36 +0000 (14:11 +0000)]
(SOURCES): Add memcmp.c, memcpy.c, and memset.c.

29 years ago.
Jim Meyering [Sat, 11 Feb 1995 14:02:02 +0000 (14:02 +0000)]
.

29 years ago.
Jim Meyering [Fri, 27 Jan 1995 19:32:16 +0000 (19:32 +0000)]
.

29 years ago(get_fs_usage, statfs): Use safe_read, and safe_stat rather than
Jim Meyering [Fri, 27 Jan 1995 17:20:54 +0000 (17:20 +0000)]
(get_fs_usage, statfs): Use safe_read, and safe_stat rather than
bare read and stat.

29 years agoDeclare errno if it's not defined.
Jim Meyering [Fri, 27 Jan 1995 17:16:56 +0000 (17:16 +0000)]
Declare errno if it's not defined.
Rename SAFE_STAT to safe_stat.

29 years agoDeclare errno if it's not defined.
Jim Meyering [Fri, 27 Jan 1995 17:16:19 +0000 (17:16 +0000)]
Declare errno if it's not defined.

29 years ago(DEFS): Remove -Dlint.
Jim Meyering [Fri, 27 Jan 1995 17:09:18 +0000 (17:09 +0000)]
(DEFS): Remove -Dlint.
(DISTFILES): Add error.h.

29 years agoRename SAFE_STAT to safe_stat.
Jim Meyering [Fri, 27 Jan 1995 17:05:11 +0000 (17:05 +0000)]
Rename SAFE_STAT to safe_stat.

29 years ago.
Jim Meyering [Fri, 27 Jan 1995 15:35:17 +0000 (15:35 +0000)]
.

29 years ago(basename): Use strrchr, not rindex.
Jim Meyering [Fri, 27 Jan 1995 15:23:48 +0000 (15:23 +0000)]
(basename): Use strrchr, not rindex.
[!STDC_HEADERS && !HAVE_STRING_H]: Define strrchr to rindex.

29 years ago.
Jim Meyering [Fri, 27 Jan 1995 15:01:25 +0000 (15:01 +0000)]
.

29 years ago.
Jim Meyering [Fri, 27 Jan 1995 15:00:54 +0000 (15:00 +0000)]
.

29 years ago.
Jim Meyering [Fri, 27 Jan 1995 14:41:51 +0000 (14:41 +0000)]
.

29 years ago.
Jim Meyering [Fri, 27 Jan 1995 05:37:03 +0000 (05:37 +0000)]
.

29 years agoRemove/rewrite some comments.
Jim Meyering [Fri, 27 Jan 1995 05:36:14 +0000 (05:36 +0000)]
Remove/rewrite some comments.

29 years ago.
Jim Meyering [Fri, 27 Jan 1995 05:22:23 +0000 (05:22 +0000)]
.

29 years ago[!emacs] (SWITCH_ENUM_CAST): New macro, from emacs/lisp.h
Karl Heuer [Wed, 18 Jan 1995 20:47:36 +0000 (20:47 +0000)]
[!emacs] (SWITCH_ENUM_CAST): New macro, from emacs/lisp.h
(re_compile_fastmap, re_match_2_internal): Use that macro instead of testing
SWITCH_ENUM_BUG.

29 years agoSee log in textutils/lib/.
Jim Meyering [Sun, 8 Jan 1995 19:33:34 +0000 (19:33 +0000)]
See log in textutils/lib/.

29 years ago(regex_compile): Use putchar, not printchar.
Richard Stallman [Fri, 30 Dec 1994 23:28:45 +0000 (23:28 +0000)]
(regex_compile): Use putchar, not printchar.

29 years ago(SET_REGS_MATCHED): Do nothing if set_regs_matched_done is 1.
Richard Stallman [Sat, 24 Dec 1994 23:40:43 +0000 (23:40 +0000)]
(SET_REGS_MATCHED): Do nothing if set_regs_matched_done is 1.
Set set_regs_matched_done to 1.
(re_match_2_internal): New local var set_regs_matched_done.
Set it to 0 when appropriate.
(POP_FAILURE_POINT): Set set_regs_matched_done to 0.

(re_match_2_internal, case duplicate): Call SET_REGS_MATCHED.

29 years agoRearrange to accept a user-specified set of suffix chars (must be
Jim Meyering [Thu, 22 Dec 1994 05:10:32 +0000 (05:10 +0000)]
Rearrange to accept a user-specified set of suffix chars (must be
a subset of master list), each with a hard-coded value.

29 years ago.
Jim Meyering [Tue, 20 Dec 1994 05:05:55 +0000 (05:05 +0000)]
.

29 years ago.
Jim Meyering [Tue, 20 Dec 1994 04:17:23 +0000 (04:17 +0000)]
.

29 years ago[REG_UNSET_VALUE]: Define to the address of a static variable rather than to
Jim Meyering [Sun, 11 Dec 1994 23:16:11 +0000 (23:16 +0000)]
[REG_UNSET_VALUE]: Define to the address of a static variable rather than to
((char *) -1).  The latter got a warning on IRIX64.

29 years ago(safe_read): Get this function from gcc's cccp.c.
Jim Meyering [Sat, 10 Dec 1994 22:00:12 +0000 (22:00 +0000)]
(safe_read): Get this function from gcc's cccp.c.

29 years agoGet putenv.c from /copies (derived from glibc).
Jim Meyering [Sun, 4 Dec 1994 21:08:50 +0000 (21:08 +0000)]
Get putenv.c from /copies (derived from glibc).
Hack it to work with SGI's __environ junk.

29 years ago(gettext): Make sure this is always defined, even #if emacs.
Karl Heuer [Thu, 1 Dec 1994 22:59:35 +0000 (22:59 +0000)]
(gettext): Make sure this is always defined, even #if emacs.
(NULL): No need to #undef this anymore; Emacs uses NILP now.

29 years ago(re_compile_pattern, re_comp, regerror): Add gettext wrapper.
Paul Eggert [Tue, 29 Nov 1994 16:25:39 +0000 (16:25 +0000)]
(re_compile_pattern, re_comp, regerror): Add gettext wrapper.
(re_error_msgid): Renamed from `re_error_msg', for consistency
with other source files that declare arrays of message ids.
Identifiers ending in `msgid' are special to to some prototype
message-extracting utilities.
Make "Success" be the 0th entry, so it can be extracted too.
(re_comp): Replace "Memory exhausted" with
re_error_msgid[REG_ESPACE], to aid message consistency.

29 years ago.
Jim Meyering [Mon, 21 Nov 1994 14:23:15 +0000 (14:23 +0000)]
.

29 years ago(re_compile_fastmap): Really, really treat `succeed' like end.
Richard Stallman [Sat, 19 Nov 1994 13:57:27 +0000 (13:57 +0000)]
(re_compile_fastmap): Really, really treat `succeed' like end.

29 years ago(re_compile_fastmap): Really treat `succeed' like end.
Richard Stallman [Sat, 19 Nov 1994 10:37:38 +0000 (10:37 +0000)]
(re_compile_fastmap): Really treat `succeed' like end.

29 years ago(re_compile_fastmap): Treat `succeed' like end of pattern.
Karl Heuer [Fri, 18 Nov 1994 01:04:41 +0000 (01:04 +0000)]
(re_compile_fastmap): Treat `succeed' like end of pattern.

29 years ago(re_opcode_t): New opcode `succeed'
Richard Stallman [Wed, 16 Nov 1994 20:29:39 +0000 (20:29 +0000)]
(re_opcode_t): New opcode `succeed'
(re_match_2_internal): Handle `succeed'.
(regex_compile): Handle RE_NO_BACKTRACKING.
(re_syntax_options): Delete initializer.

29 years ago(RE_NO_POSIX_BACKTRACKING): New macro.
Richard Stallman [Wed, 16 Nov 1994 20:28:48 +0000 (20:28 +0000)]
(RE_NO_POSIX_BACKTRACKING): New macro.

29 years ago(SOURCES): Add strtol.c.
Jim Meyering [Fri, 11 Nov 1994 16:10:16 +0000 (16:10 +0000)]
(SOURCES): Add strtol.c.

29 years agomerge with 1.12
Jim Meyering [Sun, 6 Nov 1994 17:51:31 +0000 (17:51 +0000)]
merge with 1.12

29 years agoInitial revision
Jim Meyering [Sun, 6 Nov 1994 17:40:20 +0000 (17:40 +0000)]
Initial revision

29 years agomerge with 3.10
Jim Meyering [Sat, 5 Nov 1994 13:37:49 +0000 (13:37 +0000)]
merge with 3.10

29 years agomerge with 3.9u1
Jim Meyering [Fri, 4 Nov 1994 16:50:15 +0000 (16:50 +0000)]
merge with 3.9u1

29 years agoChange _P to __P.
Jim Meyering [Fri, 4 Nov 1994 14:04:43 +0000 (14:04 +0000)]
Change _P to __P.