summaryrefslogtreecommitdiffstats
path: root/mbbsd/screen.c
diff options
context:
space:
mode:
authorscw <scw@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-06-20 16:42:52 +0800
committerscw <scw@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-06-20 16:42:52 +0800
commitbdd31693cd3b73ea5a3a9bdc78540e0377df59ec (patch)
treeb9fde34a33abcfe5ffd492346691588ca479496c /mbbsd/screen.c
parent74cd20707c189fc522e7b44653f1d59a6219586c (diff)
downloadpttbbs-bdd31693cd3b73ea5a3a9bdc78540e0377df59ec.tar
pttbbs-bdd31693cd3b73ea5a3a9bdc78540e0377df59ec.tar.gz
pttbbs-bdd31693cd3b73ea5a3a9bdc78540e0377df59ec.tar.bz2
pttbbs-bdd31693cd3b73ea5a3a9bdc78540e0377df59ec.tar.lz
pttbbs-bdd31693cd3b73ea5a3a9bdc78540e0377df59ec.tar.xz
pttbbs-bdd31693cd3b73ea5a3a9bdc78540e0377df59ec.tar.zst
pttbbs-bdd31693cd3b73ea5a3a9bdc78540e0377df59ec.zip
Add statistic program for angel.
fix some warning and add svn:keywords Id for several files. git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2072 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/screen.c')
-rw-r--r--mbbsd/screen.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/mbbsd/screen.c b/mbbsd/screen.c
index 8c91434b..6ad8920b 100644
--- a/mbbsd/screen.c
+++ b/mbbsd/screen.c
@@ -306,6 +306,11 @@ outc(unsigned char c)
if (cur_col < slp->smod)
slp->smod = cur_col;
}
+#if 1
+ ++cur_col;
+#else
+ /* this comparison is always false (cur_col is unsigned char and scr_cols
+ * is 511). */
if (++cur_col >= scr_cols) {
if (standing && (slp->mode & STANDOUT)) {
standing = 0;
@@ -315,6 +320,7 @@ outc(unsigned char c)
if (cur_ln < scr_lns)
cur_ln++;
}
+#endif
}
int