b66914499d2911a46283cdff8bfff03f53047460
[gnulib.git] / lib / ChangeLog
1 2000-03-07  Paul Eggert  <eggert@twinsun.com>
2
3         * lib/savedir.c (savedir): Work even if directory size is
4         negative; this can happen with some screwy NFS configurations.
5
6 2000-03-06  Jim Meyering  <meyering@lucent.com>
7
8         * localcharset.c (get_charset_aliases): Don't try to free file_name
9         if it's NULL (because we ran out of memory).  From Bruno Haible.
10
11 2000-03-05  Jim Meyering  <meyering@lucent.com>
12
13         * localcharset.c ("path-concat.h"): Include.
14         (get_charset_aliases): Use path_concat instead of ANSI string
15         concatenation.
16
17         * unicodeio.h (PARAMS): Define.
18         Use it to guard prototype.
19
20 2000-03-04  Jim Meyering  <meyering@lucent.com>
21
22         * Makefile.am (install-exec-local): Create $(libdir) before installing
23         into it.
24         (uninstall-local): Uncomment this rule so `make distcheck' works
25         once again.
26
27         * unicodeio.c (<errno.h>): Include it.
28         (errno): Declare if not defined.
29
30         * localcharset.c: Add Bruno's comment justifying use of volatile.
31
32         * config.charset: New version, incorporating remarks from a linux
33         i18n mailing list.  From Bruno Haible.
34
35 2000-03-02  Jim Meyering  <meyering@lucent.com>
36
37         * Makefile.am (EXTRA_DIST): Add config.charset.
38
39 2000-03-01  Jim Meyering  <meyering@lucent.com>
40
41         * localcharset.c: Guard some #includes with `#if HAVE_...'.
42         * unicodeio.c: Likewise.
43
44 2000-02-02  Bruno Haible  <haible@clisp.cons.org>
45
46         * config.charset: New file.
47         * localcharset.c: New file.
48         * unicodeio.h, unicodeio.c: New files.
49         * Makefile.am (DEFS): Add -DLIBDIR=...
50         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
51         (noinst_HEADERS): Add unicodeio.h.
52         (all-local, install-exec-local, charset.alias): New targets.
53
54 2000-02-28  Paul Eggert  <eggert@twinsun.com>
55
56         * lib/quotearg.c (ALERT_CHAR): New macro.
57         (quotearg_buffer_restyled): Use it.
58
59 2000-02-27  Jim Meyering  <meyering@lucent.com>
60
61         * strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
62         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
63
64         * backupfile.c: Guard inclusion of stdlib.h with `#if HAVE_STDLIB_H',
65         not `#if STDC_HEADERS'.
66         Declare malloc if needed.
67
68         * backupfile.c: Use `#if !HAVE_DECL...' instead of `#ifndef HAVE_DECL..'
69         now that autoconf always defines the HAVE_DECL_ symbols.
70         * human.c: Likewise.
71         * same.c: Likewise.
72         * strtoumax.c: Likewise.
73
74         * backupfile.c: Arrange for cpp to fail if the configure-time
75         declaration check was not run.
76         * hash.c: Likewise.
77         * human.c: Likewise.
78         * same.c: Likewise.
79         * strtoumax.c: Likewise.
80
81         * userspec.c (parse_user_spec): If there is no `:' but there is a `.',
82         then first look up the entire `.'-containing string as a login name.
83
84 2000-02-18  Paul Eggert  <eggert@twinsun.com>
85
86         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
87         (textint): New typedef.
88         (parser_control): Member year changed from int to textint.
89         All uses changed.
90         (YYSTYPE): Removed; replaced by %union with int and textint members.
91         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
92         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
93         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
94         (tSNUMBER, tUNUMBER): Now of type <textintval>.
95         (date, number, to_year): Use width of number in digits, not its value,
96         to determine whether it's a 2-digit year, or a 2-digit time.
97         (yylex): Store number of digits of numeric tokens.
98         Reported by John Kendall.
99
100         (parser_control): Changed from struct parser_control to typedef (for
101         consistency).  All uses changed.
102
103         (tID): Removed; not used.
104         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
105
106 2000-02-14  Paul Eggert  <eggert@twinsun.com>
107
108         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
109         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
110
111 2000-02-12  Jim Meyering  <meyering@lucent.com>
112
113         * userspec.c (ISDIGIT): Define it.
114         (isdigit): Remove definition.
115         (is_number): Use ISDIGIT, not isdigit.
116         <libintl.h>: Include.
117         (_ and N_): Define.
118         (parse_user_spec): Mark translatable strings.
119
120 2000-02-10  Jim Meyering  <meyering@lucent.com>
121
122         With these changes, nanosleep.[ch] are finally enough like the other
123         lib/* replacement files to compile on a few more losing systems.
124
125         * nanosleep.h: Don't include config.h.
126         Remove prototype from declaration of nanosleep.
127         (PARAMS): Remove now-unneeded definition.
128         * nanosleep.c: #undef nanosleep.
129         (rpl_nanosleep): Rename from nanosleep.
130
131 2000-02-03  Jim Meyering  <meyering@lucent.com>
132
133         * readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
134         rather than with `#if HAVE_UTMPNAME'.
135
136 2000-02-01  Jim Meyering  <meyering@lucent.com>
137
138         * readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
139
140 2000-01-31  Jim Meyering  <meyering@lucent.com>
141
142         * nanosleep.h (nanosleep): Guard declaration with
143         `#if ! HAVE_DECL_NANOSLEEP'.
144         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
145         the declaration in that vendor's sys/timers.h.
146         Reported by Christian Krackowizer.
147
148         * quotearg.c (ISASCII): Add #undef and move definition to follow
149         inclusion of wctype.h to work around solaris2.6 namespace pollution.
150         (ISPRINT): Likewise.
151         Reported by Tom Tromey.
152
153 2000-01-30  Jim Meyering  <meyering@lucent.com>
154
155         * readutmp.c (extract_trimmed_name): Use UT_USER instead of hard-coding
156         uses of ->ut_name.  The latter doesn't work with new Linux header files
157         where only utmpx.ut_user is declared.
158
159         * readutmp.h (UT_USER): Define.
160
161 2000-01-23  Jim Meyering  <meyering@lucent.com>
162
163         * Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
164         obstack.c.
165
166 2000-01-22  Jim Meyering  <meyering@lucent.com>
167
168         * strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
169         [! HAVE_DECL_STRTOULL]: Declare strtoull.
170         Required for some AIX systems.  Reported by Christian Krackowizer.
171         [TESTING] (main): New function.
172
173         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
174         * dirname.c (dir_name): Support for DOS-style file names with drive
175         letters.
176
177         * quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of iswprint.
178
179         * strverscmp.c (ISDIGIT): Define.
180         (strverscmp): Use ISDIGIT, not isdigit.
181
182 2000-01-17  Paul Eggert  <eggert@twinsun.com>
183
184         * nanosleep.c (nanosleep):
185         Don't use SA_INTERRUPT to decide whether to call sigaction, as
186         POSIX.1 doesn't require SA_INTERRUPT and some systems
187         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
188         it's been part of POSIX.1 since day 1 (in 1988).
189
190 2000-01-17  Jim Meyering  <meyering@lucent.com>
191
192         * interlock: Remove unused file.  Reported by François Pinard.
193
194 2000-01-16  Paul Eggert  <eggert@twinsun.com>
195
196         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
197         alert, backslash, formfeed, and vertical tab unnecessarily in
198         shell quoting style.
199
200 Local Variables:
201 version-control: never
202 End: