Diff for /embedaddon/readline/chardefs.h between versions 1.1.1.1 and 1.1.1.2

version 1.1.1.1, 2014/07/30 08:16:45 version 1.1.1.2, 2021/03/17 01:01:01
Line 1 Line 1
 /* chardefs.h -- Character definitions for readline. */  /* chardefs.h -- Character definitions for readline. */
   
/* Copyright (C) 1994-2009 Free Software Foundation, Inc./* Copyright (C) 1994-2015 Free Software Foundation, Inc.
   
    This file is part of the GNU Readline Library (Readline), a library     This file is part of the GNU Readline Library (Readline), a library
    for reading lines of text with interactive input and history editing.     for reading lines of text with interactive input and history editing.
Line 73 Line 73
 #endif  #endif
   
 #if !defined (isxdigit) && !defined (HAVE_ISXDIGIT) && !defined (__cplusplus)  #if !defined (isxdigit) && !defined (HAVE_ISXDIGIT) && !defined (__cplusplus)
#  define isxdigit(c)   (isdigit((c)) || ((c) >= 'a' && (c) <= 'f') || ((c) >= 'A' && (c) <= 'F'))#  define isxdigit(c)   (isdigit((unsigned char)(c)) || ((c) >= 'a' && (c) <= 'f') || ((c) >= 'A' && (c) <= 'F'))
 #endif  #endif
   
 #if defined (CTYPE_NON_ASCII)  #if defined (CTYPE_NON_ASCII)
Line 87 Line 87
   
 /* Beware:  these only work with single-byte ASCII characters. */  /* Beware:  these only work with single-byte ASCII characters. */
   
#define ISALNUM(c)      (IN_CTYPE_DOMAIN (c) && isalnum (c))#define ISALNUM(c)      (IN_CTYPE_DOMAIN (c) && isalnum ((unsigned char)c))
#define ISALPHA(c)      (IN_CTYPE_DOMAIN (c) && isalpha (c))#define ISALPHA(c)      (IN_CTYPE_DOMAIN (c) && isalpha ((unsigned char)c))
#define ISDIGIT(c)      (IN_CTYPE_DOMAIN (c) && isdigit (c))#define ISDIGIT(c)      (IN_CTYPE_DOMAIN (c) && isdigit ((unsigned char)c))
#define ISLOWER(c)      (IN_CTYPE_DOMAIN (c) && islower (c))#define ISLOWER(c)      (IN_CTYPE_DOMAIN (c) && islower ((unsigned char)c))
#define ISPRINT(c)      (IN_CTYPE_DOMAIN (c) && isprint (c))#define ISPRINT(c)      (IN_CTYPE_DOMAIN (c) && isprint ((unsigned char)c))
#define ISUPPER(c)      (IN_CTYPE_DOMAIN (c) && isupper (c))#define ISUPPER(c)      (IN_CTYPE_DOMAIN (c) && isupper ((unsigned char)c))
#define ISXDIGIT(c)     (IN_CTYPE_DOMAIN (c) && isxdigit (c))#define ISXDIGIT(c)     (IN_CTYPE_DOMAIN (c) && isxdigit ((unsigned char)c))
   
 #define _rl_lowercase_p(c)      (NON_NEGATIVE(c) && ISLOWER(c))  #define _rl_lowercase_p(c)      (NON_NEGATIVE(c) && ISLOWER(c))
 #define _rl_uppercase_p(c)      (NON_NEGATIVE(c) && ISUPPER(c))  #define _rl_uppercase_p(c)      (NON_NEGATIVE(c) && ISUPPER(c))

Removed from v.1.1.1.1  
changed lines
  Added in v.1.1.1.2


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>