Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/rcons ANSIfy the prototypes



details:   https://anonhg.NetBSD.org/src/rev/082fe4117291
branches:  trunk
changeset: 773329:082fe4117291
user:      matt <matt%NetBSD.org@localhost>
date:      Tue Jan 31 04:28:02 2012 +0000

description:
ANSIfy the prototypes

diffstat:

 sys/dev/rcons/raster_op.c   |  38 +++++++++++++++-----------------------
 sys/dev/rcons/raster_text.c |  38 +++++++++++++++++++++-----------------
 2 files changed, 36 insertions(+), 40 deletions(-)

diffs (152 lines):

diff -r ffa4854bb669 -r 082fe4117291 sys/dev/rcons/raster_op.c
--- a/sys/dev/rcons/raster_op.c Tue Jan 31 00:30:52 2012 +0000
+++ b/sys/dev/rcons/raster_op.c Tue Jan 31 04:28:02 2012 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: raster_op.c,v 1.18 2009/04/18 15:04:26 tsutsui Exp $ */
+/*     $NetBSD: raster_op.c,v 1.19 2012/01/31 04:28:02 matt Exp $ */
 
 /*-
  * Copyright (c) 1991, 1993
@@ -67,7 +67,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: raster_op.c,v 1.18 2009/04/18 15:04:26 tsutsui Exp $");
+__KERNEL_RCSID(0, "$NetBSD: raster_op.c,v 1.19 2012/01/31 04:28:02 matt Exp $");
 
 #include <sys/types.h>
 #ifdef _KERNEL
@@ -555,11 +555,8 @@
 
 /* Performs a bitblit.  Returns 0 on success, -1 on failure. */
 int
-raster_op( dst, dx, dy, w, h, rop, src, sx, sy )
-    struct raster* dst;
-    int dx, dy, w, h, rop;
-    struct raster* src;
-    int sx, sy;
+raster_op(struct raster* dst, int dx, int dy, int w, int h, int rop,
+    struct raster* src, int sx, int sy)
     {
     if ( dst == (struct raster*) 0 )
        return -1;                      /* no destination */
@@ -640,11 +637,8 @@
 ** success, -1 on failure.
 */
 int
-raster_op_noclip( dst, dx, dy, w, h, rop, src, sx, sy )
-    struct raster* dst;
-    int dx, dy, w, h, rop;
-    struct raster* src;
-    int sx, sy;
+raster_op_noclip(struct raster* dst, int dx, int dy, int w, int h, int rop,
+    struct raster* src, int sx, int sy)
     {
     int op;
 
@@ -1092,9 +1086,8 @@
 ** on success, -1 on failure.
 */
 int
-raster_op_nosrc_noclip( dst, dx, dy, w, h, rop )
-    struct raster* dst;
-    int dx, dy, w, h, rop;
+raster_op_nosrc_noclip(struct raster* dst,
+    int dx, int dy, int w, int h, int rop)
     {
     int op;
 
@@ -1625,14 +1618,13 @@
 ** destination.  It's used for both the 1-to-1 and 8-to-8 cases.
 */
 static int
-raster_blit( src, srclin1, srcleftignore, srcrightignore, srclongs, dst, dstlin1, dstleftignore, dstrightignore, dstlongs, h, op )
-    struct raster* src;
-    u_int32_t* srclin1;
-    int srcleftignore, srcrightignore, srclongs;
-    struct raster* dst;
-    u_int32_t* dstlin1;
-    int dstleftignore, dstrightignore, dstlongs;
-    int h, op;
+raster_blit(
+    struct raster* src, uint32_t* srclin1,
+    int srcleftignore, int srcrightignore, int srclongs,
+    struct raster* dst,
+    uint32_t* dstlin1,
+    int dstleftignore, int dstrightignore, int dstlongs,
+    int h, int op)
     {
     u_int32_t* srclin2;
     u_int32_t* dstlin2;
diff -r ffa4854bb669 -r 082fe4117291 sys/dev/rcons/raster_text.c
--- a/sys/dev/rcons/raster_text.c       Tue Jan 31 00:30:52 2012 +0000
+++ b/sys/dev/rcons/raster_text.c       Tue Jan 31 04:28:02 2012 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: raster_text.c,v 1.9 2007/03/04 06:02:39 christos Exp $ */
+/*     $NetBSD: raster_text.c,v 1.10 2012/01/31 04:28:03 matt Exp $ */
 
 /*-
  * Copyright (c) 1991, 1993
@@ -40,7 +40,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: raster_text.c,v 1.9 2007/03/04 06:02:39 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: raster_text.c,v 1.10 2012/01/31 04:28:03 matt Exp $");
 
 #include <sys/param.h>
 #ifdef _KERNEL
@@ -61,25 +61,27 @@
 
 /* Draws text.  Returns 0 on success, -1 on failure. */
 int
-raster_text( r, x, y, rop, rf, text )
-    struct raster* r;
-    int x, y;
-    int rop;
-    struct raster_font* rf;
-    unsigned char* text;
+raster_text(
+    struct raster* r,
+    int x,
+    int y,
+    int rop,
+    struct raster_font* rf,
+    unsigned char* text)
     {
     return raster_textn( r, x, y, rop, rf, text, strlen( text ) );
     }
 
 /* Draws n characters of text.  Returns 0 on success, -1 on failure. */
 int
-raster_textn( r, x, y, rop, rf, text, n )
-    struct raster* r;
-    int x, y;
-    int rop;
-    struct raster_font* rf;
-    unsigned char* text;
-    int n;
+raster_textn(
+    struct raster* r,
+    int x,
+    int y,
+    int rop,
+    struct raster_font* rf,
+    unsigned char* text,
+    int n)
     {
     int clip;
     int x1, y1;
@@ -223,8 +225,10 @@
 #ifdef COLORFONT_CACHE
 /* Allocates a raster.  Returns (struct raster*) 0 on failure. */
 struct raster*
-raster_alloc( width, height, depth )
-    int width, height, depth;
+raster_alloc(
+    int width,
+    int height,
+    int depth)
     {
     struct raster* r;
     int linelongs;



Home | Main Index | Thread Index | Old Index