Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src update after change to return value of tputs() third argument
details: https://anonhg.NetBSD.org/src/rev/20462dedcebf
branches: trunk
changeset: 476951:20462dedcebf
user: lukem <lukem%NetBSD.org@localhost>
date: Mon Oct 04 23:26:59 1999 +0000
description:
update after change to return value of tputs() third argument
diffstat:
games/backgammon/common_source/back.h | 4 ++--
games/backgammon/common_source/subs.c | 7 ++++---
games/hack/extern.h | 4 ++--
games/hack/hack.termcap.c | 8 ++++----
games/larn/extern.h | 4 ++--
games/larn/io.c | 7 ++++---
games/robots/main.c | 8 ++++----
games/tetris/screen.c | 6 +++---
games/tetris/screen.h | 4 ++--
usr.bin/less/less/funcs.h | 4 ++--
usr.bin/less/less/output.c | 5 +++--
usr.bin/less/less/screen.c | 8 ++++----
usr.bin/top/screen.c | 6 +++---
usr.bin/top/screen.h | 4 ++--
usr.bin/tput/tput.c | 10 +++++-----
usr.bin/tset/extern.h | 4 ++--
usr.bin/tset/misc.c | 8 ++++----
usr.bin/ul/ul.c | 10 +++++-----
usr.bin/vi/cl/cl_term.c | 6 +++---
usr.bin/vi/include/cl_extern.h | 4 ++--
usr.bin/window/tt.h | 6 +++---
usr.bin/window/tttermcap.c | 10 ++++++----
22 files changed, 71 insertions(+), 66 deletions(-)
diffs (truncated from 573 to 300 lines):
diff -r 152a7379a3a3 -r 20462dedcebf games/backgammon/common_source/back.h
--- a/games/backgammon/common_source/back.h Mon Oct 04 23:24:04 1999 +0000
+++ b/games/backgammon/common_source/back.h Mon Oct 04 23:26:59 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: back.h,v 1.11 1999/07/26 20:56:03 hubertf Exp $ */
+/* $NetBSD: back.h,v 1.12 1999/10/04 23:26:59 lukem Exp $ */
/*
* Copyright (c) 1980, 1993
@@ -133,7 +133,7 @@
extern int begscr; /* 'beginning' of screen
(not including board) */
-void addbuf __P((int));
+int addbuf __P((int));
void backone __P((int));
void bsect __P((int, int, int, int));
void buflush __P((void));
diff -r 152a7379a3a3 -r 20462dedcebf games/backgammon/common_source/subs.c
--- a/games/backgammon/common_source/subs.c Mon Oct 04 23:24:04 1999 +0000
+++ b/games/backgammon/common_source/subs.c Mon Oct 04 23:26:59 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: subs.c,v 1.12 1999/09/08 21:45:25 jsm Exp $ */
+/* $NetBSD: subs.c,v 1.13 1999/10/04 23:26:59 lukem Exp $ */
/*
* Copyright (c) 1980, 1993
@@ -38,7 +38,7 @@
#if 0
static char sccsid[] = "@(#)subs.c 8.1 (Berkeley) 5/31/93";
#else
-__RCSID("$NetBSD: subs.c,v 1.12 1999/09/08 21:45:25 jsm Exp $");
+__RCSID("$NetBSD: subs.c,v 1.13 1999/10/04 23:26:59 lukem Exp $");
#endif
#endif /* not lint */
@@ -73,7 +73,7 @@
getout(0);
}
-void
+int
addbuf(c)
int c;
{
@@ -84,6 +84,7 @@
buffnum = 0;
}
outbuff[buffnum] = c;
+ return (0);
}
void
diff -r 152a7379a3a3 -r 20462dedcebf games/hack/extern.h
--- a/games/hack/extern.h Mon Oct 04 23:24:04 1999 +0000
+++ b/games/hack/extern.h Mon Oct 04 23:26:59 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: extern.h,v 1.1 1997/10/19 16:57:28 christos Exp $ */
+/* $NetBSD: extern.h,v 1.2 1999/10/04 23:27:01 lukem Exp $ */
/*
* Copyright (c) 1997 Christos Zoulas. All rights reserved.
@@ -507,7 +507,7 @@
void curs __P((int, int));
void nocmov __P((int, int));
void cmov __P((int, int));
-void xputc __P((int));
+int xputc __P((int));
void xputs __P((char *));
void cl_end __P((void));
void clear_screen __P((void));
diff -r 152a7379a3a3 -r 20462dedcebf games/hack/hack.termcap.c
--- a/games/hack/hack.termcap.c Mon Oct 04 23:24:04 1999 +0000
+++ b/games/hack/hack.termcap.c Mon Oct 04 23:26:59 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: hack.termcap.c,v 1.8 1999/08/14 16:36:42 tron Exp $ */
+/* $NetBSD: hack.termcap.c,v 1.9 1999/10/04 23:27:01 lukem Exp $ */
/*
* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985.
@@ -6,7 +6,7 @@
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: hack.termcap.c,v 1.8 1999/08/14 16:36:42 tron Exp $");
+__RCSID("$NetBSD: hack.termcap.c,v 1.9 1999/10/04 23:27:01 lukem Exp $");
#endif /* not lint */
#include <string.h>
@@ -185,11 +185,11 @@
curx = x;
}
-void
+int
xputc(c)
char c;
{
- (void) fputc(c, stdout);
+ return (fputc(c, stdout));
}
void
diff -r 152a7379a3a3 -r 20462dedcebf games/larn/extern.h
--- a/games/larn/extern.h Mon Oct 04 23:24:04 1999 +0000
+++ b/games/larn/extern.h Mon Oct 04 23:26:59 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: extern.h,v 1.1 1997/10/18 20:03:17 christos Exp $ */
+/* $NetBSD: extern.h,v 1.2 1999/10/04 23:27:02 lukem Exp $ */
/*
* Copyright (c) 1997 Christos Zoulas. All rights reserved.
@@ -154,7 +154,7 @@
void standout __P((char *));
void set_score_output __P((void));
void lflush __P((void));
-void xputchar __P((int));
+int xputchar __P((int));
void flush_buf __P((void));
char *tmcapcnv __P((char *, char *));
void beep __P((void));
diff -r 152a7379a3a3 -r 20462dedcebf games/larn/io.c
--- a/games/larn/io.c Mon Oct 04 23:24:04 1999 +0000
+++ b/games/larn/io.c Mon Oct 04 23:26:59 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: io.c,v 1.7 1997/10/18 20:03:26 christos Exp $ */
+/* $NetBSD: io.c,v 1.8 1999/10/04 23:27:02 lukem Exp $ */
/*
* io.c Larn is copyrighted 1986 by Noah Morgan.
@@ -62,7 +62,7 @@
*/
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: io.c,v 1.7 1997/10/18 20:03:26 christos Exp $");
+__RCSID("$NetBSD: io.c,v 1.8 1999/10/04 23:27:02 lukem Exp $");
#endif /* not lint */
#include "header.h"
@@ -1047,13 +1047,14 @@
/*
* xputchar(ch) Print one character in decoded output buffer.
*/
-void
+int
xputchar(c)
int c;
{
outbuf[vindex++] = c;
if (vindex >= BUFBIG)
flush_buf();
+ return (0);
}
/*
diff -r 152a7379a3a3 -r 20462dedcebf games/robots/main.c
--- a/games/robots/main.c Mon Oct 04 23:24:04 1999 +0000
+++ b/games/robots/main.c Mon Oct 04 23:26:59 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: main.c,v 1.11 1999/09/12 09:02:22 jsm Exp $ */
+/* $NetBSD: main.c,v 1.12 1999/10/04 23:27:02 lukem Exp $ */
/*
* Copyright (c) 1980, 1993
@@ -43,7 +43,7 @@
#if 0
static char sccsid[] = "@(#)main.c 8.1 (Berkeley) 5/31/93";
#else
-__RCSID("$NetBSD: main.c,v 1.11 1999/09/12 09:02:22 jsm Exp $");
+__RCSID("$NetBSD: main.c,v 1.12 1999/10/04 23:27:02 lukem Exp $");
#endif
#endif /* not lint */
@@ -193,11 +193,11 @@
return(0);
}
-void
+int
__cputchar(ch)
int ch;
{
- (void)putchar(ch);
+ return (putchar(ch));
}
/*
diff -r 152a7379a3a3 -r 20462dedcebf games/tetris/screen.c
--- a/games/tetris/screen.c Mon Oct 04 23:24:04 1999 +0000
+++ b/games/tetris/screen.c Mon Oct 04 23:26:59 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: screen.c,v 1.12 1999/09/08 21:45:31 jsm Exp $ */
+/* $NetBSD: screen.c,v 1.13 1999/10/04 23:27:03 lukem Exp $ */
/*-
* Copyright (c) 1992, 1993
@@ -127,12 +127,12 @@
/*
* Routine used by tputs().
*/
-void
+int
put(c)
int c;
{
- (void) putchar(c);
+ return (putchar(c));
}
/*
diff -r 152a7379a3a3 -r 20462dedcebf games/tetris/screen.h
--- a/games/tetris/screen.h Mon Oct 04 23:24:04 1999 +0000
+++ b/games/tetris/screen.h Mon Oct 04 23:26:59 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: screen.h,v 1.3 1997/10/14 01:14:34 lukem Exp $ */
+/* $NetBSD: screen.h,v 1.4 1999/10/04 23:27:03 lukem Exp $ */
/*-
* Copyright (c) 1992, 1993
@@ -49,7 +49,7 @@
*/
#define putpad(s) tputs(s, 1, put)
-void put __P((int)); /* just calls putchar; for tputs */
+int put __P((int)); /* just calls putchar; for tputs */
void scr_clear __P((void));
void scr_end __P((void));
void scr_init __P((void));
diff -r 152a7379a3a3 -r 20462dedcebf usr.bin/less/less/funcs.h
--- a/usr.bin/less/less/funcs.h Mon Oct 04 23:24:04 1999 +0000
+++ b/usr.bin/less/less/funcs.h Mon Oct 04 23:26:59 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: funcs.h,v 1.3 1999/04/06 05:57:35 mrg Exp $ */
+/* $NetBSD: funcs.h,v 1.4 1999/10/04 23:34:05 lukem Exp $ */
/* brac.c */
@@ -219,7 +219,7 @@
/* output.c */
public void put_line __P((void));
public void flush __P((void));
-public void putchr __P((int));
+public int putchr __P((int));
public void putstr __P((char *));
public void get_return __P((void));
public void error __P((char *, PARG *));
diff -r 152a7379a3a3 -r 20462dedcebf usr.bin/less/less/output.c
--- a/usr.bin/less/less/output.c Mon Oct 04 23:24:04 1999 +0000
+++ b/usr.bin/less/less/output.c Mon Oct 04 23:26:59 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: output.c,v 1.3 1999/04/06 05:57:36 mrg Exp $ */
+/* $NetBSD: output.c,v 1.4 1999/10/04 23:34:05 lukem Exp $ */
/*
* Copyright (c) 1984,1985,1989,1994,1995,1996,1999 Mark Nudelman
@@ -239,7 +239,7 @@
/*
* Output a character.
*/
- public void
+ public int
putchr(c)
int c;
{
@@ -267,6 +267,7 @@
if (ob >= &obuf[sizeof(obuf)-1])
flush();
*ob++ = c;
+ return (0);
}
/*
diff -r 152a7379a3a3 -r 20462dedcebf usr.bin/less/less/screen.c
--- a/usr.bin/less/less/screen.c Mon Oct 04 23:24:04 1999 +0000
+++ b/usr.bin/less/less/screen.c Mon Oct 04 23:26:59 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: screen.c,v 1.8 1999/04/06 05:57:36 mrg Exp $ */
+/* $NetBSD: screen.c,v 1.9 1999/10/04 23:34:06 lukem Exp $ */
/*
* Copyright (c) 1984,1985,1989,1994,1995,1996,1999 Mark Nudelman
@@ -224,7 +224,7 @@
static void dummy_func __P((void));
static void delay __P((int));
#endif
-static void inc_costcount __P((int));
+static int inc_costcount __P((int));
static int cost __P((char *));
static char *cheaper __P((char *, char *, char *));
static void tmodes __P((char *, char *, char **, char **, char *, char *, char **));
@@ -1330,12 +1330,12 @@
static int costcount;
/*ARGSUSED*/
- static void
+ static int
inc_costcount(c)
int c;
{
Home |
Main Index |
Thread Index |
Old Index