Commit Graph

2010 Commits

Author SHA1 Message Date
Jim Meyering 0017571134 *** empty log message *** 2001-08-04 17:07:43 +00:00
Jim Meyering 752fb79cac Don't include <limits.h>.
Include <stdlib.h> and <string.h> unconditionally.
(iswcntrl, mbsinit, ISCNTRL): New macros.
(mbsnwidth): Use K&R style function declarations.
Don't bother checking for MB_LEN_MAX == 1, since the compiler
can optimize it when MB_CUR_MAX == 1.
The width of control characters is zero, not 1.
2001-08-04 17:07:37 +00:00
Jim Meyering 465a0e3b5e (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
with inverted sense.  All uses changed.
2001-08-04 17:06:05 +00:00
Jim Meyering 86b6fbd90c . 2001-07-15 16:28:39 +00:00
Jim Meyering b0e6b6a062 *** empty log message *** 2001-07-15 15:42:38 +00:00
Jim Meyering b4f1cf7143 (all-local): Depend on unlocked-io.h, to ensure it is created. 2001-07-15 15:42:27 +00:00
Jim Meyering 24950c329b *** empty log message *** 2001-07-15 15:35:02 +00:00
Jim Meyering c3db551fd7 (DISTCLEANFILES): Add unlocked-io.h. 2001-07-15 15:29:05 +00:00
Jim Meyering 70d3f1e772 *** empty log message *** 2001-07-15 15:17:12 +00:00
Jim Meyering 982d395b6a (EXTRA_DIST): Add unlocked-io.hin.
(BUILT_SOURCES): Add unlocked-io.h.
(io_functions): Define.
(unlocked-io.h): New rule.
2001-07-15 15:14:18 +00:00
Jim Meyering 11cfdfba16 *** empty log message *** 2001-07-15 15:13:14 +00:00
Jim Meyering 3cc73c9659 *** empty log message *** 2001-07-15 14:39:51 +00:00
Jim Meyering 82f4ea062b Update from glibc. 2001-07-15 14:39:46 +00:00
Jim Meyering f1a6dd3dcc (__attribute__): Define it to be empty for compilers
that don't support that syntax.
2001-07-14 19:47:20 +00:00
Jim Meyering d2cb2639f0 . 2001-07-11 15:28:51 +00:00
Jim Meyering 1226c8ad6f *** empty log message *** 2001-07-05 08:29:19 +00:00
Jim Meyering 26e8855760 (noinst_HEADERS): Remove definition, per new automake recommendation.
(libfetish_a_SOURCES): Put all .h files here instead.
Remove a thus-exposed (better checks in automake) duplicate and
two unnecessary .h files.
2001-07-05 07:58:06 +00:00
Jim Meyering 6efc19263f update from libc 2001-06-18 08:01:38 +00:00
Jim Meyering 98d2a14011 *** empty log message *** 2001-06-11 02:49:20 +00:00
Jim Meyering 88a10b132b Update from GNU libc. 2001-06-11 02:48:14 +00:00
Jim Meyering 31867cf5cb *** empty log message *** 2001-05-27 13:46:52 +00:00
Jim Meyering 5d896be5dc (UT_TYPE): Define. 2001-05-27 13:46:31 +00:00
Jim Meyering a99fb13160 . 2001-05-24 22:08:45 +00:00
Jim Meyering 418c24dd7e *** empty log message *** 2001-05-24 06:12:07 +00:00
Jim Meyering 908a517100 Include "quote.h".
(argmatch_invalid): Remove explicit `' quotes.  Instead, use the
quote function.  Reported by Gran Uddeborg.
2001-05-24 06:12:00 +00:00
Jim Meyering e204540061 . 2001-05-21 06:59:27 +00:00
Jim Meyering 2c3988dbca *** empty log message *** 2001-05-21 06:36:43 +00:00
Jim Meyering 760d4e6f3a (dir_name): Compute append_dot using path, not newpath
which is not yet declared.
2001-05-21 06:36:36 +00:00
Jim Meyering 02095a6616 . 2001-05-20 21:09:06 +00:00
Jim Meyering 8b7078eada (my_strftime):
Define to nstrftime if emacs, but only if my_strftime is not defined.
(extra_args, extra_args_spec, extra_args_spec_iso): Rename from
ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
Add one more extra argument: a nanoseconds value.
All uses changed.
(ns): New macro.
(my_strftime function): Add %N format.
(emacs_strftimeu): Renamed from emacs_strftime,
with extra ut argument.
2001-05-20 20:41:20 +00:00
Jim Meyering a917db5ab2 (libfetish_a_SOURCES):
Add strftime.c, since we now compile it on all hosts.
2001-05-20 20:39:28 +00:00
Jim Meyering 531822b168 . 2001-05-16 07:30:54 +00:00
Jim Meyering d8535172f6 *** empty log message *** 2001-05-12 15:50:50 +00:00
Jim Meyering b6678c419b (ISSLASH): Remove; now in dirname.h.
(strip_trailing_slashes): Return nonzero if
a slash was stripped.  Do not strip the last slash after a
file system prefix.
2001-05-12 15:50:27 +00:00
Jim Meyering 8989b5b65c (base_name): Remove; now in dirname.h.
(STREQ): Remove.
(same_name): Handle the case where the basename ends in trailing '/'.
2001-05-12 15:48:00 +00:00
Jim Meyering dbe66b162b (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN): New macros.
(base_name, base_len, dir_len, strip_trailing_slashes): New decls.
2001-05-12 15:46:36 +00:00
Jim Meyering f6e82b7dea (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN, ISSLASH): Remove; now in dirname.h.
(path_concat): Use base_len to compute
base length, not strlen; this means we cannot rely on memcpy
to null-terminate.
2001-05-12 15:45:43 +00:00
Jim Meyering 1450c855b6 Use "", not <> to include non-system header files. 2001-05-12 15:41:11 +00:00
Jim Meyering 3c9e00c4fd Use "", not <> to include non-system header files. 2001-05-12 15:40:47 +00:00
Jim Meyering e149a84b32 Use "", not <> to include dirname.h. 2001-05-12 15:39:45 +00:00
Jim Meyering 521f5344c8 (FILESYSTEM_PREFIX_LEN, ISSLASH): Remove; now in dirname.h.
Include <string.h> instead of <stdlib.h>.
Do not include <assert.h>; no longer needed.
Include xalloc.h.
(memrchr): Remove decl.
(dir_name_r): Remove.
(dir_len): Renamed from dirlen.  All callers changed.
Rewrite in terms of base_name, for simplicity and consistency.
(dir_name): Never return NULL.  All callers changed.
Do not include <stdlib.h> in test program; no longer needed.
return 0; is fine for test program.
2001-05-12 15:38:00 +00:00
Jim Meyering 4b8000742f (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Remove; now in dirname.h.
Do not include <stdio.h>, <assert.h>; no longer needed.
Include <string.h>, <dirname.h>.
(base_name): Allow file names ending in slashes, other than names
that are all slashes.  In this case, return the basename followed
by the slashes.  This is more general, and can be used in places
where the original base_name purposely had an assertion failure.
(base_len): New function.
2001-05-12 14:23:49 +00:00
Jim Meyering 9ce2d23774 (base_name): Remove; now in dirname.h.
Include <dirname.h> after size_t is defined.
(find_backup_file_name, max_backup_version): Use base_len instead of
rolling it ourselves.
Handle the case of "" and (on DOS) "C:" correctly.
2001-05-12 14:20:43 +00:00
Jim Meyering d45e530c21 (ISSLASH, base_name): Remove; now in dirname.h.
Include <dirname.h> after size_t is defined.

(addext): Use base_len to trim redundant
trailing slashes instead of doing it ourselves.
But do not trim the last slash if it is not redundant.
2001-05-12 14:13:36 +00:00
Jim Meyering 1fecbd7863 Include dirname.h.
(strip_trailing_slashes): Remove decl; now in dirname.h.
2001-05-12 10:05:42 +00:00
Jim Meyering bef1bc6137 Include dirname.h.
(strip_trailing_slashes): Remove decl; now in dirname.h.
2001-05-12 10:05:15 +00:00
Jim Meyering daa8b2b1a3 . 2001-05-12 10:04:13 +00:00
Jim Meyering f9b3e59ae5 *** empty log message *** 2001-04-08 20:00:14 +00:00
Jim Meyering b7cd544ce5 that's necessary when the offset spans a DST transition. 2001-04-08 19:58:59 +00:00
Jim Meyering 3c0e576c6d Update from GNU libc. 2001-04-02 08:31:28 +00:00