From ff24026ce0222c9b0bc78ee075dd0ca9bb50c193 Mon Sep 17 00:00:00 2001 From: piaip Date: Fri, 5 Aug 2005 20:19:49 +0000 Subject: large terminal rules. - vmsg with formats is now vmsgf. - deprecates vmsg_lines = i hope changes in admin does not make trouble because the old way looks like a mess within my terminal. - pending issue: = pressanykey_or_callangel is in oldway = showtitle, msg_seperator, and others should also be fixed git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2995 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- include/proto.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'include') diff --git a/include/proto.h b/include/proto.h index 95b29d17..699c1ff8 100644 --- a/include/proto.h +++ b/include/proto.h @@ -551,8 +551,7 @@ void screen_restore(int len, screenline_t *bp, const void *buf); #define isprint2(ch) ((ch & 0x80) || isprint(ch)) #define not_alpha(ch) (ch < 'A' || (ch > 'Z' && ch < 'a') || ch > 'z') #define not_alnum(ch) (ch < '0' || (ch > '9' && ch < 'A') || (ch > 'Z' && ch < 'a') || ch > 'z') -#define pressanykey() vmsg_lines(b_lines, NULL) -int vmsg_lines(int lines, const char *msg); +#define pressanykey() vmsg(NULL) int log_user(const char *fmt, ...) GCC_CHECK_FORMAT(1,2); unsigned int ipstr2int(const char *ip); time4_t gettime(int line, time4_t dt, const char* head); @@ -560,7 +559,8 @@ void setcalfile(char *buf, char *userid); void stand_title(const char *title); char getans(const char *fmt,...) GCC_CHECK_FORMAT(1,2); int getkey(const char *fmt,...) GCC_CHECK_FORMAT(1,2); -int vmsg(const char *fmt,...) GCC_CHECK_FORMAT(1,2); +int vmsgf(const char *fmt,...) GCC_CHECK_FORMAT(1,2); +int vmsg(const char *msg); void trim(char *buf); int show_file(const char *filename, int y, int lines, int mode); void bell(void); -- cgit v1.2.3