diff options
author | wens <wens@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2008-06-15 22:51:45 +0800 |
---|---|---|
committer | wens <wens@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2008-06-15 22:51:45 +0800 |
commit | 812510403b36b7dd967bbf37d3f0b0b54cf9b188 (patch) | |
tree | 72e68a6f3151d17a54b1b2501b68ee149e71f00e /mbbsd/board.c | |
parent | d2619aa396af53702b780fa8bfd34a78abc0edc6 (diff) | |
download | pttbbs-812510403b36b7dd967bbf37d3f0b0b54cf9b188.tar pttbbs-812510403b36b7dd967bbf37d3f0b0b54cf9b188.tar.gz pttbbs-812510403b36b7dd967bbf37d3f0b0b54cf9b188.tar.bz2 pttbbs-812510403b36b7dd967bbf37d3f0b0b54cf9b188.tar.lz pttbbs-812510403b36b7dd967bbf37d3f0b0b54cf9b188.tar.xz pttbbs-812510403b36b7dd967bbf37d3f0b0b54cf9b188.tar.zst pttbbs-812510403b36b7dd967bbf37d3f0b0b54cf9b188.zip |
Use general Vector_*.
include/proto.h in last commit should be in this one :(
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4359 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/board.c')
-rw-r--r-- | mbbsd/board.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/mbbsd/board.c b/mbbsd/board.c index 57ff1e8b..60a8aa4c 100644 --- a/mbbsd/board.c +++ b/mbbsd/board.c @@ -1042,20 +1042,20 @@ search_local_board() { int num; char genbuf[IDLEN + 2]; - struct NameList namelist; + struct Vector namelist; move(0, 0); clrtoeol(); - NameList_init(&namelist); + Vector_init(&namelist, IDLEN + 1); assert(brdnum<=nbrdsize); - NameList_resizefor(&namelist, brdnum); + Vector_resize(&namelist, brdnum); for (num = 0; num < brdnum; num++) if (!IS_LISTING_FAV() || (nbrd[num].myattr & NBRD_BOARD && HasBoardPerm(B_BH(&nbrd[num]))) ) - NameList_add(&namelist, B_BH(&nbrd[num])->brdname); + Vector_add(&namelist, B_BH(&nbrd[num])->brdname); namecomplete2(&namelist, ANSI_REVERSE "【 搜尋所在位置看板 】" ANSI_RESET "\n請輸入看板名稱(按空白鍵自動搜尋): ", genbuf); - NameList_delete(&namelist); + Vector_delete(&namelist); for (num = 0; num < brdnum; num++) |