From 8b1c71ee649fb41155da92995044e451c39ea700 Mon Sep 17 00:00:00 2001 From: dholland Date: Wed, 12 Aug 2009 07:28:40 +0000 Subject: sprinkle static --- hack/hack.topl.c | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) (limited to 'hack/hack.topl.c') diff --git a/hack/hack.topl.c b/hack/hack.topl.c index 138a1db2..e5b8a856 100644 --- a/hack/hack.topl.c +++ b/hack/hack.topl.c @@ -1,4 +1,4 @@ -/* $NetBSD: hack.topl.c,v 1.11 2009/06/29 23:05:33 dholland Exp $ */ +/* $NetBSD: hack.topl.c,v 1.12 2009/08/12 07:28:41 dholland Exp $ */ /* * Copyright (c) 1985, Stichting Centrum voor Wiskunde en Informatica, @@ -63,22 +63,25 @@ #include #ifndef lint -__RCSID("$NetBSD: hack.topl.c,v 1.11 2009/06/29 23:05:33 dholland Exp $"); +__RCSID("$NetBSD: hack.topl.c,v 1.12 2009/08/12 07:28:41 dholland Exp $"); #endif /* not lint */ #include #include "hack.h" #include "extern.h" -char toplines[BUFSZ]; -xchar tlx, tly; /* set by pline; used by addtopl */ +static char toplines[BUFSZ]; +static xchar tlx, tly; /* set by pline; used by addtopl */ -struct topl { +static struct topl { struct topl *next_topl; char *topl_text; } *old_toplines, *last_redone_topl; #define OTLMAX 20 /* max nr of old toplines remembered */ +static void redotoplin(void); +static void xmore(const char *); + int doredotopl(void) { @@ -93,7 +96,7 @@ doredotopl(void) return (0); } -void +static void redotoplin(void) { home(); @@ -149,7 +152,7 @@ addtopl(const char *s) } /* s = allowed chars besides space/return */ -void +static void xmore(const char *s) { if (flags.toplin) { -- cgit v1.2.3-56-ge451