summaryrefslogtreecommitdiffstats
path: root/contrib/less/ch.c
diff options
context:
space:
mode:
authordelphij <delphij@FreeBSD.org>2012-07-24 01:09:11 +0000
committerdelphij <delphij@FreeBSD.org>2012-07-24 01:09:11 +0000
commite39250a384a3ca30e8cb4cfa39a696fa01008590 (patch)
treef62589b704975274e070eea934ccb4e46d830ae3 /contrib/less/ch.c
parent142df5fc8eb25ab65ff82ee819ffb79841bcba18 (diff)
downloadFreeBSD-src-e39250a384a3ca30e8cb4cfa39a696fa01008590.zip
FreeBSD-src-e39250a384a3ca30e8cb4cfa39a696fa01008590.tar.gz
MFV: less v451.
Diffstat (limited to 'contrib/less/ch.c')
-rw-r--r--contrib/less/ch.c27
1 files changed, 19 insertions, 8 deletions
diff --git a/contrib/less/ch.c b/contrib/less/ch.c
index 8e431df..2e2ded7 100644
--- a/contrib/less/ch.c
+++ b/contrib/less/ch.c
@@ -1,11 +1,11 @@
-/*
- * Copyright (C) 1984-2012 Mark Nudelman
- *
- * You may distribute under the terms of either the GNU General Public
- * License or the Less License, as specified in the README file.
- *
- * For more information, see the README file.
- */
+/*
+ * Copyright (C) 1984-2012 Mark Nudelman
+ *
+ * You may distribute under the terms of either the GNU General Public
+ * License or the Less License, as specified in the README file.
+ *
+ * For more information, see the README file.
+ */
/*
@@ -807,6 +807,17 @@ seekable(f)
}
/*
+ * Force EOF to be at the current read position.
+ * This is used after an ignore_eof read, during which the EOF may change.
+ */
+ public void
+ch_set_eof()
+{
+ ch_fsize = ch_fpos;
+}
+
+
+/*
* Initialize file state for a new file.
*/
public void
OpenPOWER on IntegriCloud