-/* $NetBSD: diag.c,v 1.9 2000/07/03 03:57:42 matt Exp $ */
+/* $NetBSD: diag.c,v 1.10 2006/05/11 10:23:24 mrg Exp $ */
/* diag.c Larn is copyrighted 1986 by Noah Morgan. */
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: diag.c,v 1.9 2000/07/03 03:57:42 matt Exp $");
+__RCSID("$NetBSD: diag.c,v 1.10 2006/05/11 10:23:24 mrg Exp $");
#endif /* not lint */
#include <sys/types.h>
lrfill((char *) &cell[k * MAXX * MAXY], sizeof(struct cel) * MAXY * MAXX);
lrfill((char *) &c[0], 100 * sizeof(long));
- gltime = lrint();
+ gltime = larn_lrint();
level = c[CAVELEVEL] = lgetc();
playerx = lgetc();
playery = lgetc();
}
time(&zzz);
- initialtime = zzz - lrint();
+ initialtime = zzz - larn_lrint();
fstat(fd, &filetimes); /* get the creation and modification time of
* file */
lrfill((char *) &zzz, sizeof(long));
return;
} /* died a post mortem death */
oldx = oldy = 0;
- i = lrint(); /* inode # */
+ i = larn_lrint(); /* inode # */
if (i && (filetimes.st_ino != i))
fsorry();
lrclose();
-/* $NetBSD: extern.h,v 1.4 2004/01/27 20:30:30 jsm Exp $ */
+/* $NetBSD: extern.h,v 1.5 2006/05/11 10:23:24 mrg Exp $ */
/*
* Copyright (c) 1997 Christos Zoulas. All rights reserved.
void lprint(long);
void lwrite(char *, int);
long lgetc(void);
-long lrint(void);
+long larn_lrint(void);
void lrfill(char *, int);
char *lgetw(void);
char *lgetl(void);
-/* $NetBSD: io.c,v 1.15 2005/02/03 02:23:02 perry Exp $ */
+/* $NetBSD: io.c,v 1.16 2006/05/11 10:23:24 mrg Exp $ */
/*
* io.c Larn is copyrighted 1986 by Noah Morgan.
* FILE INPUT ROUTINES
*
* long lgetc() read one character from input buffer
- * long lrint() read one integer 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
*/
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: io.c,v 1.15 2005/02/03 02:23:02 perry Exp $");
+__RCSID("$NetBSD: io.c,v 1.16 2006/05/11 10:23:24 mrg Exp $");
#endif /* not lint */
#include "header.h"
* Returns the int read
*/
long
-lrint()
+larn_lrint()
{
unsigned long i;
i = 255 & lgetc();