X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Fquotearg.c;h=d5fbc9e60384ea4b7c0b823535c7d18ea79f8d53;hb=c3c259f0bef8cfd8d47606475348f088f7b0e120;hp=a9c9fe339cb2178ed09d23775e74519b64b9a67b;hpb=62a3c6b1d5d8c7bc4b6b8eb0623acd1257998996;p=gnulib.git diff --git a/lib/quotearg.c b/lib/quotearg.c index a9c9fe339..d5fbc9e60 100644 --- a/lib/quotearg.c +++ b/lib/quotearg.c @@ -92,15 +92,14 @@ size_t mbrtowc (); #define INT_BITS (sizeof (int) * CHAR_BIT) #if defined (STDC_HEADERS) || (!defined (isascii) && !defined (HAVE_ISASCII)) -/* Undefine to protect against the definition in wctype.h of solaris2.6. */ -# undef ISASCII -# define ISASCII(c) 1 +# define IN_CTYPE_DOMAIN(c) 1 #else -# define ISASCII(c) isascii (c) +# define IN_CTYPE_DOMAIN(c) isascii(c) #endif + /* Undefine to protect against the definition in wctype.h of solaris2.6. */ #undef ISPRINT -#define ISPRINT(c) (ISASCII (c) && isprint (c)) +#define ISPRINT(c) (IN_CTYPE_DOMAIN (c) && isprint (c)) struct quoting_options { @@ -539,8 +538,8 @@ quotearg_n_options (int n, char const *arg, size_t size; char *val; }; - static struct slotvec const slotvec0 = {sizeof slot0, slot0}; - static struct slotvec *slotvec = (struct slotvec *) &slotvec0; + static struct slotvec slotvec0 = {sizeof slot0, slot0}; + static struct slotvec *slotvec = &slotvec0; if (nslots <= n) {