Paul Eggert [Tue, 23 Aug 2005 18:48:31 +0000 (18:48 +0000)]
* regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
All contents moved to gl_REGEX.
(gl_REGEX): Don't bother checking whether lib/regex.c exists;
assume that it does.
Paul Eggert [Sun, 21 Aug 2005 05:01:20 +0000 (05:01 +0000)]
* config/srclist.txt: Add glibc bug 1227.
* lib/regexec.c (sift_states_bkref): Fix portability bug: the code
assumed that reg_errcode_t is a signed type, which is not
necessarily true if _XOPEN_SOURCE is not defined.
Paul Eggert [Sun, 21 Aug 2005 03:31:45 +0000 (03:31 +0000)]
* config/srclist.txt: Add glibc bug 1226.
* lib/regex_internal.c (calc_state_hash): Put 'inline' before type, since
some compilers warn about it otherwise.
* lib/regex_internal.h:
(re_string_allocate, re_string_construct, re_string_reconstruct):
(re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
(build_upper_buffer, re_string_translate_buffer, re_string_destruct):
(re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
(re_string_context_at, re_string_peek_byte_case):
(re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
is defined, since we now use prototypes always.
* lib/regex.h (_RE_ARGS): Remove. No longer needed, since we assume
C89 or better. All uses removed.
Paul Eggert [Sat, 20 Aug 2005 00:02:22 +0000 (00:02 +0000)]
(duplicate_node): Return new index, not an error code,
and let the caller return REG_ESPACE if out of space. This
removes an uninitialied-variable warning with GCC 4.0.1, and also
avoids taking the address of a local variable. All callers
changed.
Jim Meyering [Fri, 19 Aug 2005 09:21:57 +0000 (09:21 +0000)]
Make the %s format (seconds since the epoch) work for a negative
number and when used with a zero-padded field width, e.g. %015s.
(my_strftime): Move the `do_number_sign_and_padding'
label so that it precedes the code to set `digits'. Otherwise,
%0Ns wouldn't work. Before this change, `date -d @-22 +%05s' would
print `00-22'. Now, it prints `-0022', as it should.
Paul Eggert [Tue, 16 Aug 2005 18:45:50 +0000 (18:45 +0000)]
* m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
of gl_GETOPT_SUBSTITUTE. That way, if both gl_GETOPT_SUBSTITUTE
and gl_GETOPT are both invoked via different paths (as happens
with GNU tar CVS because it uses both argp and getopt), the former
wins.
Paul Eggert [Tue, 16 Aug 2005 00:07:03 +0000 (00:07 +0000)]
* config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
Add comments for each pending glibc patch.
* lib/regex.h (__restrict_arr): Don't define to __restrict if
__cplusplus is defined.
Jim Meyering [Sun, 14 Aug 2005 14:45:49 +0000 (14:45 +0000)]
(setup_dir, enter_dir, leave_dir, free_dir):
Use the hash-table-based cycle-detection code not just when
FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
Reported by James Youngman in
<http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
Jim Meyering [Sun, 14 Aug 2005 14:45:16 +0000 (14:45 +0000)]
(fts_cross_check) [FTS_DEBUG]: s/active_dir_ht/fts_cycle.ht/.
This lets us compile with -DFTS_DEBUG, once again.
[! _LIBC]: Include "lstat.h" rather than rolling our own.
(fd_safer): Remove decl.
Include fcntl--.h rather than unistd-safer.h
(fts_safe_changedir): Don't call fd_safer; no longer needed
now that we include fcntl--.h.
Simon Josefsson [Fri, 12 Aug 2005 09:16:15 +0000 (09:16 +0000)]
* MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
readline, getdelim and check_version.
(Support for systems lacking ISO C 99: Sizes of integer types):
Add size_max.
Paul Eggert [Tue, 26 Jul 2005 21:55:31 +0000 (21:55 +0000)]
Add support to getopt for Emacs, which doesn't use LIBOBJS in the
normal way.
* getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
(gl_GETOPT_SUBSTITUTE): Use it. Invoke gl_PREREQ_GETOPT.
(gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
(gl_GETOPT): Use the new macros. Most of the implementation
is moved to the new macros. This is for programs like Emacs
that don't want all the functionality of gl_GETOPT.
Paul Eggert [Thu, 14 Jul 2005 22:15:14 +0000 (22:15 +0000)]
* modules/argp (Depends-on): Remove unlocked-io.
* m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
Instead, test for *_unlocked function declarations directly.
Paul Eggert [Mon, 11 Jul 2005 21:58:02 +0000 (21:58 +0000)]
* version-etc-fsf.c (version_etc_copyright): Parameterize the
copyright symbol and the year.
* version-etc.c (COPYRIGHT_YEAR): New constant.
(version_etc_va): Use parameterized copyright notice.
Reword to conform to the current GNU coding standards.