diff options
author | kcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2009-06-13 00:36:08 +0800 |
---|---|---|
committer | kcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2009-06-13 00:36:08 +0800 |
commit | db8e4abee4060e1bf59f9feac2557dd1a72aa3c2 (patch) | |
tree | 046afa14e4d0244d01f4de832710863f93bd02bf /mbbsd/board.c | |
parent | 2254eb52d8cb36f32c0151e0f1c3be5e5281274b (diff) | |
download | pttbbs-db8e4abee4060e1bf59f9feac2557dd1a72aa3c2.tar pttbbs-db8e4abee4060e1bf59f9feac2557dd1a72aa3c2.tar.gz pttbbs-db8e4abee4060e1bf59f9feac2557dd1a72aa3c2.tar.bz2 pttbbs-db8e4abee4060e1bf59f9feac2557dd1a72aa3c2.tar.lz pttbbs-db8e4abee4060e1bf59f9feac2557dd1a72aa3c2.tar.xz pttbbs-db8e4abee4060e1bf59f9feac2557dd1a72aa3c2.tar.zst pttbbs-db8e4abee4060e1bf59f9feac2557dd1a72aa3c2.zip |
vedit revise
* move global save_title[] to local
* vedit() vedit2() interface change
* add veditfile() for editing normal file
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4582 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/board.c')
-rw-r--r-- | mbbsd/board.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/mbbsd/board.c b/mbbsd/board.c index 84b46af6..626e9c32 100644 --- a/mbbsd/board.c +++ b/mbbsd/board.c @@ -207,7 +207,7 @@ b_post_note(void) getdata(b_lines - 2, 0, "自訂發文注意事項: (y)編輯/(d)刪除/(n)不變? [y/N/d]:", yn, sizeof(yn), LCECHO); if (yn[0] == 'y') - vedit(buf, NA, NULL); + veditfile(buf); else if (yn[0] == 'd') unlink(buf); @@ -217,7 +217,7 @@ b_post_note(void) getdata(b_lines - 2, 0, "自訂競標文章注意事項: (y)編輯/(d)刪除/(n)不變? [y/N/d]:", yn, sizeof(yn), LCECHO); if (yn[0] == 'y') - vedit(buf, NA, NULL); + veditfile(buf); else if (yn[0] == 'd') unlink(buf); @@ -260,7 +260,7 @@ b_posttype() continue; setbnfile(filepath, bp->brdname, "postsample", i); - aborted = vedit(filepath, NA, NULL); + aborted = veditfile(filepath); if (aborted == -1) { clear(); posttype_f &= ~(1<<i); |