summaryrefslogtreecommitdiff
path: root/forwback.c
diff options
context:
space:
mode:
Diffstat (limited to 'forwback.c')
-rw-r--r--forwback.c35
1 files changed, 25 insertions, 10 deletions
diff --git a/forwback.c b/forwback.c
index 056f4752701ce..83ae78efb28c8 100644
--- a/forwback.c
+++ b/forwback.c
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 1984-2015 Mark Nudelman
+ * Copyright (C) 1984-2016 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.
@@ -46,7 +46,7 @@ extern char *tagoption;
* Sound the bell to indicate user is trying to move past end of file.
*/
static void
-eof_bell(void)
+eof_bell()
{
if (quiet == NOT_QUIET)
bell();
@@ -58,7 +58,7 @@ eof_bell(void)
* Check to see if the end of file is currently displayed.
*/
public int
-eof_displayed(void)
+eof_displayed()
{
POSITION pos;
@@ -85,7 +85,7 @@ eof_displayed(void)
* Check to see if the entire file is currently displayed.
*/
public int
-entire_file_displayed(void)
+entire_file_displayed()
{
POSITION pos;
@@ -105,7 +105,7 @@ entire_file_displayed(void)
* for the first time.
*/
public void
-squish_check(void)
+squish_check()
{
if (!squished)
return;
@@ -123,7 +123,12 @@ squish_check(void)
* The first real line after the blanks will start at ch_zero().
*/
public void
-forw(int n, POSITION pos, int force, int only_last, int nblank)
+forw(n, pos, force, only_last, nblank)
+ register int n;
+ POSITION pos;
+ int force;
+ int only_last;
+ int nblank;
{
int nlines = 0;
int do_repaint;
@@ -292,7 +297,11 @@ forw(int n, POSITION pos, int force, int only_last, int nblank)
* Display n lines, scrolling backward.
*/
public void
-back(int n, POSITION pos, int force, int only_last)
+back(n, pos, force, only_last)
+ register int n;
+ POSITION pos;
+ int force;
+ int only_last;
{
int nlines = 0;
int do_repaint;
@@ -350,7 +359,10 @@ back(int n, POSITION pos, int force, int only_last)
* Start just after the line currently displayed at the bottom of the screen.
*/
public void
-forward(int n, int force, int only_last)
+forward(n, force, only_last)
+ int n;
+ int force;
+ int only_last;
{
POSITION pos;
@@ -399,7 +411,10 @@ forward(int n, int force, int only_last)
* Start just before the line currently displayed at the top of the screen.
*/
public void
-backward(int n, int force, int only_last)
+backward(n, force, only_last)
+ int n;
+ int force;
+ int only_last;
{
POSITION pos;
@@ -419,7 +434,7 @@ backward(int n, int force, int only_last)
* top_scroll, as well as back_scroll.
*/
public int
-get_back_scroll(void)
+get_back_scroll()
{
if (no_back_scroll)
return (0);