wrappers, change other ctype wrappers to take wint_t instead
of wchar_t, and rename some functions for consistency. Changes
to is_alnum_mbchar(), is_blank_char() (renamed nisblank()),
- is_blank_mbchar(), is_blank_wchar() (renamed niswblank()), and
- is_cntrl_wchar(), etc.; removal of is_alnum_char() and
- is_alnum_wchar(). (DLR)
+ is_blank_mbchar(), is_blank_wchar() (renamed niswblank()),
+ is_cntrl_wchar(), control_rep(), control_mbrep(), etc.;
+ removal of is_alnum_char() and is_alnum_wchar(). (DLR)
- chars.c:
make_mbstring()
- Change erroneous ENABLE_EXTRA #ifdef to NANO_EXTRA to fix a
/* c is a control character. It displays as ^@, ^?, or ^[ch], where ch
* is c + 64. We return that character. */
-unsigned char control_rep(unsigned char c)
+char control_rep(char c)
{
/* Treat newlines embedded in a line as encoded nulls. */
if (c == '\n')
} else {
#endif
*crep_len = 1;
- *crep = control_rep((unsigned char)*c);
+ *crep = control_rep(*c);
return crep;
#ifdef NANO_WIDE
bool is_cntrl_wchar(wint_t wc);
#endif
bool is_cntrl_mbchar(const char *c);
-unsigned char control_rep(unsigned char c);
+char control_rep(char c);
#ifdef NANO_WIDE
wchar_t control_wrep(wchar_t c);
#endif