From a298d6c46128c1b594e39578024933a696de741f Mon Sep 17 00:00:00 2001 From: piaip Date: Mon, 14 Jan 2008 11:50:05 +0000 Subject: - bbs: add title for AID display - xyz: prevent mmap crash for note_ans - pfterm/screen: add getyx_ansi - fav: add ASKBOARD to new account default favs - record: add setaidfile() git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3834 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- include/proto.h | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) (limited to 'include') diff --git a/include/proto.h b/include/proto.h index 5136abaa..c46c9791 100644 --- a/include/proto.h +++ b/include/proto.h @@ -574,7 +574,7 @@ ChessInfo* reversi_replay(FILE* fp); /* screen/pfterm (ncurses-like) */ void initscr (void); int resizeterm (int rows, int cols); -void getyx (int *y, int *x); +void getyx (int *py, int *px); void move (int y, int x); void clear (void); void clrtoeol (void); @@ -598,6 +598,7 @@ void outns(const char *str, int n); void outstr(const char *str); // prepare and print a complete non-ANSI string. int inansistr(char *str, int n); void move_ansi(int y, int x); +void getyx_ansi(int *py, int *px); void region_scroll_up(int top, int bottom); // deprecated void standout(void); @@ -605,6 +606,15 @@ void standend(void); #define HAVE_GRAYOUT void grayout(int start, int end, int level); +/* AIDS */ +typedef uint64_t aidu_t; +aidu_t fn2aidu(char *fn); +char *aidu2aidc(char *buf, aidu_t aidu); +char *aidu2fn(char *buf, aidu_t aidu); +aidu_t aidc2aidu(char *aidc); +int search_aidu(char *bfile, aidu_t aidu); +/* end of AIDS */ + /* stuff */ #define isprint2(ch) ((ch & 0x80) || isprint(ch)) #define not_alpha(ch) (ch < 'A' || (ch > 'Z' && ch < 'a') || ch > 'z') @@ -631,6 +641,7 @@ int is_BM(const char *list); void setbdir(char *buf, const char *boardname); void setbfile(char *buf, const char *boardname, const char *fname); void setbnfile(char *buf, const char *boardname, const char *fname, int n); +void setaidfile(char *buf, const char *bn, aidu_t aidu); char *subject(char *title); int is_validuserid(const char *id); void setdirpath(char *buf, const char *direct, const char *fname); @@ -659,15 +670,6 @@ void pressanykey_or_callangel(void); #endif void syncnow(void); -/* AIDS */ -typedef uint64_t aidu_t; -aidu_t fn2aidu(char *fn); -char *aidu2aidc(char *buf, aidu_t aidu); -char *aidu2fn(char *buf, aidu_t aidu); -aidu_t aidc2aidu(char *aidc); -int search_aidu(char *bfile, aidu_t aidu); -/* end of AIDS */ - /* syspost */ int post_msg(const char* bname, const char* title, const char *msg, const char* author); int post_file(const char *bname, const char *title, const char *filename, const char *author); -- cgit v1.2.3