Deleted Added
full compact
chardefs.h (136644) chardefs.h (157184)
1/* chardefs.h -- Character definitions for readline. */
2
3/* Copyright (C) 1994 Free Software Foundation, Inc.
4
5 This file is part of the GNU Readline Library, a library for
6 reading lines of text with interactive input and history editing.
7
8 The GNU Readline Library is free software; you can redistribute it

--- 72 unchanged lines hidden (view full) ---

81# define NON_NEGATIVE(c) 1
82#else
83# define NON_NEGATIVE(c) ((unsigned char)(c) == (c))
84#endif
85
86/* Some systems define these; we want our definitions. */
87#undef ISPRINT
88
1/* chardefs.h -- Character definitions for readline. */
2
3/* Copyright (C) 1994 Free Software Foundation, Inc.
4
5 This file is part of the GNU Readline Library, a library for
6 reading lines of text with interactive input and history editing.
7
8 The GNU Readline Library is free software; you can redistribute it

--- 72 unchanged lines hidden (view full) ---

81# define NON_NEGATIVE(c) 1
82#else
83# define NON_NEGATIVE(c) ((unsigned char)(c) == (c))
84#endif
85
86/* Some systems define these; we want our definitions. */
87#undef ISPRINT
88
89/* Beware: these only work with single-byte ASCII characters. */
90
89#define ISALNUM(c) (IN_CTYPE_DOMAIN (c) && isalnum (c))
90#define ISALPHA(c) (IN_CTYPE_DOMAIN (c) && isalpha (c))
91#define ISDIGIT(c) (IN_CTYPE_DOMAIN (c) && isdigit (c))
92#define ISLOWER(c) (IN_CTYPE_DOMAIN (c) && islower (c))
93#define ISPRINT(c) (IN_CTYPE_DOMAIN (c) && isprint (c))
94#define ISUPPER(c) (IN_CTYPE_DOMAIN (c) && isupper (c))
95#define ISXDIGIT(c) (IN_CTYPE_DOMAIN (c) && isxdigit (c))
96

--- 67 unchanged lines hidden ---
91#define ISALNUM(c) (IN_CTYPE_DOMAIN (c) && isalnum (c))
92#define ISALPHA(c) (IN_CTYPE_DOMAIN (c) && isalpha (c))
93#define ISDIGIT(c) (IN_CTYPE_DOMAIN (c) && isdigit (c))
94#define ISLOWER(c) (IN_CTYPE_DOMAIN (c) && islower (c))
95#define ISPRINT(c) (IN_CTYPE_DOMAIN (c) && isprint (c))
96#define ISUPPER(c) (IN_CTYPE_DOMAIN (c) && isupper (c))
97#define ISXDIGIT(c) (IN_CTYPE_DOMAIN (c) && isxdigit (c))
98

--- 67 unchanged lines hidden ---