lint
authorKeith Bostic <bostic@ucbvax.Berkeley.EDU>
Sat, 8 Jan 1994 07:08:44 +0000 (23:08 -0800)
committerKeith Bostic <bostic@ucbvax.Berkeley.EDU>
Sat, 8 Jan 1994 07:08:44 +0000 (23:08 -0800)
SCCS-vsn: games/snake/snake/snake.c 8.2
SCCS-vsn: lib/libplot/dumb/dumb.h 8.2
SCCS-vsn: lib/libplot/dumb/subr.c 8.2

usr/src/games/snake/snake/snake.c
usr/src/lib/libplot/dumb/dumb.h
usr/src/lib/libplot/dumb/subr.c

index 447439d..b720201 100644 (file)
@@ -12,7 +12,7 @@ static char copyright[] =
 #endif /* not lint */
 
 #ifndef lint
 #endif /* not lint */
 
 #ifndef lint
-static char sccsid[] = "@(#)snake.c    8.1 (Berkeley) %G%";
+static char sccsid[] = "@(#)snake.c    8.2 (Berkeley) %G%";
 #endif /* not lint */
 
 /*
 #endif /* not lint */
 
 /*
@@ -513,7 +513,7 @@ struct point *sp, *np;
           snake would get too good */
        struct point d;
        int w, i, wt[8];
           snake would get too good */
        struct point d;
        int w, i, wt[8];
-       double sqrt(), v1, v2, vp, max;
+       double v1, v2, vp, max;
        point(&d,you.col-sp->col,you.line-sp->line);
        v1 = sqrt( (double) (d.col*d.col + d.line*d.line) );
        w=0; 
        point(&d,you.col-sp->col,you.line-sp->line);
        v1 = sqrt( (double) (d.col*d.col + d.line*d.line) );
        w=0; 
index 11e66b7..ef179e8 100644 (file)
@@ -4,7 +4,7 @@
  *
  * %sccs.include.proprietary.c%
  *
  *
  * %sccs.include.proprietary.c%
  *
- *     @(#)dumb.h      8.1 (Berkeley) %G%
+ *     @(#)dumb.h      8.2 (Berkeley) %G%
  */
 
 /*
  */
 
 /*
@@ -15,6 +15,7 @@
  * to change, and is left as an exercise for the reader.
  */
 
  * to change, and is left as an exercise for the reader.
  */
 
+#include <stdlib.h>
 #include <math.h>
 
 #define scale(x,y) y = LINES-1-(LINES*y/rangeY +minY); x = COLS*x/rangeX + minX
 #include <math.h>
 
 #define scale(x,y) y = LINES-1-(LINES*y/rangeY +minY); x = COLS*x/rangeX + minX
index 9c1c6f4..ad278b2 100644 (file)
@@ -6,7 +6,7 @@
  */
 
 #ifndef lint
  */
 
 #ifndef lint
-static char sccsid[] = "@(#)subr.c     8.1 (Berkeley) %G%";
+static char sccsid[] = "@(#)subr.c     8.2 (Berkeley) %G%";
 #endif /* not lint */
 
 #include "dumb.h"
 #endif /* not lint */
 
 #include "dumb.h"
@@ -20,8 +20,6 @@ dda_line(ch, x0, y0, x1, y1)
        int length, i;
        double deltaX, deltaY;
        double x, y;
        int length, i;
        double deltaX, deltaY;
        double x, y;
-       double floor();
-       int abs();
 
        scale(x1, y1);
 
 
        scale(x1, y1);