diff options
author | victor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2004-01-09 01:15:14 +0800 |
---|---|---|
committer | victor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2004-01-09 01:15:14 +0800 |
commit | 23c0ec2222be9680dce65e51b9c19ba217ae83a8 (patch) | |
tree | 3c167ce004fddb775502f8183b538124975bd7f2 /mbbsd/screen.c | |
parent | 834d572d1c3adc23d7a950d77e0432f4d55e7bdf (diff) | |
download | pttbbs-23c0ec2222be9680dce65e51b9c19ba217ae83a8.tar pttbbs-23c0ec2222be9680dce65e51b9c19ba217ae83a8.tar.gz pttbbs-23c0ec2222be9680dce65e51b9c19ba217ae83a8.tar.bz2 pttbbs-23c0ec2222be9680dce65e51b9c19ba217ae83a8.tar.lz pttbbs-23c0ec2222be9680dce65e51b9c19ba217ae83a8.tar.xz pttbbs-23c0ec2222be9680dce65e51b9c19ba217ae83a8.tar.zst pttbbs-23c0ec2222be9680dce65e51b9c19ba217ae83a8.zip |
rm SUPPORT_GB code
mv protos to convert.c
rename Jaky_outs
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1476 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/screen.c')
-rw-r--r-- | mbbsd/screen.c | 52 |
1 files changed, 4 insertions, 48 deletions
diff --git a/mbbsd/screen.c b/mbbsd/screen.c index 24dffc4d..825fb3b7 100644 --- a/mbbsd/screen.c +++ b/mbbsd/screen.c @@ -1,10 +1,6 @@ /* $Id$ */ #include "bbs.h" -#ifdef SUPPORT_GB -static int current_font_type = TYPE_BIG5; -static int gbinited = 0; -#endif #define o_clear() output(clearbuf,clearbuflen) #define o_cleol() output(cleolbuf,cleolbuflen) #define o_scrollrev() output(scrollrev,scrollrevlen) @@ -264,7 +260,7 @@ clrtoline(int line) } } -void +inline void clrtobot() { clrtoline(scr_lns); @@ -397,38 +393,11 @@ outc(unsigned char ch) } } -static void -do_outs(char *str) -{ - while (*str) { - outc(*str++); - } -} -#ifdef SUPPORT_GB -static void -gb_init() -{ - if (current_font_type == TYPE_GB) { - hc_readtab(BBSHOME "/etc/hc.tab"); - } - gbinited = 1; -} - -static void -gb_outs(char *str) -{ - do_outs(hc_convert_str(str, HC_BIGtoGB, HC_DO_SINGLE)); -} -#endif int edit_outs(char *text) { register int column = 0; register char ch; -#ifdef SUPPORT_GB - if (current_font_type == TYPE_GB) - text = hc_convert_str(text, HC_BIGtoGB, HC_DO_SINGLE); -#endif while ((ch = *text++) && (++column < t_columns)) outch(ch == 27 ? '*' : ch); @@ -438,28 +407,15 @@ edit_outs(char *text) void outs(char *str) { -#ifdef SUPPORT_GB - if (current_font_type == TYPE_BIG5) -#endif - do_outs(str); -#ifdef SUPPORT_GB - else { - if (!gbinited) - gb_init(); - gb_outs(str); + while (*str) { + outc(*str++); } -#endif } - /* Jaky */ void -Jaky_outs(char *str, int line) +out_lines(char *str, int line) { -#ifdef SUPPORT_GB - if (current_font_type == TYPE_GB) - str = hc_convert_str(str, HC_BIGtoGB, HC_DO_SINGLE); -#endif while (*str && line) { outc(*str); if (*str == '\n') |