diff options
author | wens <wens@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2008-06-16 15:54:53 +0800 |
---|---|---|
committer | wens <wens@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2008-06-16 15:54:53 +0800 |
commit | e8496e06c1d6c3d5ff92682f6d2ae43553e942bc (patch) | |
tree | 12cebe2573d882a0af428f22b09a69cf2ff209bc /mbbsd | |
parent | f38adb6fe5a682d7799712a85185a7bcab37e680 (diff) | |
download | pttbbs-e8496e06c1d6c3d5ff92682f6d2ae43553e942bc.tar pttbbs-e8496e06c1d6c3d5ff92682f6d2ae43553e942bc.tar.gz pttbbs-e8496e06c1d6c3d5ff92682f6d2ae43553e942bc.tar.bz2 pttbbs-e8496e06c1d6c3d5ff92682f6d2ae43553e942bc.tar.lz pttbbs-e8496e06c1d6c3d5ff92682f6d2ae43553e942bc.tar.xz pttbbs-e8496e06c1d6c3d5ff92682f6d2ae43553e942bc.tar.zst pttbbs-e8496e06c1d6c3d5ff92682f6d2ae43553e942bc.zip |
Remove unused code.
Use visio API to display prompt.
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4372 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd')
-rw-r--r-- | mbbsd/name.c | 34 |
1 files changed, 3 insertions, 31 deletions
diff --git a/mbbsd/name.c b/mbbsd/name.c index fd0ce441..1a11e967 100644 --- a/mbbsd/name.c +++ b/mbbsd/name.c @@ -1,18 +1,7 @@ /* $Id$ */ #include "bbs.h" -typedef char (*arrptr)[]; -/* name complete for user ID */ - -static void -prompt_more() -{ - move(b_lines, 0); clrtoeol(); - outs(ANSI_COLOR(1;36;44)); - prints("%-*s" ANSI_RESET, t_columns-2, " ◆ 按空白鍵可列出更多項目 "); -} - -//----------------------------------------------------------------------- +#define MORE_MSG "按空白鍵可列出更多項目" void ShowVector(struct Vector *self, int row, int column, const char *prompt) @@ -63,23 +52,6 @@ ToggleVector(struct Vector *list, int *recipient, const char *listfile, const ch } } -int -chkstr(char *otag, const char *tag, const char *name) -{ - char ch; - const char *oname = name; - - while (*tag) { - ch = *name++; - if (*tag != chartoupper(ch)) - return 0; - tag++; - } - if (*tag && *name == '\0') - strcpy(otag, oname); - return 1; -} - void namecomplete2(struct Vector *namelist, const char *prompt, char *data) { @@ -158,7 +130,7 @@ namecomplete2(struct Vector *namelist, const char *prompt, char *data) len = Vector_MaxLen(&sublist, viewoffset, p_lines); } if (viewoffset < Vector_length(&sublist)) { - prompt_more(); + vshowmsg(MORE_MSG); } continue; } @@ -373,7 +345,7 @@ generalnamecomplete(const char *prompt, char *data, int len, size_t nmemb, col += len + 2; } if (morelist != end + 1) { - prompt_more(); + vshowmsg(MORE_MSG); } continue; |