From 47158d0de8aa97855a1a891884a5de2f95509221 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Fri, 6 Jun 2003 19:15:40 +0000 Subject: [PATCH] Merge from gnulib. --- lib/human.c | 30 +++++------------------------- 1 file changed, 5 insertions(+), 25 deletions(-) diff --git a/lib/human.c b/lib/human.c index 1178b9c4c2..558263473a 100644 --- a/lib/human.c +++ b/lib/human.c @@ -1,6 +1,6 @@ /* human.c -- print human readable file size - Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002 Free + Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify @@ -17,27 +17,14 @@ along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -/* Originally contributed by lm@sgi.com; - --si, output block size selection, large file support, - and grouping added by eggert@twinsun.com. */ +/* Written by Paul Eggert and Larry McVoy. */ #if HAVE_CONFIG_H # include #endif -#if HAVE_STDBOOL_H -# include -#else -typedef enum {false = 0, true = 1} bool; -#endif +#include "human.h" -#if HAVE_INTTYPES_H -# include -#else -# if HAVE_STDINT_H -# include -# endif -#endif #ifndef SIZE_MAX # define SIZE_MAX ((size_t) -1) #endif @@ -45,8 +32,6 @@ typedef enum {false = 0, true = 1} bool; # define UINTMAX_MAX ((uintmax_t) -1) #endif -#include - #if HAVE_LOCALE_H && HAVE_LOCALECONV # include #endif @@ -69,18 +54,13 @@ char *getenv (); # include #endif -#include -#include - -#include -#define _(text) gettext (text) +#include "gettext.h" +#define _(msgid) gettext (msgid) #include #include #include -#include "human.h" - /* The maximum length of a suffix like "KiB". */ #define HUMAN_READABLE_SUFFIX_LENGTH_MAX 3 -- 2.47.2