summaryrefslogtreecommitdiffstats
path: root/mbbsd/more.c
diff options
context:
space:
mode:
authorkcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2003-09-07 13:49:13 +0800
committerkcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2003-09-07 13:49:13 +0800
commit64fa801fe4bd90430d601b72376a3eb74d7639fa (patch)
tree9d26964ba0179c7fb45cd377dc854d84124a5b8a /mbbsd/more.c
parent4090fbd716e44c899e25e4bfa3d1376620051b62 (diff)
downloadpttbbs-64fa801fe4bd90430d601b72376a3eb74d7639fa.tar
pttbbs-64fa801fe4bd90430d601b72376a3eb74d7639fa.tar.gz
pttbbs-64fa801fe4bd90430d601b72376a3eb74d7639fa.tar.bz2
pttbbs-64fa801fe4bd90430d601b72376a3eb74d7639fa.tar.lz
pttbbs-64fa801fe4bd90430d601b72376a3eb74d7639fa.tar.xz
pttbbs-64fa801fe4bd90430d601b72376a3eb74d7639fa.tar.zst
pttbbs-64fa801fe4bd90430d601b72376a3eb74d7639fa.zip
code cleanup
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1168 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/more.c')
-rw-r--r--mbbsd/more.c17
1 files changed, 1 insertions, 16 deletions
diff --git a/mbbsd/more.c b/mbbsd/more.c
index b4fe1948..2a476632 100644
--- a/mbbsd/more.c
+++ b/mbbsd/more.c
@@ -1,4 +1,4 @@
-/* $Id: more.c,v 1.24 2003/01/23 18:39:23 in2 Exp $ */
+/* $Id$ */
#include "bbs.h"
#define MORE_BUFSIZE 4096
#define MORE_WINSIZE 4096
@@ -117,19 +117,6 @@ more_readln(int fd, unsigned char *buf)
return bytes;
}
-/*
- * not used static int readln(FILE *fp, char *buf) { register int ch, i, len,
- * bytes, in_ansi;
- *
- * len = bytes = in_ansi = i = 0; while(len < 80 && i < ANSILINELEN && (ch =
- * getc(fp)) != EOF) { bytes++; if(ch == '\n') break; else if(ch == '\t') do
- * { buf[i++] = ' '; } while((++len & 7) && len < 80); else if(ch == '\a')
- * beep = 1; else if(ch == '\033') { if(showansi) buf[i++] = ch; in_ansi = 1;
- * } else if(in_ansi) { if(showansi) buf[i++] = ch;
- * if(!strchr("[0123456789;,", ch)) in_ansi = 0; } else if(isprint2(ch)) {
- * len++; buf[i++] = ch; } } buf[i] = '\0'; return bytes; }
- */
-
int
more(char *fpath, int promptend)
{
@@ -137,8 +124,6 @@ more(char *fpath, int promptend)
char *ptr, *word = NULL, buf[ANSILINELEN + 1];
struct stat st;
- /* rocker */
- //FILE * fp;
int fd, fsize;
unsigned int pagebreak[MAX_PAGES], pageno, lino = 0;