summaryrefslogtreecommitdiff
path: root/src/csplit.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1998-01-10 22:12:03 +0000
committerJim Meyering <jim@meyering.net>1998-01-10 22:12:03 +0000
commitdba300a0d019933bd2b25006006db95688fb9ea3 (patch)
tree7a658cab1b601be0ca8a8bacea1d23f1446bd7f5 /src/csplit.c
parentb9ed71e46e4b3b2f3f366d6eeaa9b54d32d00317 (diff)
downloadcoreutils-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/csplit.c')
-rw-r--r--src/csplit.c15
1 files changed, 3 insertions, 12 deletions
diff --git a/src/csplit.c b/src/csplit.c
index b923ed457..691ec38eb 100644
--- a/src/csplit.c
+++ b/src/csplit.c
@@ -1,5 +1,5 @@
/* csplit - split a file into sections determined by context lines
- Copyright (C) 91, 95, 96, 1997 Free Software Foundation, Inc.
+ Copyright (C) 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
@@ -29,24 +29,15 @@
#include <getopt.h>
#include <sys/types.h>
#include <signal.h>
-#ifdef HAVE_LIMITS_H
-# include <limits.h>
-#endif /* HAVE_LIMITS_H */
-#ifndef UINT_MAX
-# define UINT_MAX ((unsigned int) ~(unsigned int) 0)
-#endif
-
-#ifndef INT_MAX
-# define INT_MAX ((int) (UINT_MAX >> 1))
-#endif
+#include "system.h"
#if WITH_REGEX
# include <regex.h>
#else
# include <rx.h>
#endif
-#include "system.h"
+
#include "error.h"
#include "xstrtoul.h"
#include "xalloc.h"