From: Paul Eggert Date: Thu, 5 Oct 2006 21:23:20 +0000 (+0000) Subject: Remove macros that are no longer needed now that stdint.h is X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=44df621bcd3c8d7682ccf81793117939e954fbf4;p=pspp 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. --- diff --git a/lib/ChangeLog b/lib/ChangeLog index 8daa2010f9..355fc0daa5 100644 --- a/lib/ChangeLog +++ b/lib/ChangeLog @@ -1,3 +1,11 @@ +2006-10-05 Paul Eggert + + 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 * gl_list.h (gl_list_search_from, gl_list_search_from_to, diff --git a/lib/fsusage.c b/lib/fsusage.c index 1e43ede0a8..c9721ca7ee 100644 --- a/lib/fsusage.c +++ b/lib/fsusage.c @@ -56,10 +56,6 @@ # 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 diff --git a/lib/human.c b/lib/human.c index 6e641446ce..ecf4c97ce5 100644 --- a/lib/human.c +++ b/lib/human.c @@ -36,13 +36,6 @@ #include #include -#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 diff --git a/lib/utimecmp.c b/lib/utimecmp.c index 5be050a944..e0bfcb6352 100644 --- a/lib/utimecmp.c +++ b/lib/utimecmp.c @@ -38,10 +38,6 @@ # 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,