summaryrefslogtreecommitdiff
path: root/src/system.h
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2010-04-01 11:11:11 +0200
committerJim Meyering <meyering@redhat.com>2010-04-02 15:03:13 +0200
commit5efb9a58e9b860918f1a2866ac976b8a89fa97a1 (patch)
treee86279fb383c0b8b6000a735d77f1070c1f0893a /src/system.h
parent62dd3a746d4559e3c841c53793d9460374a1bd59 (diff)
downloadgrep-5efb9a58e9b860918f1a2866ac976b8a89fa97a1.tar.gz
cleanup and improvement: parse command line arguments consistently
* src/main.c: Include c-ctype.h, for this: (prepend_args): Use c_isspace, not ISSPACE. This is important so that we parse arguments consistently, and independently of the current locale. * bootstrap.conf (gnulib_modules): Add c-ctype. * src/system.h: Remove IS* definitions here, too. * src/dfasearch.c (WCHAR): Use isalnum, not ISALNUM. * src/kwsearch.c (WCHAR): Likewise. * src/searchutils.c (kwsinit): Use tolower, not TOLOWER.
Diffstat (limited to 'src/system.h')
-rw-r--r--src/system.h24
1 files changed, 0 insertions, 24 deletions
diff --git a/src/system.h b/src/system.h
index 3b617fb7..ee85b22f 100644
--- a/src/system.h
+++ b/src/system.h
@@ -42,30 +42,6 @@
enum { EXIT_TROUBLE = 2 };
-#ifndef isgraph
-# define isgraph(C) (isprint(C) && !isspace(C))
-#endif
-
-#if defined (STDC_HEADERS) || (!defined (isascii) && !defined (HAVE_ISASCII))
-# define IN_CTYPE_DOMAIN(c) 1
-#else
-# define IN_CTYPE_DOMAIN(c) isascii(c)
-#endif
-
-#define ISALPHA(C) (IN_CTYPE_DOMAIN (C) && isalpha (C))
-#define ISUPPER(C) (IN_CTYPE_DOMAIN (C) && isupper (C))
-#define ISLOWER(C) (IN_CTYPE_DOMAIN (C) && islower (C))
-#define ISDIGIT(C) (IN_CTYPE_DOMAIN (C) && isdigit (C))
-#define ISXDIGIT(C) (IN_CTYPE_DOMAIN (C) && isxdigit (C))
-#define ISSPACE(C) (IN_CTYPE_DOMAIN (C) && isspace (C))
-#define ISPUNCT(C) (IN_CTYPE_DOMAIN (C) && ispunct (C))
-#define ISALNUM(C) (IN_CTYPE_DOMAIN (C) && isalnum (C))
-#define ISPRINT(C) (IN_CTYPE_DOMAIN (C) && isprint (C))
-#define ISGRAPH(C) (IN_CTYPE_DOMAIN (C) && isgraph (C))
-#define ISCNTRL(C) (IN_CTYPE_DOMAIN (C) && iscntrl (C))
-
-#define TOLOWER(C) (ISUPPER(C) ? tolower(C) : (C))
-
#include <gettext.h>
#define N_(String) gettext_noop(String)
#define _(String) gettext(String)