From 8ce3248f5a4eb11395335f9055a8f0e8afa8385b Mon Sep 17 00:00:00 2001 From: piaip Date: Fri, 21 Dec 2007 19:17:14 +0000 Subject: - change configuration macro names git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3724 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- include/config.h | 6 +++++- mbbsd/pmore.c | 4 ++-- mbbsd/screen.c | 4 ++-- 3 files changed, 9 insertions(+), 5 deletions(-) diff --git a/include/config.h b/include/config.h index 8ed367ab..945cea0d 100644 --- a/include/config.h +++ b/include/config.h @@ -202,9 +202,13 @@ #define VICE_MIN (1) /* 程祇布肂 */ #endif // VICE_MIN -/* more.c いゅ彻计(lines/22), +4 for safe */ +/* (deprecated) more.c いゅ彻计(lines/22), +4 for safe */ #define MAX_PAGES (MAX_EDIT_LINE / 22 + 4) +/* piaip modules */ +#define USE_PMORE (1) // pmore is the only pager now. +// #define USE_PFTERM (1) // pfterm is still experimental + /* 临ゼ俱瞶 */ #define MAX_FRIEND (256) /* 更 cache ぇ程狟ね计ヘ */ #define MAX_REJECT (32) /* 更 cache ぇ程胊计ヘ */ diff --git a/mbbsd/pmore.c b/mbbsd/pmore.c index e95ad341..fe39a389 100644 --- a/mbbsd/pmore.c +++ b/mbbsd/pmore.c @@ -69,10 +69,10 @@ // if you are working with a terminal without ANSI control, // you are using a poor term (define PMORE_USING_POOR_TERM). -#ifndef HAVE_PFTERM // pfterm is a good terminal system. +#ifndef USE_PFTERM // pfterm is a good terminal system. #define PMORE_USING_POOR_TERM #define PMORE_WORKAROUND_CLRTOEOL // try to work with poor terminal sys -#endif // HAVE_PFTERM +#endif // USE_PFTERM // -------------------------------------------------------------- // ----------------------------------------------------------- diff --git a/mbbsd/screen.c b/mbbsd/screen.c index 51e8a559..6969d2ab 100644 --- a/mbbsd/screen.c +++ b/mbbsd/screen.c @@ -1,7 +1,7 @@ /* $Id$ */ #include "bbs.h" -#if !defined(EXP_PFTERM) && !defined(HAVE_PFTERM) +#if !defined(EXP_PFTERM) && !defined(USE_PFTERM) #define o_clear() output(clearbuf,clearbuflen) #define o_cleol() output(cleolbuf,cleolbuflen) @@ -701,7 +701,7 @@ void scr_restore(const screen_backup_t *old) redrawwin(); } -#endif // !defined(EXP_PFTERM) && !defined(HAVE_PFTERM) +#endif // !defined(EXP_PFTERM) && !defined(USE_PFTERM) /* vim:sw=4 */ -- cgit v1.2.3