diff options
author | Jim Meyering <jim@meyering.net> | 1998-01-10 22:12:03 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 1998-01-10 22:12:03 +0000 |
commit | dba300a0d019933bd2b25006006db95688fb9ea3 (patch) | |
tree | 7a658cab1b601be0ca8a8bacea1d23f1446bd7f5 /src/tail.c | |
parent | b9ed71e46e4b3b2f3f366d6eeaa9b54d32d00317 (diff) | |
download | coreutils-dba300a0d019933bd2b25006006db95688fb9ea3.tar.xz |
CHAR_BIT SCHAR_MAX UCHAR_MAX SHRT_MAX INT_MAX UINT_MAX LONG_MAX ULONG_MAX
Remove definitions of those symbols.
* src/csplit.c: Move inclusion of regex.h/rx.h to follow system.h
since it now includes limit.h which defines RE_DUP_MAX.
* src/nl.c: Likewise.
* src/tac.c: Likewise.
Diffstat (limited to 'src/tail.c')
-rw-r--r-- | src/tail.c | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/src/tail.c b/src/tail.c index d985cc5ab..949d8c292 100644 --- a/src/tail.c +++ b/src/tail.c @@ -1,5 +1,5 @@ /* tail -- output the last part of file(s) - Copyright (C) 89, 90, 91, 95, 96, 1997 Free Software Foundation, Inc. + Copyright (C) 89, 90, 91, 95, 96, 1997, 1998 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -49,25 +49,17 @@ #include <assert.h> #include <getopt.h> #include <sys/types.h> -#if HAVE_LIMITS_H -# include <limits.h> -#endif #include "system.h" #include "xstrtoul.h" #include "error.h" -#ifndef CHAR_BIT -# define CHAR_BIT 8 -#endif - #ifndef OFF_T_MIN -# define OFF_T_MIN (0 < (off_t) -1 ? (off_t) 0 \ - : ~ (off_t) 0 << (sizeof (off_t) * CHAR_BIT - 1)) +# define OFF_T_MIN TYPE_MINIMUM (off_t) #endif #ifndef OFF_T_MAX -# define OFF_T_MAX (~ (off_t) 0 - OFF_T_MIN) +# define OFF_T_MAX TYPE_MAXIMUM (off_t) #endif /* Disable assertions. Some systems have broken assert macros. */ |