Paul Eggert
d6897a1553
* src/system.h (LONGEST_MODIFIER): Use ULONG_MAX_LT_ULLONG_MAX
...
instead of ULLONG_MAX, as the latter doesn't work with GCC 2.7.2.1.
2005-09-28 22:11:06 +00:00
Paul Eggert
2c4a088886
Don't include utime.h; not needed.
...
(struct utimbuf) [!defined HAVE_STRUCT_UTIMBUF]: Remove; not needed.
2005-09-23 20:35:41 +00:00
Paul Eggert
99eda9943e
(X2NREALLOC, X2REALLOC): Moved here from
...
../lib/xalloc.h, with args properly parenthesized, and using
verify_expr rather than the old VERIFY_EXPR.
2005-09-22 06:33:40 +00:00
Jim Meyering
8de5019cf5
Remove unnecessary parens in `#if defined (SYMBOL)' expressions.
2005-08-23 15:05:54 +00:00
Paul Eggert
15a1aede78
(setmode, fileno): Remove; no longer needed, we think.
...
(SET_MODE, SET_BINARY, SET_BINARY2): Remove.
[defined __DJGPP__]: Don't include <io.h> or <sys/exceptn.h>.
2005-07-11 18:30:26 +00:00
Jim Meyering
f68e25dc8f
remove stray `=' from comment
2005-07-06 09:34:09 +00:00
Paul Eggert
fce3dd9870
(DECIMAL_DIGIT_ACCUMULATE): Generate a hard error
...
(not just a warning) if GCC is used and the types don't match.
2005-07-05 22:20:17 +00:00
Paul Eggert
413a45b973
(VERIFY_W_TYPEOF): Remove; no longer needed.
...
(DECIMAL_DIGIT_ACCUMULATE): Change last arg from T's maximum value
to T itself. All callers changed. Check that T is unsigned, and
that Accum is of type T. This fixes a bug in the unlikely case
where SIZE_MAX <= INT_MAX, and it no longer requires typeof to do
the proper validity checks.
2005-07-05 06:31:46 +00:00
Paul Eggert
aeecb8f89f
(VERIFY_W_TYPEOF): Adjust to verify.h change.
2005-07-05 05:16:57 +00:00
Jim Meyering
3b0e00ba4e
Include "verify.h".
2005-07-04 16:06:41 +00:00
Jim Meyering
fbdee4c720
(verify): Rename from VERIFY_EXPR, to be lower case,
...
like assert. Use sizeof, rather than equivalent ((...)0), for
it's slightly simpler syntax. Suggestions from Paul Eggert.
(verify_decl): Rename from VERIFY.
2005-07-04 13:56:18 +00:00
Jim Meyering
e62b441f50
Assume HAVE_UNISTD_H.
2005-07-01 21:26:24 +00:00
Jim Meyering
e0331d4ce0
Assume HAVE_FCNTL_H (i.e., include <fcntl.h>
...
unconditionally, and don't include <sys/file.h>).
2005-07-01 20:31:16 +00:00
Jim Meyering
a9129f0786
(VERIFY): Guard definition with #ifndef.
...
(VERIFY_EXPR): Undef before defining.
2005-06-30 16:40:59 +00:00
Jim Meyering
98f3ba52df
Use one fewer helper macro.
2005-06-29 17:10:44 +00:00
Jim Meyering
87f543aea5
(VERIFY): Rewrite to use string-concatenation
...
and __LINE__ so as not to require a struct name parameter.
(GL_CONCAT, GL_CONCAT2, GL_LINE_CONCAT): Define helper macros.
2005-06-29 16:23:15 +00:00
Jim Meyering
4fb3780059
(VERIFY_W_TYPEOF): Add parentheses.
2005-06-10 16:42:28 +00:00
Paul Eggert
97603a5d2a
Don't use "path" or "filename".
2005-06-02 05:17:24 +00:00
Paul Eggert
21c907252b
Don't bother mentioning _POSIX_VERSION in comment.
2005-05-30 07:33:55 +00:00
Jim Meyering
44d59bb168
Update FSF postal mail address.
2005-05-14 07:58:31 +00:00
Jim Meyering
c0c815af8d
Update FSF postal mail address.
2005-05-14 06:57:06 +00:00
Jim Meyering
0eb83b6534
Readability nit:
...
Change this:
# define __attribute__(x)
to this:
# define __attribute__(x) /* empty */
2005-04-09 13:57:51 +00:00
Paul Eggert
65d8e81ce7
(RETSIGTYPE): Remove; no longer needed. All uses replaced with void.
2005-04-09 04:54:23 +00:00
Jim Meyering
ce1ecb48b7
(USAGE_BUILTIN_WARNING): remove trailing newline
2005-04-04 22:30:22 +00:00
Jim Meyering
97cce6e83f
(USAGE_BUILTIN_WARNING): New macro.
2005-04-04 21:51:30 +00:00
Jim Meyering
68bc3503b8
(ptr_align): Declare `ptr' parameter to be a
...
`const' pointer, since this function never writes through it.
2005-03-29 19:01:34 +00:00
Jim Meyering
24e7f6c248
Remove #if-0'd-out code.
2005-03-29 14:09:35 +00:00
Jim Meyering
13f07e7893
(GETOPT_HELP_OPTION_DECL): Use NULL, not `0'.
...
(GETOPT_VERSION_OPTION_DECL): Likewise.
2005-03-28 17:37:07 +00:00
Jim Meyering
c7f57f1750
(DECIMAL_DIGIT_ACCUMULATE): Reverse the sense of
...
the return value, and update callers:
2005-03-25 20:58:57 +00:00
Jim Meyering
0ef98b62fb
comment tweak
2005-03-18 09:38:31 +00:00
Jim Meyering
500175daed
Add comments for new macros.
2005-03-18 09:37:54 +00:00
Jim Meyering
4ef7ce47dc
Make __typeof__-using code depend on HAVE_TYPEOF, not __GNUC__,
...
since so many other C compilers also honor __typeof__.
2005-03-17 19:00:52 +00:00
Jim Meyering
e778babb00
spacing nit
2005-03-17 18:08:46 +00:00
Jim Meyering
cc391abad8
Fix typo.
2005-03-17 17:43:54 +00:00
Jim Meyering
6b0f94088c
(DECIMAL_DIGIT_ACCUMULATE): The use of __typeof__ must be conditional.
2005-03-17 17:42:53 +00:00
Jim Meyering
c74255c9b6
(VERIFY, VERIFY_EXPR, DECIMAL_DIGIT_ACCUMULATE): New macros.
2005-03-17 14:33:39 +00:00
Paul Eggert
87d42256b3
Include intprops.h.
...
(TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_STRLEN_BOUND): Remove;
they are now defined in intprops.h.
2005-03-09 19:27:02 +00:00
Paul Eggert
2b9a84b4dc
Include "memrchr.h".
...
(memrchr) [!HAVE_DECL_MEMRCHR]: Remove decl.
2005-02-03 21:34:34 +00:00
Jim Meyering
570fe7948b
Use S_BLKSIZE value for ST_NBLOCKSIZE where available.
2005-01-24 08:27:15 +00:00
Paul Eggert
30fa7301bc
* m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
...
* m4/ullong_max.m4: New file.
* src/system.h: Undo previous change; we now use Autoconf.
2005-01-03 23:43:39 +00:00
Jim Meyering
7f6d0aeb3a
If PRIdMAX, PRIoMAX, PRIuMAX, and PRIxMAX are
...
not all defined and either ULONG_MAX or ULLONG_MAX is not defined,
then fail at compile-time rather than let tools like od produce
invalid results at run time.
2005-01-03 18:43:09 +00:00
Paul Eggert
bba741d6c2
Assume locale.h exists.
...
(HAVE_SETLOCALE): Remove.
2004-12-02 06:56:08 +00:00
Paul Eggert
8655b4eabd
Don't #define and #undef getopt around <stdlib.h>,
...
as this breaks the new regime that does "#define getopt rpl_getopt".
2004-11-03 18:44:33 +00:00
Paul Eggert
a5b9e9d440
(O_BINARY) [!O_BINARY && defined O_BINARY]:
...
Do not define, to avoid annoying compiler messages on QNX 6.3.
2004-08-08 03:04:00 +00:00
Paul Eggert
01b9ae45c6
(PRIdMAX, PRIoMAX, PRIuMAX, PRIxMAX):
...
Define to a concatenation of string literals, not to an expression;
needed for concatenation contexts.
(INTMAX_MAX, INTMAX_MIN): New macros.
2004-08-04 22:26:23 +00:00
Paul Eggert
08eeecbbbb
(ptr_align): Use size_t; in practice, this is just as
...
good as uintptr_t in checking for alignments, and has fewer
configuration hassles.
2004-08-02 05:26:19 +00:00
Paul Eggert
67bfd37c8b
(errno, CHAR_BIT): Remove decls;
...
no longer needed now we assume C89 or better.
Include <inttypes.h> before <stdint.h>, as it's the Autoconf-recommended pattern.
(to_uchar): New inline function, moved here from tr.c.
Use full names for int types, e.g. "long int" rather than "long".
2004-07-30 21:08:25 +00:00
Jim Meyering
15e38ec27d
Use "file system" rather than "filesystem" in comments.
2004-06-30 22:33:40 +00:00
Jim Meyering
927e4d998e
(case_GETOPT_VERSION_CHAR): Switch back to using GNU_PACKAGE (from
...
PACKAGE) once again. This restores `GNU' to the parenthesized package
name in --version output. Before, the first argument from AC_INIT,
`GNU coreutils', would be propagated to the PACKAGE variable. Now,
`GNU ' is trimmed. Reported by Richard Stallman.
2004-06-19 09:23:52 +00:00
Jim Meyering
2eba29a312
(ENOTSUP): Remove.
2004-06-08 13:24:09 +00:00