1
0
mirror of https://https.git.savannah.gnu.org/git/gnulib.git synced 2026-05-13 15:13:36 +00:00
Commit Graph

8009 Commits

Author SHA1 Message Date
Bruno Haible
b5a90e5f1c Tests for module 'wctype'. 2007-02-18 04:23:08 +00:00
Bruno Haible
f5ed8afc34 Tests for module 'wchar'. 2007-02-18 04:22:23 +00:00
Bruno Haible
b60b7e4aa9 Tests for module 'unistd'. 2007-02-18 04:21:43 +00:00
Bruno Haible
d02173cf8a Tests for module 'time'. 2007-02-18 04:20:26 +00:00
Bruno Haible
86014d1d0d Tests for module 'sysexits'. 2007-02-18 04:19:44 +00:00
Bruno Haible
64a28ff9f4 Tests for module 'sys_time'. 2007-02-18 04:19:03 +00:00
Bruno Haible
5ddaa8e039 Tests for module 'sys_stat'. 2007-02-18 04:18:22 +00:00
Bruno Haible
16f2e82ceb Tests for module 'sys_socket'. 2007-02-18 04:17:33 +00:00
Bruno Haible
a9fb2254a2 Tests for module 'sys_select'. 2007-02-18 04:16:52 +00:00
Bruno Haible
b4485ef01e Tests for module 'string'. 2007-02-18 04:16:13 +00:00
Bruno Haible
4dc5127ae2 Tests for module 'stdbool'. 2007-02-18 04:15:31 +00:00
Bruno Haible
0f52e28459 Tests of module 'netinet_in'. 2007-02-18 04:14:34 +00:00
Bruno Haible
772b2ab251 Tests for module 'inttypes'. 2007-02-18 04:13:54 +00:00
Bruno Haible
63c64db5aa Tests for module 'fcntl'. 2007-02-18 04:13:09 +00:00
Bruno Haible
f2c3077010 Tests for module 'byteswap'. 2007-02-18 04:12:20 +00:00
Bruno Haible
b6f6b107df Tests for module arpa_inet. 2007-02-18 04:11:29 +00:00
Bruno Haible
e819af214a Substitute a few more variables. 2007-02-18 04:10:04 +00:00
Bruno Haible
738e912a0f Use GL_LINK_WARNING in the generated inttypes.h. 2007-02-18 02:02:26 +00:00
Bruno Haible
2261dd4577 New module 'link-warning'. 2007-02-18 02:00:09 +00:00
Bruno Haible
a903e10b42 Merge gl_HEADER_STRING_H_DEFAULTS and gl_STRING_MODULE_INDICATOR_DEFAULTS into
a single macro.
2007-02-18 00:19:41 +00:00
Bruno Haible
5d2cd3c5f0 New module 'link-warning'. 2007-02-17 22:21:32 +00:00
Bruno Haible
10e2fa52b5 Line breaking. 2007-02-17 19:43:30 +00:00
Bruno Haible
8c0f3c676c New module 'tmpfile'. 2007-02-17 15:04:50 +00:00
Bruno Haible
c33ce48920 Make use of _O_TEMPORARY on native Woe32 platforms. 2007-02-16 02:58:04 +00:00
Bruno Haible
a59ad78416 Tests for module 'mbspcasecmp'. 2007-02-15 03:07:54 +00:00
Bruno Haible
58d5932625 New module 'mbspcasecmp'. 2007-02-15 03:07:04 +00:00
Bruno Haible
39bc7a80b6 Tests for module mbsncasecmp. 2007-02-15 03:06:14 +00:00
Bruno Haible
1d29d63fe8 Tests for module 'mbsncasecmp'. 2007-02-15 03:02:54 +00:00
Bruno Haible
b5b2e76ad8 New module 'mbsncasecmp'. 2007-02-15 02:57:13 +00:00
Paul Eggert
b20fd100dd * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
Verify that it doesn't overlap with our flags.
(fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
do not have the desired effect in multibyte locales; instead, use
mbscasecmp.
* modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
we don't require GNU fnmatch ourselves (if our users require it, they
should do so explicitly).
2007-02-15 00:29:06 +00:00
Paul Eggert
9d162a1de9 Remove stray underscore in previous change. 2007-02-15 00:18:16 +00:00
Paul Eggert
dea6f7089d Fix regex code so it doesn't rely on strcasecmp.
* lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
Otherwise, include gnulib's langinfo.h.
* lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
undesirable behavior in non-C locales.  Instead, rely on locale_charset.
* m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
* modules/regex (FILES): Remove m4/codeset.m4.
(Depends-on): Add localcharset.  Remove strcase.
2007-02-15 00:16:55 +00:00
Ralf Wildenhues
1f206dea09 * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
* m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
2007-02-13 23:20:02 +00:00
Bruno Haible
47e3f525db Fix m4 underquoting bug, discovered by Ralf Wildenhues. 2007-02-13 22:49:23 +00:00
Bruno Haible
ce39969871 Turn link errors into link-time warnings. 2007-02-13 01:38:45 +00:00
Bruno Haible
e2bbeae93f Fix an m4 quoting bug. 2007-02-12 23:39:41 +00:00
Bruno Haible
aaeb2c88f0 Needed for tests of modules 'mbscasestr' and 'mbscasecmp'. 2007-02-12 23:24:25 +00:00
Paul Eggert
3cb7f3b0cb * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
args, not 2.

