summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorkcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2009-06-13 00:36:08 +0800
committerkcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2009-06-13 00:36:08 +0800
commitdb8e4abee4060e1bf59f9feac2557dd1a72aa3c2 (patch)
tree046afa14e4d0244d01f4de832710863f93bd02bf /include
parent2254eb52d8cb36f32c0151e0f1c3be5e5281274b (diff)
downloadpttbbs-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 'include')
-rw-r--r--include/common.h1
-rw-r--r--include/proto.h17
2 files changed, 9 insertions, 9 deletions
diff --git a/include/common.h b/include/common.h
index 4991036b..d3fee9b5 100644
--- a/include/common.h
+++ b/include/common.h
@@ -251,6 +251,7 @@
#define EDITFLAG_ALLOWLARGE (0x00000004)
#define EDITFLAG_ALLOWTITLE (0x00000008)
// #define EDITFLAG_ANONYMOUS (0x00000010)
+#define EDIT_ABORTED -1
/* ----------------------------------------------------- */
/* Grayout Levels */
diff --git a/include/proto.h b/include/proto.h
index 66226d9d..2bcd16e1 100644
--- a/include/proto.h
+++ b/include/proto.h
@@ -69,7 +69,7 @@ int CheckPostPerm(void);
int CheckPostRestriction(int);
void anticrosspost(void);
int Select(void);
-void do_reply_title(int row, const char *title);
+void do_reply_title(int row, const char *title, char result[STRLEN]);
void outgo_post(const fileheader_t *fh, const char *board, const char *userid, const char *username);
int edit_title(int ent, fileheader_t *fhdr, const char *direct);
int whereami(void);
@@ -176,15 +176,14 @@ int main_dark(int fd,userinfo_t *uin);
int dice_main(void);
/* edit */
-int vedit(const char *fpath, int saveheader, int *islocal);
-int vedit2(const char *fpath, int saveheader, int *islocal, int flags);
-void write_header(FILE *fp, char *mytitle);
+int vedit(const char *fpath, int saveheader, int *islocal, char save_title[STRLEN]);
+int vedit2(const char *fpath, int saveheader, int *islocal, char save_title[STRLEN], int flags);
+int veditfile(const char *fpath);
+void write_header(FILE *fp, const char *mytitle);
void addsignature(FILE *fp, int ifuseanony);
void auto_backup(void);
void restore_backup(void);
char *ask_tmpbuf(int y);
-void edit_outs(const char *text);
-void edit_outs_n(const char *text, int n);
/* emaildb */
#ifdef USE_EMAILDB
@@ -315,7 +314,7 @@ int m_read(void);
int doforward(const char *direct, const fileheader_t *fh, int mode);
int mail_reply(int ent, fileheader_t *fhdr, const char *direct);
int bsmtp(const char *fpath, const char *title, const char *rcpt, const char *from);
-void hold_mail(const char *fpath, const char *receiver);
+void hold_mail(const char *fpath, const char *receiver, const char *title);
void m_init(void);
int chkmailbox(void);
int mail_man(void);
@@ -630,8 +629,8 @@ int u_detectDBCSAwareEvilClient();
#define ISDBCSAWARE() (cuser.uflag & DBCSAWARE_FLAG)
/* vote */
-void b_suckinfile(FILE *fp, char *fname);
-void b_suckinfile_invis(FILE * fp, char *fname, const char *boardname);
+void b_suckinfile(FILE *fp, const char *fname);
+void b_suckinfile_invis(FILE * fp, const char *fname, const char *boardname);
int b_results(void);
int b_vote(void);
int b_vote_maintain(void);