diff options
author | victor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2004-09-10 08:49:47 +0800 |
---|---|---|
committer | victor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2004-09-10 08:49:47 +0800 |
commit | 540cfa70e8e8b4db3cc2addccfcbeeb69fffa033 (patch) | |
tree | 6a4dec7d69249e48a6f79c4436eb634cb28744b2 /mbbsd/edit.c | |
parent | a8a0ef3c4d10bf576054dc26348d9b4e6efeecc2 (diff) | |
download | pttbbs-540cfa70e8e8b4db3cc2addccfcbeeb69fffa033.tar pttbbs-540cfa70e8e8b4db3cc2addccfcbeeb69fffa033.tar.gz pttbbs-540cfa70e8e8b4db3cc2addccfcbeeb69fffa033.tar.bz2 pttbbs-540cfa70e8e8b4db3cc2addccfcbeeb69fffa033.tar.lz pttbbs-540cfa70e8e8b4db3cc2addccfcbeeb69fffa033.tar.xz pttbbs-540cfa70e8e8b4db3cc2addccfcbeeb69fffa033.tar.zst pttbbs-540cfa70e8e8b4db3cc2addccfcbeeb69fffa033.zip |
merge back from branch victor.solaris
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2189 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/edit.c')
-rw-r--r-- | mbbsd/edit.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/mbbsd/edit.c b/mbbsd/edit.c index aa08e7c7..088c7717 100644 --- a/mbbsd/edit.c +++ b/mbbsd/edit.c @@ -132,7 +132,7 @@ ansi2n(int ansix, textline_t * line) while (*tmp) { if (*tmp == KEY_ESC) { - while ((ch = *tmp) && !isalpha(ch)) + while ((ch = *tmp) && !isalpha((int)ch)) tmp++; if (ch) tmp++; @@ -158,7 +158,7 @@ n2ansi(int nx, textline_t * line) while (*tmp) { if (*tmp == KEY_ESC) { - while ((ch = *tmp) && !isalpha(ch)) + while ((ch = *tmp) && !isalpha((int)ch)) tmp++; if (ch) tmp++; @@ -992,7 +992,7 @@ addsignature(FILE * fp, int ifuseanony) if (!buf[0]) buf[0] = ch; - if (isdigit(buf[0])) + if (isdigit((int)buf[0])) ch = buf[0]; else ch = '1' + rand() % num; @@ -2012,7 +2012,7 @@ vedit(char *fpath, int saveheader, int *islocal) int fg, bg; strcpy(color, "\033["); - if (isdigit(*apos)) { + if (isdigit((int)*apos)) { sprintf(color,"%s%c", color, *(apos++)); if (*apos) strcat(color, ";"); @@ -2133,25 +2133,25 @@ vedit(char *fpath, int saveheader, int *islocal) break; case 'f': while (currpnt < currline->len && - isalnum(currline->data[++currpnt])); + isalnum((int)currline->data[++currpnt])); while (currpnt < currline->len && - isspace(currline->data[++currpnt])); + isspace((int)currline->data[++currpnt])); line_dirty = 1; break; case 'b': - while (currpnt && isalnum(currline->data[--currpnt])); - while (currpnt && isspace(currline->data[--currpnt])); + while (currpnt && isalnum((int)currline->data[--currpnt])); + while (currpnt && isspace((int)currline->data[--currpnt])); line_dirty = 1; break; case 'd': while (currpnt < currline->len) { delete_char(); - if (!isalnum(currline->data[currpnt])) + if (!isalnum((int)currline->data[currpnt])) break; } while (currpnt < currline->len) { delete_char(); - if (!isspace(currline->data[currpnt])) + if (!isspace((int)currline->data[currpnt])) break; } line_dirty = 1; |