2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
2007-02-12 19:06:30 +00:00
Paul Eggert
3ac9552429 New module 'time', so that apps can include <time.h> as per
POSIX and GNU instead of separate include files like time_r.h
and timegm.h.  This implementation tries out a simpler approach
for replacing decls in standard include files (as compared to
the string module), somewhat as an experiment.

* config/srclist.txt: Comment out mktime.c for now.
* doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
since it doesn't apply any more.  Use generic wording instead.
* MODULES.html.sh (Support for systems lacking POSIX:2001): New module
'time'.
* lib/time_.h, m4/time_h.m4, modules/time: New files.
* lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
* lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
Don't include <sys/types.h>; no longer needed since we assume C89.
* lib/mktime.c: Don't include "time_r.h"; no longer needed.
* lib/strftime.c: Likewise.
* lib/time_r.c: Likewise.
* lib/nanosleep.c (nanosleep): #undef after include files, not before.
* lib/nanosleep.c: Include <time.h> first, to check interface.
* lib/strptime.c: Likewise.
* lib/time_r.c: Likewise.
* lib/timegm.c: Likewise.
* lib/strptime.c: Don't include strptime.h or time_r.h; no longer
needed.
* lib/timegm.c: Don't include timegm.h; no longer needed.
* lib/timespec.h: Don't include <sys/time.h> before <time.h>;
time.h now handles any problems in that area.
(struct timespec, nanosleep): Remove; time.h now arranges for these.
* lib/xnanosleep.c: Don't include timespec.h; no longer needed now
that time.h defines struct timespec.
* m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
handles that.
* m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
* m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
needed.  Set REPLACE_LOCALTIME.
* m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
* m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
(gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
nanosleep; time_h.m4 now does that.  Don't require
gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
module handles this now.
* modules/getdate (Depends-on): Remove timespec.  Add time.
* modules/nanosleep (Depends-on): Likewise.
* modules/stat-time (Depends-on): Likewise.
* modules/nanosleep (Include): Include time.h, not timespec.h.
* modules/strptime (Files): Remove lib/strptime.h.
(Depends-on): Add extensions, time.
(Include): Include time.h, not strptime.h.
* modules/time_r (Files): Remove lib/time_r.h.
(Depends-on): Add time.
(Include): Include time.h, not time_r.h.
* modules/timegm: Likewise.
* modules/timespec (Description): Now does timespec-related decls
of our own, instead of struct timespec itself.
(Depends-on): Add time; remove extensions.
(Maintainer): Add self.
* modules/utimecmp (Depends-on): Add time; remove timespec.
* modules/utimens (Depends-on): Likewise.
* modules/xnanosleep (Depends-on): Likewise.
2007-02-12 18:49:19 +00:00
Bruno Haible
4bc8b69ccf Optimize memory allocation to use alloca when possible. 2007-02-12 02:58:17 +00:00
Bruno Haible
b90fb71212 Include <string.h>. 2007-02-12 02:51:37 +00:00
Karl Berry
250e00a47a update from texinfo 2007-02-12 00:43:52 +00:00
Bruno Haible
1006ae023b Fix bug. Remove unnecessary strlen call. 2007-02-11 22:38:58 +00:00
Bruno Haible
bea1ec67e3 Tests for module 'mbsspn'. 2007-02-11 22:38:25 +00:00
Bruno Haible
5e4849bcdc Cosmetic tweak. 2007-02-11 22:34:50 +00:00
Bruno Haible
202c74ceb9 Tests for module 'mbspbrk'. 2007-02-11 22:32:03 +00:00
Bruno Haible
bfee08023a Small optimization. 2007-02-11 22:30:04 +00:00
Bruno Haible
6e362c93a1 Tests for module 'mbscspn'. 2007-02-11 22:27:18 +00:00
Bruno Haible
aa2bb6c8cf Tests for module 'mbscasecmp'. 2007-02-11 21:44:25 +00:00
Bruno Haible
35aa104af1 Ensure O(n) worst-case complexity of mbscasestr. 2007-02-11 21:33:27 +00:00