Remove macros that are no longer needed now that stdint.h is
authorPaul Eggert <eggert@cs.ucla.edu>
Thu, 5 Oct 2006 21:23:20 +0000 (21:23 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Thu, 5 Oct 2006 21:23:20 +0000 (21:23 +0000)
reliable.
* fsusage.c (UINTMAX_MAX): Remove.
* human.c (SIZE_MAX, UINTMAX_MAX): Remove.
* utimecmp.c (SIZE_MAX): Remove.

lib/ChangeLog
lib/fsusage.c
lib/human.c
lib/utimecmp.c

index 8daa2010f9f91a28a8be5d78f1adce7db201a913..355fc0daa5779ca22f70e0e8e5820bef5707fef5 100644 (file)
@@ -1,3 +1,11 @@
+2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
+
+       Remove macros that are no longer needed now that stdint.h is
+       reliable.
+       * fsusage.c (UINTMAX_MAX): Remove.
+       * human.c (SIZE_MAX, UINTMAX_MAX): Remove.
+       * utimecmp.c (SIZE_MAX): Remove.
+
 2006-10-03  Bruno Haible  <bruno@clisp.org>
 
        * gl_list.h (gl_list_search_from, gl_list_search_from_to,
index 1e43ede0a86cc3b5c827c09b1f8260c260663fd0..c9721ca7ee3037c2dbcd8316f587480770e8fbf2 100644 (file)
 # include "full-read.h"
 #endif
 
-#ifndef UINTMAX_MAX
-# define UINTMAX_MAX ((uintmax_t) -1)
-#endif
-
 /* Many space usage primitives use all 1 bits to denote a value that is
    not applicable or unknown.  Propagate this information by returning
    a uintmax_t value that is all 1 bits if X is all 1 bits, even if X
index 6e641446ceb782f9ccec055bae34e40a0ca3c59a..ecf4c97ce554a972cf40aa07496fc629aa9ead00 100644 (file)
 #include <intprops.h>
 #include <xstrtol.h>
 
-#ifndef SIZE_MAX
-# define SIZE_MAX ((size_t) -1)
-#endif
-#ifndef UINTMAX_MAX
-# define UINTMAX_MAX ((uintmax_t) -1)
-#endif
-
 /* The maximum length of a suffix like "KiB".  */
 #define HUMAN_READABLE_SUFFIX_LENGTH_MAX 3
 
index 5be050a9440ff9d4eb162ad4621f56f3a37ac56f..e0bfcb63520b35605f66625099158b36529d9174 100644 (file)
 # define MAX(a, b) ((a) > (b) ? (a) : (b))
 #endif
 
-#ifndef SIZE_MAX
-# define SIZE_MAX ((size_t) -1)
-#endif
-
 enum { BILLION = 1000 * 1000 * 1000 };
 
 /* Best possible resolution that utimens can set and stat can return,