diff options
author | mestre <mestre@cvs.openbsd.org> | 2016-01-09 19:27:57 +0000 |
---|---|---|
committer | mestre <mestre@cvs.openbsd.org> | 2016-01-09 19:27:57 +0000 |
commit | f35c5d3825b33016d2beb253f14e26a573a386ac (patch) | |
tree | 772c8cda4c80c13b9b2d0c1f9a1d11b8044712e4 | |
parent | 7aa209dff78c9699c95f945772a843f035661cb7 (diff) |
ANSIfy grammar.y on atc(6), all other files already are
OK tb@
-rw-r--r-- | games/atc/grammar.y | 23 |
1 files changed, 8 insertions, 15 deletions
diff --git a/games/atc/grammar.y b/games/atc/grammar.y index d880a1005a6..1091a00b47e 100644 --- a/games/atc/grammar.y +++ b/games/atc/grammar.y @@ -1,4 +1,4 @@ -/* $OpenBSD: grammar.y,v 1.9 2016/01/08 13:40:05 tb Exp $ */ +/* $OpenBSD: grammar.y,v 1.10 2016/01/09 19:27:56 mestre Exp $ */ /* $NetBSD: grammar.y,v 1.3 1995/03/21 15:03:59 cgd Exp $ */ /*- @@ -264,8 +264,7 @@ Lline: %% void -check_edge(x, y) - int x, y; +check_edge(int x, int y) { if (!(x == 0) && !(x == sp->width - 1) && !(y == 0) && !(y == sp->height - 1)) @@ -273,8 +272,7 @@ check_edge(x, y) } void -check_point(x, y) - int x, y; +check_point(int x, int y) { if (x < 1 || x >= sp->width - 1) yyerror("X value out of range."); @@ -283,8 +281,7 @@ check_point(x, y) } void -check_linepoint(x, y) - int x, y; +check_linepoint(int x, int y) { if (x < 0 || x >= sp->width) yyerror("X value out of range."); @@ -293,8 +290,7 @@ check_linepoint(x, y) } void -check_line(x1, y1, x2, y2) - int x1, y1, x2, y2; +check_line(int x1, int y1, int x2, int y2) { int d1, d2; @@ -309,8 +305,7 @@ check_line(x1, y1, x2, y2) } int -yyerror(s) - const char *s; +yyerror(const char *s) { fprintf(stderr, "\"%s\": line %d: %s\n", file, line, s); errors++; @@ -319,8 +314,7 @@ yyerror(s) } void -check_edir(x, y, dir) - int x, y, dir; +check_edir(int x, int y, int dir) { int bad = 0; @@ -352,8 +346,7 @@ check_edir(x, y, dir) } void -check_adir(x, y, dir) - int x, y, dir; +check_adir(int x, int y, int dir) { } |