gnulib.git
28 years agoDeclare xmalloc, xrealloc rather than including xalloc.h. SH-UTILS-1_12a
Jim Meyering [Mon, 7 Aug 1995 22:21:03 +0000 (22:21 +0000)]
Declare xmalloc, xrealloc rather than including xalloc.h.

28 years agoAdd FIXME comments.
Jim Meyering [Mon, 7 Aug 1995 16:07:28 +0000 (16:07 +0000)]
Add FIXME comments.

28 years ago(isnumber): Rename to is_number.
Jim Meyering [Sat, 5 Aug 1995 03:13:16 +0000 (03:13 +0000)]
(isnumber): Rename to is_number.
(parse_user_spec): Rename uses, too.

28 years ago(SOURCES, OBJECTS, DISTFILES): Update for new files, save-cwd.[ch].
Jim Meyering [Sat, 5 Aug 1995 03:08:09 +0000 (03:08 +0000)]
(SOURCES, OBJECTS, DISTFILES): Update for new files, save-cwd.[ch].

28 years ago.
Jim Meyering [Fri, 4 Aug 1995 15:23:25 +0000 (15:23 +0000)]
.

28 years ago(SOURCES, OBJECTS, DISTFILES): Update for new files.
Jim Meyering [Fri, 4 Aug 1995 15:15:24 +0000 (15:15 +0000)]
(SOURCES, OBJECTS, DISTFILES): Update for new files.

28 years ago. textutils-1_12_1
Jim Meyering [Fri, 4 Aug 1995 15:09:12 +0000 (15:09 +0000)]
.

28 years ago(_getopt_internal) [lint]: Initialize INDFOUND to
Jim Meyering [Fri, 4 Aug 1995 14:30:19 +0000 (14:30 +0000)]
(_getopt_internal) [lint]: Initialize INDFOUND to
avoid warning from gcc.

28 years agoNew version -- now derived from the line in libc.
Jim Meyering [Sun, 30 Jul 1995 18:42:09 +0000 (18:42 +0000)]
New version -- now derived from the line in libc.

28 years agoGet new copy from FSF.
Jim Meyering [Sun, 30 Jul 1995 05:30:04 +0000 (05:30 +0000)]
Get new copy from FSF.

28 years ago[memcpy]: Define to bcopy if needed.
Jim Meyering [Sun, 30 Jul 1995 05:12:30 +0000 (05:12 +0000)]
[memcpy]: Define to bcopy if needed.
(md5_buffer): Explicitely cast SWAP expressions to unsigned
to avoid warning.

28 years ago(md5_stream): Update prototype.
Jim Meyering [Fri, 21 Jul 1995 04:48:03 +0000 (04:48 +0000)]
(md5_stream): Update prototype.
[__P]: Define macro.

28 years ago(md5_stream): Check for read failure and return
Jim Meyering [Fri, 21 Jul 1995 04:46:50 +0000 (04:46 +0000)]
(md5_stream): Check for read failure and return
indication of success rather than second argument.

28 years ago.
Jim Meyering [Thu, 20 Jul 1995 17:52:49 +0000 (17:52 +0000)]
.

28 years agoFix conditional.
Karl Heuer [Mon, 17 Jul 1995 23:24:57 +0000 (23:24 +0000)]
Fix conditional.

28 years agoDon't use relocatable allocator.
Richard Stallman [Fri, 7 Jul 1995 13:20:16 +0000 (13:20 +0000)]
Don't use relocatable allocator.

28 years agomerge with 1.12a
Jim Meyering [Sat, 24 Jun 1995 22:02:25 +0000 (22:02 +0000)]
merge with 1.12a

28 years agoUse `defined' to test HAVE_STRING_H and STDC_HEADERS.
Richard Stallman [Tue, 20 Jun 1995 03:11:14 +0000 (03:11 +0000)]
Use `defined' to test HAVE_STRING_H and STDC_HEADERS.

28 years agomerge with 1.12
Jim Meyering [Sun, 18 Jun 1995 19:33:31 +0000 (19:33 +0000)]
merge with 1.12

28 years agomerge with 1.11.5b
Jim Meyering [Thu, 15 Jun 1995 16:46:34 +0000 (16:46 +0000)]
merge with 1.11.5b

28 years agoAlloca fix for ConvexOS-11.0.
Jim Meyering [Thu, 15 Jun 1995 14:55:26 +0000 (14:55 +0000)]
Alloca fix for ConvexOS-11.0.

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.