summaryrefslogtreecommitdiffstats
path: root/mbbsd/pmore.c
diff options
context:
space:
mode:
authorpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2008-04-12 03:02:49 +0800
committerpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2008-04-12 03:02:49 +0800
commitf13d75f06a2fe974e9390c38b8d6ce7125acdae9 (patch)
treedc6eda0e78f1c62ee709d6bf5277bbe0e1264dad /mbbsd/pmore.c
parent59da7e4daea7d53e20b1168f195cce49eb39f8f5 (diff)
downloadpttbbs-f13d75f06a2fe974e9390c38b8d6ce7125acdae9.tar
pttbbs-f13d75f06a2fe974e9390c38b8d6ce7125acdae9.tar.gz
pttbbs-f13d75f06a2fe974e9390c38b8d6ce7125acdae9.tar.bz2
pttbbs-f13d75f06a2fe974e9390c38b8d6ce7125acdae9.tar.lz
pttbbs-f13d75f06a2fe974e9390c38b8d6ce7125acdae9.tar.xz
pttbbs-f13d75f06a2fe974e9390c38b8d6ce7125acdae9.tar.zst
pttbbs-f13d75f06a2fe974e9390c38b8d6ce7125acdae9.zip
- pmore: add M3 porting guide
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4137 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/pmore.c')
-rw-r--r--mbbsd/pmore.c13
1 files changed, 12 insertions, 1 deletions
diff --git a/mbbsd/pmore.c b/mbbsd/pmore.c
index c53e41c9..5db70dec 100644
--- a/mbbsd/pmore.c
+++ b/mbbsd/pmore.c
@@ -156,6 +156,17 @@
// ---------------------------------------------------------------- <PORTING>
// Maple3 Porting
// ----------------------------------------------------------------
+// To use pmore in Maple3(itoc), you need to:
+// (1) [config.h] #define M3_USE_PMORE
+// (2) [more.c] more(): comment the block between fimage:
+// #ifdef M3_USE_PMORE
+// + cmd = pmore(fpath, footer && footer != (char*)-1);
+// +#else
+// if (!(fimage = f_img(fpath, &fsize)))
+// .....................................................
+// free(fimage);
+// +#endif // M3_USE_PMORE
+// if (!cmd) /* ...
#ifdef M3_USE_PMORE
// input/output API
#define getdata(y,x,msg,buf,size,mode) vget(y,x,msg,buf,size,mode)
@@ -182,7 +193,7 @@
#define PMORE_AUTONEXT_ON_RIGHTKEY
#ifndef SHOW_USER_IN_TEXT
# undef PMORE_EXPAND_ESC_STAR
- #endif // SHOW_USER_IN_TEXT
+ #endif // !SHOW_USER_IN_TEXT
// use m3 style separator [none]: comment these if you like Maple2.36/SOB/PTT style
#undef MFDISP_SEP_DEFAULT
#define MFDISP_SEP_DEFAULT MFDISP_SEP_NONE