- add and fix prototypes and warnings.

- remove nested comment in header file.
This commit is contained in:
christos 1996-03-14 19:02:30 +00:00
parent e79beaff89
commit 357fb0e430
3 changed files with 33 additions and 8 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: raster_op.c,v 1.3 1995/11/29 22:12:58 pk Exp $ */
/* $NetBSD: raster_op.c,v 1.4 1996/03/14 19:02:30 christos Exp $ */
/*-
* Copyright (c) 1991, 1993
@ -499,8 +499,9 @@ static u_int32_t bytemask[4] = { 0x000000ff, 0x0000ff00, 0x00ff0000, 0xff000000
/* Forward routines. */
static int raster_blit();
static int raster_blit __P((struct raster *, u_int32_t *, int, int, int,
struct raster *, u_int32_t *, int, int, int,
int, int));
/* Raster operations. */

View File

@ -1,4 +1,4 @@
/* $NetBSD: rcons.h,v 1.3 1995/10/05 13:17:51 pk Exp $ */
/* $NetBSD: rcons.h,v 1.4 1996/03/14 19:02:32 christos Exp $ */
/*
* Copyright (c) 1992, 1993
@ -86,7 +86,9 @@ struct rconsole {
#define FB_INESC 0x001 /* processing an escape sequence */
#define FB_STANDOUT 0x002 /* standout mode */
/* #define FB_BOLD 0x? /* boldface mode */
#ifdef notyet
#define FB_BOLD 0x? /* boldface mode */
#endif
#define FB_INVERT 0x008 /* white on black mode */
#define FB_VISBELL 0x010 /* visual bell */
#define FB_CURSOR 0x020 /* cursor is visible */
@ -95,4 +97,24 @@ struct rconsole {
#define FB_P0 0x400 /* working on param 0 */
#define FB_P1 0x800 /* working on param 1 */
extern void rcons_cnputc __P((int));
/* rcons_kern.c */
void rcons_cnputc __P((int));
void rcons_bell __P((struct rconsole *));
void rcons_init __P((struct rconsole *));
/* rcons_subr.c */
void rcons_puts __P((struct rconsole *, unsigned char *, int));
void rcons_text __P((struct rconsole *, unsigned char *, int));
void rcons_pctrl __P((struct rconsole *, int));
void rcons_esc __P((struct rconsole *, int));
void rcons_doesc __P((struct rconsole *, int));
void rcons_cursor __P((struct rconsole *));
void rcons_invert __P((struct rconsole *, int));
void rcons_clear2eop __P((struct rconsole *));
void rcons_clear2eol __P((struct rconsole *));
void rcons_scroll __P((struct rconsole *, int));
void rcons_delchar __P((struct rconsole *, int));
void rcons_delline __P((struct rconsole *, int));
void rcons_insertchar __P((struct rconsole *, int));
void rcons_insertline __P((struct rconsole *, int));

View File

@ -1,4 +1,4 @@
/* $NetBSD: rcons_kern.c,v 1.3 1995/11/29 22:09:23 pk Exp $ */
/* $NetBSD: rcons_kern.c,v 1.4 1996/03/14 19:02:33 christos Exp $ */
/*
* Copyright (c) 1991, 1993
@ -50,6 +50,7 @@
#include <sys/systm.h>
#include <sys/ioctl.h>
#include <sys/tty.h>
#include <sys/proc.h>
#include <dev/rcons/raster.h>
#include <dev/rcons/rcons.h>
@ -60,6 +61,7 @@ static void rcons_belltmr(void *);
#include "rcons_subr.h"
static struct rconsole *mydevicep;
static void rcons_output __P((struct tty *));
void
rcons_cnputc(c)
@ -79,7 +81,7 @@ static void
rcons_output(tp)
register struct tty *tp;
{
register int s, n, i;
register int s, n;
char buf[OBUFSIZ];
s = spltty();