|
4a36ce85
|
2007-01-09T14:08:40
|
|
New modules 'unistr/u8-chr', 'unistr/u16-chr', 'unistr/u32-chr'.
|
|
56c57655
|
2007-01-09T14:06:19
|
|
New modules 'unistr/u8-check', 'unistr/u16-check', 'unistr/u32-check'.
|
|
6b714985
|
2007-01-09T14:04:09
|
|
New module 'unistr/u32-to-u16'.
|
|
058fd7b7
|
2007-01-09T14:03:41
|
|
New module 'unistr/u32-to-u8'.
|
|
6c05a9d3
|
2007-01-09T14:03:21
|
|
New module 'unistr/u16-to-u32'.
|
|
3e1e3ce5
|
2007-01-09T14:02:57
|
|
New module 'unistr/u16-to-u8'.
|
|
74ed96dc
|
2007-01-09T14:02:33
|
|
New module 'unistr/u8-to-u32'.
|
|
8c7c9cbc
|
2007-01-09T14:02:07
|
|
New module 'unistr/u8-to-u16'.
|
|
5624c923
|
2007-01-09T14:01:45
|
|
New module 'unistr/base'.
|
|
93d45a6c
|
2007-01-08T21:31:56
|
|
2007-01-08 Bruno Haible <bruno@clisp.org>
* m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
* lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
PROVIDE_CANONICALIZE_FILENAME_MODE.
* modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
|
|
25d88ed1
|
2007-01-08T21:28:13
|
|
2007-01-08 Bruno Haible <bruno@clisp.org>
* m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
* lib/fts_.h (_LGPL_PACKAGE): Remove macro.
Use !GNULIB_FTS instead of _LGPL_PACKAGE.
* lib/fts.c: Likewise.
* modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
|
|
c9426d5f
|
2007-01-08T20:48:03
|
|
Move module indicator macros from *.m4 files to the module descriptions.
|
|
91280b0c
|
2007-01-08T20:38:06
|
|
New module 'utf16-ucs4-safe'.
|
|
ba2ed107
|
2007-01-08T20:37:38
|
|
New module 'utf8-ucs4-safe'.
|
|
c319d937
|
2007-01-08T20:35:06
|
|
Move out the body of the conversion function to a compilation unit of its own.
Use unitypes.h.
|
|
dcab3e21
|
2007-01-08T20:29:19
|
|
Basic types for Unicode strings.
|
|
729cf458
|
2007-01-08T10:32:58
|
|
Use a more robust test for a "can't happen" condition.
* lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
narrowed the st_size value. Presuming the "can't happen" condition
is true, that narrowing could conceivably convert an invalid st_size
value into a valid one. Instead, use a change based on Matthew
Woehlke's original patch.
|
|
7ea63ac2
|
2007-01-08T10:30:47
|
|
Slight readability improvement: use an assert-like macro
in place of literal "abort ()" uses.
* lib/fts.c (fts_assert): Define.
(fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
Use this macro instead of a bare 'abort'.
|
|
58e95e4c
|
2007-01-06T00:27:48
|
|
Don't worry about using IRIX 5.3's wctype.h broken definitions;
simply work around them.
* lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
(iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
(iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before declaring.
Don't bother to define as macros, since the standard doesn't require it.
* m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
longer worry about IRIX 5.3.
(HAVE_WCTYPE_CTMP_BUG): Remove.
|
|
aec89f84
|
2007-01-04T19:21:42
|
|
* lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
not wint_t. Also, include <ctype.h>, to fix another IRIX bug.
* m4/wctype.m4 (gl_WCTYPE_H): Likewise.
Problems reported by Georg Schwarz for IRIX 5.3.
|
|
ceb9fb55
|
2007-01-03T10:51:18
|
|
2007-01-03 Paolo Bonzini <bonzini@gnu.org>
Yoann Vandoorselaere <yoann.v@prelude-ids.com>
* lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
sockets, server sockets, and other file descriptors. Count errors
to compute the return value. Reorder the code a bit to be easier
to follow. Don't set event bits that were not requested (except
POLLERR and POLLHUP).
|
|
1a6dff24
|
2007-01-01T15:08:01
|
|
* lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
|
|
4ce19625
|
2006-12-30T23:27:20
|
|
* lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
Define. Trivial patch from Henning Nielsen Lund, originally
sent to bug-grep@gnu.org today.
|
|
c1c022da
|
2006-12-29T19:33:46
|
|
* lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
struct stat. Problem reported by Henning Nielsen Lund.
* lib/acl.c: Include acl.h first, to check interface. Don't
bother to include sys/types.h and sys/stat.h again.
|
|
01b89fc9
|
2006-12-28T23:36:43
|
|
Import the following change from libc; problem reported by
Sven Verdoolaege.
2005-10-13 Ulrich Drepper <drepper@redhat.com>
[BZ #1373]
* lib/argp.h: Remove __NTH for __argp_usage inline function.
|
|
db844e48
|
2006-12-27T19:54:25
|
|
* lib/mbchar.h: Just include <wctype.h>; the wctype module
handles its gotchas now.
* lib/mbswidth.c: Likewise.
* lib/wcwidth.h: Likewise.
* m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
and iswcntrl; the wctype module does this stuff now.
* m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
* m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
* modules/mbchar (Depends-on): Add wctype.
* modules/mbswidth (Depends-on): Likewise.
* modules/wcwidth (Depends-on): Likewise.
|
|
aafb133a
|
2006-12-27T13:19:04
|
|
* lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
module uses more than what <wctype.h> is required to provide.
|
|
242003f6
|
2006-12-24T17:08:04
|
|
Work around an fchownat bug in glibc-2.4:
http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
in spite of the -P option.
* m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
New macros.
(gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
* modules/openat (Files): Add lib/fchownat.c.
* lib/openat.c (fchownat): Don't define here. Move to...
* lib/fchownat.c: ...this new file.
|
|
1982cd6d
|
2006-12-24T07:55:08
|
|
Fix bug reported by Bruno Haible in
<http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
where quotearg.c didn't compile on Mac OS X 10.2 because it
lacks <wchar.h> and wint_t.
* lib/wctype_.h (__wctype_wint_t): New type.
Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
(iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
(iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
Arg is now of type __wctype_wint_t, not wint_t.
* m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
substitute HAVE_WINT_T.
* modules/wctype (Files): Add m4/wint_t.m4.
(wctype.h): Substitute HAVE_WINT_T.
|
|
5491309d
|
2006-12-23T21:31:59
|
|
* lib/safe-read.h [C++]: Wrap declarations in extern "C".
From Bruno Haible.
|
|
39d80bf8
|
2006-12-23T15:43:03
|
|
Test HAVE_READLINK instead of S_ISLNK.
|
|
279ec3ae
|
2006-12-22T18:56:01
|
|
Preserve ACLs while copying.
|
|
5feb4001
|
2006-12-22T16:27:26
|
|
Add comments.
|
|
44fa0d78
|
2006-12-22T00:21:54
|
|
* MODULES.html.sh: New module wctype.
* lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
* lib/fnmatch.c: Don't bother to include <wchar.h> before
<wctype.h>, since the new wctype module should fix this.
* lib/quotearg.c: Include <wctype.h> unconditionally, since
the wctype module should arrange for it.
* lib/regex_internal.h: Likewise.
* m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
since the wctype module should handle this now.
* m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
* modules/fnmatch (Depends-on): Add wctype.
* modules/quotearg (Depends-on): Likewise.
* modules/regex (Depends-on): Likewise.
|
|
077d6cd0
|
2006-12-19T17:17:04
|
|
Make it usable in C++ mode.
|
|
f3e4befc
|
2006-12-18T18:04:20
|
|
* lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
This is more consistent with the other defines here.
* m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
Port to z/OS. Problem reported by Paul Gilmartin.
Change local vars to use gl_ prefix rather than ac_.
Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
with other defines.
* modules/double-slash-root: New module.
* modules/dirname (Files): Remove m4/double-slash-root.m4.
(Depends-on): Add double-slash-root.
* MODULES.html.sh (File system functions): Mention new module.
|
|
173f47e7
|
2006-12-14T18:47:36
|
|
* lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
(yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
This is for the benefit of gzip, which doesn't do i18n.
|
|
e99d55c5
|
2006-12-12T12:50:14
|
|
Merge changes from the haible-private branch.
|
|
e7641b56
|
2006-12-05T18:13:50
|
|
Prefer fd < 0 to ! (0 <= fd).
|
|
e79ca436
|
2006-12-05T18:09:17
|
|
* lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
workaround for this case. It is not autoconfigured now; offhand
it's hard to see how to autoconfigure it.
|
|
d7df3247
|
2006-12-04T07:23:36
|
|
* lib/mkdir-p.c (make_dir_parents): Fix race condition when making
a directory that is about to be chowned. Such a directory's
initial file permissions should permit the owner only and this
should not be changed until after the chown, since the group and
other bits would be incorrect if they granted permission before
the chown.
|
|
6bc7a029
|
2006-12-04T06:41:56
|
|
* lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
* lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
* m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
* m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
|
|
a98bbee4
|
2006-12-03T10:23:10
|
|
* lib/fts.c (fts_load): Don't set sp->fts_dev here, since
p->fts_statp may not yet be defined.
(fts_read): Instead, set it in the caller, once p->fts_statp is
sure to be defined, and corresponds to a top-level directory.
|
|
b0cf73ef
|
2006-11-28T08:35:51
|
|
* lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
warning from "gcc -Wshadow" about shadowing the builtin.
|
|
ec5206cf
|
2006-11-27T19:41:42
|
|
* lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
|
|
8a7c1b76
|
2006-11-27T14:17:38
|
|
Avoid using variable size arrays if gcc does not allow them.
|
|
564569a4
|
2006-11-27T07:15:26
|
|
Fix some incompatibilities with gcc -ansi -pedantic.
* lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
if compiling pedantically with GCC, unless it's C99 or later.
Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
it mishandles gcc -ansi -pedantic as well.
* lib/regex_internal.h (re_token_t): Don't use enum bitfields
if gcc -pedantic.
* lib/regexec.c (check_node_accept_bytes): Don't use auto
initializers for struct if -pedantic, unless it's C99 or later.
|
|
a6eeca79
|
2006-11-23T20:18:34
|
|
* lib/sincosl.c (kernel_sinl): Fix typo in threshold.
|
|
96ebe3fc
|
2006-11-22T23:48:30
|
|
Work around a compile-time error from the HP-UX 11.00 /bin/cc.
* lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
(fts_read): Use a temporary to narrow the overused st_size member
before using it in a switch statement. Reported by Matthew Woehlke.
|
|
f8a6c13a
|
2006-11-21T09:15:22
|
|
* lib/fts.c (fts_safe_changedir): Move a declaration "up",
so as to remain compatible with older compilers.
Patch from Michael Deutschmann.
|
|
94313593
|
2006-11-20T23:33:31
|
|
The beginnings of syntax-related checks for gnulib.
* lib/Makefile: New file.
* lib/t-idcache: New script. Ensure that the two halves of
idcache.c stay in sync.
|
|
229b2a01
|
2006-11-20T22:01:30
|
|
* lib/openat.h (rpl_fstatat): New macro, if
[HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
(fstatat): Define to rpl_fstatat under the same conditions,
unless COMPILING_FSTATAT.
* m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
seems to have the bug.
* lib/fstatat.c: New file.
* modules/openat (Files): Add it.
|
|
2ff952c8
|
2006-11-20T13:08:38
|
|
* lib/idcache.c: Adjust comments in user- and group- portions to
be more accurate, and to be consistent with one another.
|
|
611fb5fc
|
2006-11-20T10:54:06
|
|
* lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
continue using the flexible array member (thus, this module performs
half as many malloc calls), with the addition that...
(getgroup, getuser): Consistently record a non-match via an empty
"name" string, and map an empty string match to a NULL return value.
* modules/idcache (Depends-on): Re-add flexmember.
|
|
e5a4188f
|
2006-11-20T09:30:51
|
|
* lib/idcache.c (getuser): Remove all uses of the register keyword.
(getuidbyname, getgroup, getgidbyname): Likewise.
|
|
8d35036b
|
2006-11-20T09:25:38
|
|
Use cleaner syntax: NULL rather than 0.
* lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
|
|
d1f50b65
|
2006-11-20T09:10:18
|
|
* lib/idcache.c: Undo most recent patch, dated 2006-11-06.
It mishandled the case where the group was missing.
Problem reported by Greg Schafer.
* modules/idcache: Likewise.
|
|
4f9d72ba
|
2006-11-17T13:47:43
|
|
Revert Jim's 2006-10-23 patch.
|
|
d9518c44
|
2006-11-13T14:30:13
|
|
* lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
element, not its node.
|
|
7f01591a
|
2006-11-12T17:35:38
|
|
Make fts (in FTS_CWDFD mode) more efficient by caching a few open
file descriptors. This also averts a failure on systems with
native openat support when a traversed directory lacks "x" access.
* lib/fts_.h: Include "i-ring.h"
(struct FTS) [fts_fd_ring]: New member.
* lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
(FCHDIR): Add parentheses.
(fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
(cwd_advance_fd): Add a 3rd parameter. Adjust all callers.
When descending, rather than simply closing the previous
fts_cwd_fd value, push that file descriptor onto the ring.
(same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
(fts_open): Initialize the new fd_ring member.
(fts_close): Clear the ring.
(fts_safe_changedir): When possible, use our new fd_ring to skip
the diropen and fstat and dev/ino comparison that would normally
accompany a virtual `chdir ("..")'.
* modules/fts (Depends-on): Add i-ring.
* modules/i-ring: New module.
* lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
* m4/i-ring.m4: New file.
|
|
e71c251f
|
2006-11-10T22:22:31
|
|
* lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
|
|
1606cfe3
|
2006-11-10T14:49:09
|
|
Avoid unused variable warnings with gcc.
|
|
2d90a49d
|
2006-11-10T01:03:39
|
|
* lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
Problem reported by Matthew Woehlke.
|
|
8446c680
|
2006-11-09T18:49:46
|
|
* lib/tempname.c (gen_tempname): Remove variant that invokes
__gen_tempname.
* m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
__gen_tempname.
|
|
96159f3a
|
2006-11-08T20:13:12
|
|
* lib/quotearg.h (quotearg_free): New decl.
* lib/quotearg.c (quotearg_free): New function.
(slot0, nslots, slotvec0, slotvec):
Now file-scope so that quotearg_free can get at them.
|
|
dc479a4b
|
2006-11-08T13:49:24
|
|
* lib/fts.c (fts_safe_changedir): Add a comment.
|
|
dce86ec4
|
2006-11-08T07:42:26
|
|
* lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
It's already included if !_LIBC.
|
|
8cdbf8e5
|
2006-11-08T00:22:30
|
|
* lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
definitions up, to avoid colliding with change below.
(static_inline) [HAVE_INLINE]: New macro.
(xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
Provide extern decls when !HAVE_INLINE. Do not define unless
static_inline is defined, either by us or by xmalloc.c. Use
static_inline rather than static inline.
(XCALLOC): Optimize sizeof(T) = 1 case.
* lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
2006-11-07 Bruno Haible <bruno@clisp.org>
* lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
* m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
AC_C_INLINE.
* modules/xalloc (Files): Add m4/inline.m4.
|
|
9017ec62
|
2006-11-07T14:24:05
|
|
More uses of XMALLOC, XNMALLOC and XCALLOC.
|
|
11f037c2
|
2006-11-07T13:53:52
|
|
ANSI C comment style.
|
|
8ffedb4a
|
2006-11-06T22:02:53
|
|
* lib/idcache.c: Include <stddef.h>, for offsetof.
(struct userid.name): Change from char * to a flexible array member.
All uses changed.
* modules/idcache (Depends-on): Add flexmember.
|
|
ac2a728a
|
2006-11-06T21:24:35
|
|
* lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
inline functions that are identical with the old xnmalloc_inline,
xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c. This is so
that we can avoid some unnecessary integer multiplications and
divisions in the common case where the element size is known at
compile time.
(XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
needed.
(xnboundedmalloc): Remove.
(XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
arguments, for consistency with rest of this header.
(xcharalloc): Rewrite using XNMALLOC.
* lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
(xnrealloc, x2nrealloc_inline, x2nrealloc): Remove. The *_inline
versions have been moved to lib/xalloc.h and renamed to be the
non-*_inline versions.
(xmalloc, xrealloc): Implement without reference to the xnmalloc
and xnrealloc functions, since those functions are now inline and
now call us.
(x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
renaming described above.
|
|
d5f7e64d
|
2006-11-06T18:21:34
|
|
* MODULES.html.sh (File system functions): New module
canonicalize-lgpl.
* lib/canonicalize.h: Add comments for canonicalize_filename_mode
and canonicalize_file_name.
* lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
* modules/canonicalize-lgpl: New files.
|
|
62fee309
|
2006-11-06T13:03:51
|
|
ANSI C compliance.
|
|
7c6d5072
|
2006-11-06T13:03:10
|
|
Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
|
|
2c4a44a5
|
2006-11-06T12:55:16
|
|
Avoid name mangling in C++ mode.
|
|
c437773f
|
2006-11-03T23:17:27
|
|
* lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
(CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
* m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
Check for functions and headers just once.
Check for declaration of canonicalize_file_name.
Define PROVIDE_CANONICALIZE_FILENAME_MODE.
|
|
5e108157
|
2006-11-01T20:48:47
|
|
Fix clash of strncasecmp prototypes in C++ mode.
|
|
9bf04ecd
|
2006-11-01T20:42:35
|
|
Avoid conflict declaration in <string.h> (in C++ mode).
|
|
66675a0e
|
2006-11-01T20:30:39
|
|
Make it compile in C++ mode.
|
|
4af8a138
|
2006-11-01T16:49:05
|
|
* lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
|
|
88cdb9bc
|
2006-11-01T13:29:08
|
|
2006-10-29 Bruno Haible <bruno@clisp.org>
Make it compile in C++ mode.
* lib/full-write.c (full_rw): Add a cast.
|
|
7b9878d5
|
2006-11-01T13:14:15
|
|
* lib/getopt_.h: Fix comments.
|
|
81a77bdd
|
2006-11-01T03:46:10
|
|
* modules/tmpdir (Depends-on): Add sys_stat.
* modules/mkdtemp (Depends-on): Add tempname, drop unistd.
* lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
* lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
* m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
tempname.
|
|
08262434
|
2006-10-31T21:51:45
|
|
Avoid some C++ diagnostics reported by Bruno Haible.
* lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
xmalloc.
(quotearg_alloc): Use xcharalloc rather than xmalloc.
(struct slotvec): Move to top level.
(quotearg_n_options): Rewrite to avoid xmalloc.
* lib/xalloc.h (xcharalloc): New function.
* (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
[defined __cplusplus]: Add function template that provides result
type propagation. This part of the change is from Bruno Haible.
|
|
20668199
|
2006-10-31T19:18:54
|
|
Make it compile in C++ mode.
|
|
a2a18793
|
2006-10-31T19:16:02
|
|
New module 'tsearch'.
|
|
a42e0dae
|
2006-10-29T21:52:55
|
|
* lib/arcfour.c: Assume config.h.
* lib/arctwo.c: Likewise.
* lib/base64.c: Likewise.
* lib/check-version.c: Likewise.
* lib/crc.c: Likewise.
* lib/des.c: Likewise.
* lib/gc-gnulib.c: Likewise.
* lib/gc-libgcrypt.c: Likewise.
* lib/gc-pbkdf2-sha1.c: Likewise.
* lib/getaddrinfo.c: Likewise.
* lib/getdelim.c: Likewise.
* lib/getline.c: Likewise.
* lib/hmac-md5.c: Likewise.
* lib/hmac-sha1.c: Likewise.
* lib/iconvme.c: Likewise.
* lib/md2.c: Likewise.
* lib/md4.c: Likewise.
* lib/memxor.c: Likewise.
* lib/read-file.c: Likewise.
* lib/readline.c: Likewise.
* lib/rijndael-alg-fst.c: Likewise.
* lib/rijndael-api-fst.c: Likewise.
* lib/xgetdomainname.c: Likewise.
|
|
d9b2d71d
|
2006-10-28T18:21:16
|
|
* lib/xstrndup.c: Assume config.h.
|
|
76cfe20c
|
2006-10-27T20:46:43
|
|
Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
stat-macros.h is now for our own macros, whereas stat_h is for
macros in the <sys/stat.h> name space.
* lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
(STAT_MACROS_H): Remove.
(S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
(S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
(S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
(S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
(S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
(S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
Move these macros to ...
* lib/stat_.h: here. Don't include stat-macros.h.
* lib/canonicalize.c: Don't include stat-macros.h.
* lib/chown.c: Likewise.
* lib/euidaccess.c: Likewise.
* lib/file-type.c: Likewise.
* lib/filemode.c: Likewise.
* lib/glob.c: Likewise.
* lib/isapipe.c: Likewise.
* lib/lchown.c: Likewise.
* lib/lstat.c: Likewise.
* lib/mkdir-p.c: Likewise.
* lib/rmdir.c: Likewise.
* m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
* m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
unless mkdir isn't declared, to speed up 'configure'.
Always create sys/stat.h, since it's unlikely any real sys/stat.h
would define all the S_* symbols.
* modules/canonicalize (Depends-on):
Depend on sys_stat, not stat-macros.
* modules/chown: Likewise.
* modules/euidaccess: Likewise.
* modules/filemode: Likewise.
* modules/file-type: Likewise.
* modules/glob: Likewise.
* modules/isapipe: Likewise.
* modules/lchown: Likewise.
* modules/lstat: Likewise.
* modules/mkancesdirs: Likewise.
* modules/rmdir: Likewise.
* modules/mkdir-p (Depends-on): Also depend on sys_stat.
* modules/modechange: Likewise.
* modules/stat-macros (Files): Remove m4/stat-macros.m4.
(configure.ac): Remove gl_STAT_MACROS.
* modules/sys_stat (Depends-on): Remove stat-macros.
|
|
a8753bfd
|
2006-10-27T13:51:23
|
|
* MODULES.html.sh: Document tempname.
* modules/mkstemp (Depends-on): Add tempname, and drop transitive
dependencies.
(Files): Move lib/tempname.c...
* modules/tempname: ...to this new module.
* m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
(gl_PREREQ_TEMPNAME): Move...
* m4/tempname.m4: ...to this new file.
* lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
* modules/sys_stat (Depends-on): Add stat-macros.
* lib/stat_.h (includes): Pick up stat macros.
* m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
if stat macros are broken.
* lib/tempname.c (includes): No need to include "stat-macros.h".
(__gen_tempname) [!_LIBC]: Expose as gen_tempname.
(direxists, __path_search) [!_LIBC]: Don't compile these in
gnulib; the tmpdir module covers that.
* lib/tempname.h: New file.
|
|
6384ddb7
|
2006-10-26T11:56:02
|
|
Make read-only array really read-only. Saves a few bytes in the .data segment.
|
|
86dbecb1
|
2006-10-26T11:36:41
|
|
Avoid a gcc warning.
|
|
fd22eff2
|
2006-10-25T18:56:19
|
|
One more modif.
|
|
3667f8e7
|
2006-10-25T17:00:04
|
|
Remove incorrect comment.
|
|
4a6f6ccf
|
2006-10-25T16:56:37
|
|
Only g++ supports variable-size arrays nowadays.
|
|
34abd68a
|
2006-10-25T16:14:34
|
|
Avoid compilation errors with some C++ compilers.
|
|
0a459e96
|
2006-10-25T11:42:18
|
|
Treat all non-GNU iconv implementations like Irix iconv.
|
|
8e99d1a0
|
2006-10-24T20:40:29
|
|
* lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
to gnulib's policy of including config.h unconditionally.
|
|
85fc15b1
|
2006-10-24T20:19:49
|
|
Fix compilation error on platforms without 'wint_t' type.
|