Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/ic - ANSI & KNF, notably remove __P.
details: https://anonhg.NetBSD.org/src/rev/00cc06865c80
branches: trunk
changeset: 533676:00cc06865c80
user: junyoung <junyoung%NetBSD.org@localhost>
date: Sun Jul 07 06:49:22 2002 +0000
description:
- ANSI & KNF, notably remove __P.
- Some cosmetic changes.
diffstat:
sys/dev/ic/pcdisplayvar.h | 37 ++++++++++++++++++-------------------
1 files changed, 18 insertions(+), 19 deletions(-)
diffs (72 lines):
diff -r a37187d3a16f -r 00cc06865c80 sys/dev/ic/pcdisplayvar.h
--- a/sys/dev/ic/pcdisplayvar.h Sun Jul 07 06:36:32 2002 +0000
+++ b/sys/dev/ic/pcdisplayvar.h Sun Jul 07 06:49:22 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pcdisplayvar.h,v 1.10 2002/07/07 06:36:33 junyoung Exp $ */
+/* $NetBSD: pcdisplayvar.h,v 1.11 2002/07/07 06:49:22 junyoung Exp $ */
/*
* Copyright (c) 1998
@@ -39,8 +39,8 @@
const struct wsscreen_descr *type;
- int active; /* currently displayed */
- u_int16_t *mem; /* backing store for contents */
+ int active; /* currently displayed */
+ u_int16_t *mem; /* backing store for contents */
int cursoron; /* cursor displayed? */
#ifdef PCDISPLAY_SOFTCURSOR
@@ -48,7 +48,7 @@
#endif
int cursorcol, cursorrow; /* current cursor position */
- int dispoffset; /* offset of displayed area in video mem */
+ int dispoffset; /* offset of displayed area in video mem */
};
struct pcdisplay_handle {
@@ -56,10 +56,9 @@
bus_space_handle_t ph_ioh_6845, ph_memh;
};
-static inline u_int8_t _pcdisplay_6845_read __P((struct pcdisplay_handle *,
- int));
-static inline void _pcdisplay_6845_write __P((struct pcdisplay_handle *,
- int, u_int8_t));
+static inline u_int8_t _pcdisplay_6845_read(struct pcdisplay_handle *, int);
+static inline void _pcdisplay_6845_write(struct pcdisplay_handle *, int,
+ u_int8_t);
static inline u_int8_t _pcdisplay_6845_read(ph, reg)
struct pcdisplay_handle *ph;
@@ -83,17 +82,17 @@
#define pcdisplay_6845_write(ph, reg, val) \
_pcdisplay_6845_write(ph, offsetof(struct reg_mc6845, reg), val)
-void pcdisplay_cursor_init __P((struct pcdisplayscreen *, int));
-void pcdisplay_cursor __P((void *, int, int, int));
+void pcdisplay_cursor_init(struct pcdisplayscreen *, int);
+void pcdisplay_cursor(void *, int, int, int);
#if 0
-unsigned int pcdisplay_mapchar_simple __P((void *, int));
+unsigned int pcdisplay_mapchar_simple(void *, int);
#endif
-int pcdisplay_mapchar __P((void *, int, unsigned int *));
-void pcdisplay_putchar __P((void *, int, int, u_int, long));
-void pcdisplay_copycols __P((void *, int, int, int,int));
-void pcdisplay_erasecols __P((void *, int, int, int, long));
-void pcdisplay_copyrows __P((void *, int, int, int));
-void pcdisplay_eraserows __P((void *, int, int, long));
+int pcdisplay_mapchar(void *, int, unsigned int *);
+void pcdisplay_putchar(void *, int, int, u_int, long);
+void pcdisplay_copycols(void *, int, int, int,int);
+void pcdisplay_erasecols(void *, int, int, int, long);
+void pcdisplay_copyrows(void *, int, int, int);
+void pcdisplay_eraserows(void *, int, int, long);
struct wsdisplay_char;
-int pcdisplay_getwschar __P((void *, struct wsdisplay_char *));
-int pcdisplay_putwschar __P((void *, struct wsdisplay_char *));
+int pcdisplay_getwschar(void *, struct wsdisplay_char *);
+int pcdisplay_putwschar(void *, struct wsdisplay_char *);
Home |
Main Index |
Thread Index |
Old Index