From 52834b8a7384980cc459c8b9f951903fdcc7039d Mon Sep 17 00:00:00 2001 From: Martin Nilsson <nilsson@opera.com> Date: Thu, 4 Sep 2014 01:34:21 +0200 Subject: [PATCH] isgraph is C89 and 4.3BSD, so assume it exists. --- src/acconfig.h | 3 --- src/configure.in | 14 -------------- src/pike_macros.h | 4 ---- 3 files changed, 21 deletions(-) diff --git a/src/acconfig.h b/src/acconfig.h index f3ae6b63ec..2101e23a69 100644 --- a/src/acconfig.h +++ b/src/acconfig.h @@ -481,9 +481,6 @@ /* Define if your OS has the union wait. */ #undef HAVE_UNION_WAIT -/* Define if you have isgraph */ -#undef HAVE_ISGRAPH - /* Define if your cpp supports the ANSI concatenation operator ## */ #undef HAVE_ANSI_CONCAT diff --git a/src/configure.in b/src/configure.in index 134820b023..2e000e4e30 100644 --- a/src/configure.in +++ b/src/configure.in @@ -3266,20 +3266,6 @@ fi ############################################################################# -AC_MSG_CHECKING(for isgraph) -AC_CACHE_VAL(pike_cv_func_isgraph, [ AC_TRY_LINK([ -#include <ctype.h> - ], [ - return(!isgraph('A')); - ], pike_cv_func_isgraph=yes, pike_cv_func_isgraph=no) -]) -AC_MSG_RESULT($pike_cv_func_isgraph) -if test "x$pike_cv_func_isgraph" = "xyes" ; then - AC_DEFINE(HAVE_ISGRAPH) -else :; fi - -############################################################################# - PIKE_AC_DEBUG # Note: For function detection to work correctly with diff --git a/src/pike_macros.h b/src/pike_macros.h index 6898b15b27..5e86c5bf15 100644 --- a/src/pike_macros.h +++ b/src/pike_macros.h @@ -40,10 +40,6 @@ PMOD_EXPORT extern const char Pike_is8bitalnum_vector[]; #define isidchar(X) is8bitalnum(X) -#ifndef HAVE_ISGRAPH -#define isgraph(X) (ispunct(X) || isupper(X) || islower(X) || isdigit(X)) -#endif /* !HAVE_ISGRAPH */ - #define DO_ALIGN(X,Y) (((size_t)(X)+((Y)-1)) & ~((Y)-1)) -- GitLab