From 94eb31b7662b2ed399e7ab35bb0e1e113497185a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Grubbstr=C3=B6m=20=28Grubba=29?= <grubba@grubba.org> Date: Mon, 18 May 1998 00:59:18 +0200 Subject: [PATCH] Added fallback macro from isgraph(). Rev: src/pike_macros.h:1.9 --- src/pike_macros.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/pike_macros.h b/src/pike_macros.h index 19c37df26c..5e2d091869 100644 --- a/src/pike_macros.h +++ b/src/pike_macros.h @@ -5,7 +5,7 @@ \*/ /* - * $Id: pike_macros.h,v 1.8 1998/05/05 22:01:41 grubba Exp $ + * $Id: pike_macros.h,v 1.9 1998/05/17 22:59:18 grubba Exp $ */ #ifndef MACROS_H #define MACROS_H @@ -48,6 +48,10 @@ #define isidchar(X) is8bitalnum(X) +#ifndef HAVE_ISGRAPH +#define isgraph(X) (ispunct(X) || isupper(X) || islower(X) || isdigit(X)) +#endif /* !HAVE_ISGRAPH */ + #define ALIGN_BOUND sizeof(char *) #ifdef __GNUC__ -- GitLab