diff options
author | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2008-01-14 19:50:05 +0800 |
---|---|---|
committer | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2008-01-14 19:50:05 +0800 |
commit | a298d6c46128c1b594e39578024933a696de741f (patch) | |
tree | e07278a6e7ddeefa6f308cf83b0085c45e3e42f5 /include | |
parent | d9e73c38f6bdb4e85ba58ccb2382f15eb9186335 (diff) | |
download | pttbbs-a298d6c46128c1b594e39578024933a696de741f.tar pttbbs-a298d6c46128c1b594e39578024933a696de741f.tar.gz pttbbs-a298d6c46128c1b594e39578024933a696de741f.tar.bz2 pttbbs-a298d6c46128c1b594e39578024933a696de741f.tar.lz pttbbs-a298d6c46128c1b594e39578024933a696de741f.tar.xz pttbbs-a298d6c46128c1b594e39578024933a696de741f.tar.zst pttbbs-a298d6c46128c1b594e39578024933a696de741f.zip |
- 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
Diffstat (limited to 'include')
-rw-r--r-- | include/proto.h | 22 |
1 files changed, 12 insertions, 10 deletions
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); |