diff options
Diffstat (limited to 'text-utils')
-rw-r--r-- | text-utils/column.c | 6 | ||||
-rw-r--r-- | text-utils/more.c | 8 | ||||
-rw-r--r-- | text-utils/pg.c | 14 | ||||
-rw-r--r-- | text-utils/ul.c | 2 |
4 files changed, 15 insertions, 15 deletions
diff --git a/text-utils/column.c b/text-utils/column.c index 0320bd0a..4e6193fb 100644 --- a/text-utils/column.c +++ b/text-utils/column.c @@ -52,7 +52,7 @@ #include "widechar.h" -#ifdef ENABLE_WIDECHAR +#ifdef HAVE_WIDECHAR #define wcs_width(s) wcswidth(s,wcslen(s)) static wchar_t *mbs_to_wcs(const char *); #else @@ -312,7 +312,7 @@ input(fp) } } -#ifdef ENABLE_WIDECHAR +#ifdef HAVE_WIDECHAR static wchar_t *mbs_to_wcs(const char *s) { size_t n; @@ -330,7 +330,7 @@ static wchar_t *mbs_to_wcs(const char *s) } #endif -#ifndef ENABLE_WIDECHAR +#ifndef HAVE_WIDECHAR static char *mtsafe_strtok(char *str, const char *delim, char **ptr) { if (str == NULL) { diff --git a/text-utils/more.c b/text-utils/more.c index 72f2832a..982edbec 100644 --- a/text-utils/more.c +++ b/text-utils/more.c @@ -739,7 +739,7 @@ int get_line(register FILE *f, int *length) int column; static int colflg; -#ifdef ENABLE_WIDECHAR +#ifdef HAVE_WIDECHAR int i; wchar_t wc; int wc_width; @@ -762,7 +762,7 @@ int get_line(register FILE *f, int *length) c = Getc (f); } while (p < &Line[LINSIZ - 1]) { -#ifdef ENABLE_WIDECHAR +#ifdef HAVE_WIDECHAR if (fold_opt && use_mbc_buffer_flag && MB_CUR_MAX > 1) { use_mbc_buffer_flag = 0; state_bak = state; @@ -880,7 +880,7 @@ process_mbc: *length = p - Line; return (column); } else { -#ifdef ENABLE_WIDECHAR +#ifdef HAVE_WIDECHAR if (fold_opt && MB_CUR_MAX > 1) { memset (mbc, '\0', MB_LEN_MAX); mbc_pos = 0; @@ -1808,7 +1808,7 @@ void ttyin (unsigned char buf[], register int nmax, char pchar) { } else if (((cc_t) c == otty.c_cc[VERASE]) && !slash) { if (sp > buf) { -#ifdef ENABLE_WIDECHAR +#ifdef HAVE_WIDECHAR if (MB_CUR_MAX > 1) { wchar_t wc; diff --git a/text-utils/pg.c b/text-utils/pg.c index eac12756..10bdd159 100644 --- a/text-utils/pg.c +++ b/text-utils/pg.c @@ -255,7 +255,7 @@ invopt(char *s) usage(); } -#ifdef ENABLE_WIDECHAR +#ifdef HAVE_WIDECHAR /* * A mbstowcs()-alike function that transparently handles invalid sequences. */ @@ -402,7 +402,7 @@ checkf(void) return 0; } -#ifdef ENABLE_WIDECHAR +#ifdef HAVE_WIDECHAR /* * Return the last character that will fit on the line at col columns * in case MB_CUR_MAX > 1. @@ -489,7 +489,7 @@ endline(unsigned col, char *s) unsigned pos = 0; char *t = s; -#ifdef ENABLE_WIDECHAR +#ifdef HAVE_WIDECHAR if (MB_CUR_MAX > 1) return endline_for_mb(col, s); #endif @@ -776,7 +776,7 @@ endprompt: cmd.count = getcount(cmd.cmdline); } -#ifdef ENABLE_WIDECHAR +#ifdef HAVE_WIDECHAR /* * Remove backspace formatting, for searches * in case MB_CUR_MAX > 1. @@ -817,7 +817,7 @@ colb(char *s) { char *p = s, *q; -#ifdef ENABLE_WIDECHAR +#ifdef HAVE_WIDECHAR if (MB_CUR_MAX > 1) return colb_for_mb(s); #endif @@ -836,7 +836,7 @@ colb(char *s) return s; } -#ifdef ENABLE_WIDECHAR +#ifdef HAVE_WIDECHAR /* * Convert nonprintable characters to spaces * in case MB_CUR_MAX > 1. @@ -867,7 +867,7 @@ makeprint_for_mb(char *s, size_t l) static void makeprint(char *s, size_t l) { -#ifdef ENABLE_WIDECHAR +#ifdef HAVE_WIDECHAR if (MB_CUR_MAX > 1) return makeprint_for_mb(s, l); #endif diff --git a/text-utils/ul.c b/text-utils/ul.c index 6396f2df..76c0a970 100644 --- a/text-utils/ul.c +++ b/text-utils/ul.c @@ -50,7 +50,7 @@ #include "widechar.h" -#ifdef ENABLE_WIDECHAR +#ifdef HAVE_WIDECHAR static int put1wc(int c) /* Output an ASCII character as a wide character */ { if (putwchar(c) == WEOF) |