lint: include header files with declarations of input-redirect hooks.

Add prototypes and explicit casts where the hooks are polymorphic.
This whole interface should be replaced with wscons.
This commit is contained in:
jonathan 1997-05-25 10:53:33 +00:00
parent 0087cea09e
commit e319f99e4b
1 changed files with 29 additions and 31 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: qvss_compat.c,v 1.7 1997/05/24 08:19:53 jonathan Exp $ */
/* $NetBSD: qvss_compat.c,v 1.8 1997/05/25 10:53:33 jonathan Exp $ */
/*-
* Copyright (c) 1992, 1993
@ -100,8 +100,17 @@
*/
#include <pmax/dev/qvssvar.h> /* our own externs */
struct termios; struct dcregs;
#include <pmax/dev/dtopvar.h> /* dtop console I/O decls */
#include <pmax/tc/sccvar.h> /* ioasic z8530 I/O decls */
#include <pmax/dev/dcvar.h> /* DZ-11 chip console I/O */
extern int pmax_boardtype;
/*
* Prototypes of local functions
*/
extern void pmEventQueueInit __P((pmEventQueue *qe));
void genKbdEvent __P((int ch));
void genMouseEvent __P((MouseReport *newRepPtr));
@ -111,21 +120,10 @@ void genDeconfigMouse __P((void));
void mouseInput __P((int cc));
#if (NDC_DS > 0) || (NDC_IOASIC > 0)
extern void (*dcDivertXInput)();
extern void (*dcMouseEvent)();
extern void (*dcMouseButtons)();
#endif
#if NSCC > 0
extern void (*sccDivertXInput)();
extern void (*sccMouseEvent)();
extern void (*sccMouseButtons)();
#endif
#if NDTOP > 0
extern void (*dtopDivertXInput)();
extern void (*dtopMouseEvent)();
extern void (*dtopMouseButtons)();
extern void (*sccDivertXInput) __P((int cc));
extern void (*sccMouseEvent) __P((int));
extern void (*sccMouseButtons) __P((int));
#endif
extern struct fbinfo *firstfi;
@ -552,16 +550,16 @@ genConfigMouse()
#if NDC_IOASIC > 0
case DS_3MAX:
dcDivertXInput = genKbdEvent;
dcMouseEvent = genMouseEvent;
dcMouseButtons = genMouseButtons;
dcMouseEvent = (void (*) __P((int)))genMouseEvent;
dcMouseButtons = (void (*) __P((int)))genMouseButtons;
break;
#endif /* NDC_IOASIC */
#if NDC_DS > 0
case DS_PMAX:
dcDivertXInput = genKbdEvent;
dcMouseEvent = genMouseEvent;
dcMouseButtons = genMouseButtons;
dcMouseEvent = (void (*) __P((int)))genMouseEvent;
dcMouseButtons = (void (*) __P((int)))genMouseButtons;
break;
#endif /* NDC_DS */
@ -599,34 +597,34 @@ genDeconfigMouse()
#if NDC_IOASIC > 0
case DS_3MAX:
dcDivertXInput = (void (*)())0;
dcMouseEvent = (void (*)())0;
dcMouseButtons = (void (*)())0;
dcDivertXInput = (void (*) __P((int)) )0;
dcMouseEvent = (void (*) __P((int)) )0;
dcMouseButtons = (void (*) __P((int)) )0;
break;
#endif /* NDC_IOASIC */
#if NDC_DS > 0
case DS_PMAX:
dcDivertXInput = (void (*)())0;
dcMouseEvent = (void (*)())0;
dcMouseButtons = (void (*)())0;
dcDivertXInput = (void (*) __P((int)) )0;
dcMouseEvent = (void (*) __P((int)) )0;
dcMouseButtons = (void (*) __P((int)) )0;
break;
#endif /* NDC_DS */
#if NSCC > 1
case DS_3MIN:
case DS_3MAXPLUS:
sccDivertXInput = (void (*)())0;
sccMouseEvent = (void (*)())0;
sccMouseButtons = (void (*)())0;
sccDivertXInput = (void (*) __P((int)) )0;
sccMouseEvent = (void (*) __P((MouseReport *)) )0;
sccMouseButtons = (void (*) __P((MouseReport *)) )0;
break;
#endif
#if NDTOP > 0
case DS_MAXINE:
dtopDivertXInput = (void (*)())0;
dtopMouseEvent = (void (*)())0;
dtopMouseButtons = (void (*)())0;
dtopDivertXInput = (void (*) __P((int)) )0;
dtopMouseEvent = (void (*) __P((MouseReport *)) )0;
dtopMouseButtons = (void (*) __P((MouseReport *)) )0;
break;
#endif
default: