aboutsummaryrefslogtreecommitdiff
path: root/forwback.c
diff options
context:
space:
mode:
Diffstat (limited to 'forwback.c')
-rw-r--r--forwback.c33
1 files changed, 9 insertions, 24 deletions
diff --git a/forwback.c b/forwback.c
index 721a0286a7b8..056f4752701c 100644
--- a/forwback.c
+++ b/forwback.c
@@ -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()
+eof_bell(void)
{
if (quiet == NOT_QUIET)
bell();
@@ -58,7 +58,7 @@ eof_bell()
* Check to see if the end of file is currently displayed.
*/
public int
-eof_displayed()
+eof_displayed(void)
{
POSITION pos;
@@ -85,7 +85,7 @@ eof_displayed()
* Check to see if the entire file is currently displayed.
*/
public int
-entire_file_displayed()
+entire_file_displayed(void)
{
POSITION pos;
@@ -105,7 +105,7 @@ entire_file_displayed()
* for the first time.
*/
public void
-squish_check()
+squish_check(void)
{
if (!squished)
return;
@@ -123,12 +123,7 @@ squish_check()
* The first real line after the blanks will start at ch_zero().
*/
public void
-forw(n, pos, force, only_last, nblank)
- register int n;
- POSITION pos;
- int force;
- int only_last;
- int nblank;
+forw(int n, POSITION pos, int force, int only_last, int nblank)
{
int nlines = 0;
int do_repaint;
@@ -297,11 +292,7 @@ forw(n, pos, force, only_last, nblank)
* Display n lines, scrolling backward.
*/
public void
-back(n, pos, force, only_last)
- register int n;
- POSITION pos;
- int force;
- int only_last;
+back(int n, POSITION pos, int force, int only_last)
{
int nlines = 0;
int do_repaint;
@@ -359,10 +350,7 @@ back(n, pos, force, only_last)
* Start just after the line currently displayed at the bottom of the screen.
*/
public void
-forward(n, force, only_last)
- int n;
- int force;
- int only_last;
+forward(int n, int force, int only_last)
{
POSITION pos;
@@ -411,10 +399,7 @@ forward(n, force, only_last)
* Start just before the line currently displayed at the top of the screen.
*/
public void
-backward(n, force, only_last)
- int n;
- int force;
- int only_last;
+backward(int n, int force, int only_last)
{
POSITION pos;
@@ -434,7 +419,7 @@ backward(n, force, only_last)
* top_scroll, as well as back_scroll.
*/
public int
-get_back_scroll()
+get_back_scroll(void)
{
if (no_back_scroll)
return (0);