summaryrefslogtreecommitdiffstats
path: root/larn
diff options
context:
space:
mode:
authorrillig <rillig@NetBSD.org>2021-05-02 12:50:43 +0000
committerCameron Katri <me@cameronkatri.com>2021-05-05 14:56:21 -0400
commit1c75ca2e2dc72d118edbb854455e602d70d80a52 (patch)
treea815eb983fa15e7c407095122e37acb90093be9a /larn
parent2442661e769456700d67fac92056d18b3046633e (diff)
downloadbsdgames-darwin-1c75ca2e2dc72d118edbb854455e602d70d80a52.tar.gz
bsdgames-darwin-1c75ca2e2dc72d118edbb854455e602d70d80a52.tar.zst
bsdgames-darwin-1c75ca2e2dc72d118edbb854455e602d70d80a52.zip
games: remove trailing whitespace in *.c and *.h
Diffstat (limited to 'larn')
-rw-r--r--larn/action.c10
-rw-r--r--larn/global.c6
-rw-r--r--larn/io.c36
-rw-r--r--larn/main.c6
-rw-r--r--larn/monster.c6
-rw-r--r--larn/moreobj.c8
-rw-r--r--larn/scores.c12
-rw-r--r--larn/store.c6
8 files changed, 45 insertions, 45 deletions
diff --git a/larn/action.c b/larn/action.c
index 6fe1a88e..81687597 100644
--- a/larn/action.c
+++ b/larn/action.c
@@ -1,15 +1,15 @@
-/* $NetBSD: action.c,v 1.1 2008/02/19 06:05:26 dholland Exp $ */
+/* $NetBSD: action.c,v 1.2 2021/05/02 12:50:45 rillig Exp $ */
/*
* action.c Larn is copyrighted 1986 by Noah Morgan.
- *
+ *
* Routines in this file:
- *
+ *
* ...
*/
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: action.c,v 1.1 2008/02/19 06:05:26 dholland Exp $");
+__RCSID("$NetBSD: action.c,v 1.2 2021/05/02 12:50:45 rillig Exp $");
#endif /* not lint */
#include <stdlib.h>
#include <unistd.h>
@@ -256,7 +256,7 @@ act_ignore_altar(void)
}
/*
- * Performs the act of opening a chest.
+ * Performs the act of opening a chest.
*
* Parameters: x,y location of the chest to open.
* Assumptions: cursors() has been called previously
diff --git a/larn/global.c b/larn/global.c
index 013aa6f6..0d4727fb 100644
--- a/larn/global.c
+++ b/larn/global.c
@@ -1,8 +1,8 @@
-/* $NetBSD: global.c,v 1.14 2012/06/19 05:30:43 dholland Exp $ */
+/* $NetBSD: global.c,v 1.15 2021/05/02 12:50:45 rillig Exp $ */
/*
* global.c Larn is copyrighted 1986 by Noah Morgan.
- *
+ *
* raiselevel() subroutine to raise the player one level
* loselevel() subroutine to lower the player by one level
* raiseexperience(x) subroutine to increase experience points
@@ -21,7 +21,7 @@
*/
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: global.c,v 1.14 2012/06/19 05:30:43 dholland Exp $");
+__RCSID("$NetBSD: global.c,v 1.15 2021/05/02 12:50:45 rillig Exp $");
#endif /* not lint */
#include <string.h>
diff --git a/larn/io.c b/larn/io.c
index d803fd81..3472a030 100644
--- a/larn/io.c
+++ b/larn/io.c
@@ -1,49 +1,49 @@
-/* $NetBSD: io.c,v 1.28 2017/01/10 20:41:40 christos Exp $ */
+/* $NetBSD: io.c,v 1.29 2021/05/02 12:50:45 rillig Exp $ */
/*
* io.c Larn is copyrighted 1986 by Noah Morgan.
- *
+ *
* Below are the functions in this file:
- *
+ *
* setupvt100() Subroutine to set up terminal in correct mode for game
* clearvt100() Subroutine to clean up terminal when the game is over
* ttgetch() Routine to read in one character from the terminal
* scbr() Function to set cbreak -echo for the terminal
* sncbr() Function to set -cbreak echo for the terminal
* newgame() Subroutine to save the initial time and seed rnd()
- *
+ *
* FILE OUTPUT ROUTINES
- *
+ *
* lprintf(format,args . . .) printf to the output buffer lprint(integer)
* end binary integer to output buffer lwrite(buf,len)
* rite a buffer to the output buffer lprcat(str)
* ent string to output buffer
- *
+ *
* FILE OUTPUT MACROS (in header.h)
- *
+ *
* lprc(character) put the character into the output
* buffer
- *
+ *
* FILE INPUT ROUTINES
- *
+ *
* long lgetc() read one character from input buffer
* long larn_lrint() read one integer from input buffer
* lrfill(address,number) put input bytes into a buffer char
* *lgetw() get a whitespace ended word from
* input char *lgetl() get a \n or EOF ended line
* from input
- *
+ *
* FILE OPEN / CLOSE ROUTINES
- *
+ *
* lcreat(filename) create a new file for write
* lopen(filename) open a file for read
* lappend(filename) open for append to an existing file
* lrclose() close the input file
* lwclose() close output file lflush()
* lush the output buffer
- *
+ *
* Other Routines
- *
+ *
* cursor(x,y) position cursor at [x,y]
* cursors() position cursor at [1,24]
* (saves memory) cl_line(x,y) Clear line at [1,y] and leave
@@ -57,12 +57,12 @@
* erminal initialization -- setup termcap info * char *tmcapcnv(sd,ss)
* outine to convert VT100 \33's to termcap format beep()
* e to emit a beep if enabled (see no-beep in .larnopts)
- *
+ *
* Note: ** entries are available only in termcap mode.
*/
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: io.c,v 1.28 2017/01/10 20:41:40 christos Exp $");
+__RCSID("$NetBSD: io.c,v 1.29 2021/05/02 12:50:45 rillig Exp $");
#endif /* not lint */
#include "header.h"
@@ -324,7 +324,7 @@ lwrite(char *buf, int len)
*
* Returns 0 if EOF, otherwise the character
*/
-long
+long
lgetc(void)
{
int i;
@@ -356,7 +356,7 @@ lgetc(void)
* The save order is low order first, to high order (4 bytes total)
* Returns the int read
*/
-long
+long
larn_lrint(void)
{
unsigned long i;
@@ -907,7 +907,7 @@ static int vindex = 0;
/*
* ttputch(ch) Print one character in decoded output buffer.
*/
-static int
+static int
ttputch(int ch)
{
outbuf[vindex++] = ch;
diff --git a/larn/main.c b/larn/main.c
index 977c17d9..81f427ea 100644
--- a/larn/main.c
+++ b/larn/main.c
@@ -1,9 +1,9 @@
-/* $NetBSD: main.c,v 1.26 2019/02/03 03:19:25 mrg Exp $ */
+/* $NetBSD: main.c,v 1.27 2021/05/02 12:50:45 rillig Exp $ */
/* main.c */
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: main.c,v 1.26 2019/02/03 03:19:25 mrg Exp $");
+__RCSID("$NetBSD: main.c,v 1.27 2021/05/02 12:50:45 rillig Exp $");
#endif /* not lint */
#include <sys/types.h>
@@ -1302,7 +1302,7 @@ whatitem(const char *str)
subroutine to get a number from the player
and allow * to mean return amt, else return the number entered
*/
-unsigned long
+unsigned long
readnum(long mx)
{
int i;
diff --git a/larn/monster.c b/larn/monster.c
index 9f19f39f..1b325170 100644
--- a/larn/monster.c
+++ b/larn/monster.c
@@ -1,4 +1,4 @@
-/* $NetBSD: monster.c,v 1.19 2019/02/03 03:19:25 mrg Exp $ */
+/* $NetBSD: monster.c,v 1.20 2021/05/02 12:50:45 rillig Exp $ */
/*
* monster.c Larn is copyrighted 1986 by Noah Morgan.
@@ -100,7 +100,7 @@
*/
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: monster.c,v 1.19 2019/02/03 03:19:25 mrg Exp $");
+__RCSID("$NetBSD: monster.c,v 1.20 2021/05/02 12:50:45 rillig Exp $");
#endif /* not lint */
#include <string.h>
@@ -185,7 +185,7 @@ createmonster(int mon)
* if monst==TRUE check for no monster at this location
* This routine will return FALSE if at a wall or the dungeon exit on level 1
*/
-static int
+static int
cgood(int x, int y, int theitem, int monst)
{
#define itm __lose
diff --git a/larn/moreobj.c b/larn/moreobj.c
index d36e6e17..e9303347 100644
--- a/larn/moreobj.c
+++ b/larn/moreobj.c
@@ -1,15 +1,15 @@
-/* $NetBSD: moreobj.c,v 1.12 2012/06/19 05:30:43 dholland Exp $ */
+/* $NetBSD: moreobj.c,v 1.13 2021/05/02 12:50:45 rillig Exp $ */
/*
* moreobj.c Larn is copyrighted 1986 by Noah Morgan.
- *
+ *
* Routines in this file:
- *
+ *
* oaltar() othrone() ochest() ofountain()
*/
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: moreobj.c,v 1.12 2012/06/19 05:30:43 dholland Exp $");
+__RCSID("$NetBSD: moreobj.c,v 1.13 2021/05/02 12:50:45 rillig Exp $");
#endif /* not lint */
#include <stdlib.h>
#include <unistd.h>
diff --git a/larn/scores.c b/larn/scores.c
index 26ee7c42..6d4d8c5b 100644
--- a/larn/scores.c
+++ b/larn/scores.c
@@ -1,10 +1,10 @@
-/* $NetBSD: scores.c,v 1.21 2012/06/19 05:30:44 dholland Exp $ */
+/* $NetBSD: scores.c,v 1.22 2021/05/02 12:50:45 rillig Exp $ */
/*
* scores.c Larn is copyrighted 1986 by Noah Morgan.
- *
+ *
* Functions in this file are:
- *
+ *
* readboard() Function to read in the scoreboard into a static buffer
* writeboard() Function to write the scoreboard from readboard()'s buffer
* makeboard() Function to create a new scoreboard (wipe out old one)
@@ -22,11 +22,11 @@
* line showing player when he is killed diedlog() Subroutine to read a
* log file and print it out in ascii format getplid(name)
* on to get players id # from id file
- *
+ *
*/
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: scores.c,v 1.21 2012/06/19 05:30:44 dholland Exp $");
+__RCSID("$NetBSD: scores.c,v 1.22 2021/05/02 12:50:45 rillig Exp $");
#endif /* not lint */
#include <sys/types.h>
#include <sys/times.h>
@@ -224,7 +224,7 @@ hashewon(void)
* Enter with the amount (in gp) to pay on the taxes.
* Returns amount actually paid.
*/
-long
+long
paytaxes(long x)
{
int i;
diff --git a/larn/store.c b/larn/store.c
index 2d335380..234656d8 100644
--- a/larn/store.c
+++ b/larn/store.c
@@ -1,4 +1,4 @@
-/* $NetBSD: store.c,v 1.16 2012/06/19 05:30:44 dholland Exp $ */
+/* $NetBSD: store.c,v 1.17 2021/05/02 12:50:45 rillig Exp $ */
/*-
* Copyright (c) 1988 The Regents of the University of California.
@@ -34,7 +34,7 @@
#if 0
static char sccsid[] = "@(#)store.c 5.4 (Berkeley) 5/13/91";
#else
-__RCSID("$NetBSD: store.c,v 1.16 2012/06/19 05:30:44 dholland Exp $");
+__RCSID("$NetBSD: store.c,v 1.17 2021/05/02 12:50:45 rillig Exp $");
#endif
#endif /* not lint */
@@ -225,7 +225,7 @@ outofstock(void)
nap(2200);
}
-static void
+static void
nogold(void)
{
lprcat("\nYou don't have enough gold to pay for that!");