From b8732b5f229548527e305e8ba8e860e0cd24cf07 Mon Sep 17 00:00:00 2001 From: Jeff Schwab Date: Tue, 3 Jun 2014 08:57:11 -0400 Subject: [PATCH 1/3] Fix compiler warnings. Declare functions before calling them. Declare all return types. --- sl.c | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/sl.c b/sl.c index ff86bf39..9b88931f 100644 --- a/sl.c +++ b/sl.c @@ -39,6 +39,14 @@ #include #include "sl.h" +void add_smoke(int y, int x); +void add_man(int y, int x); +int add_C51(int x); +int add_D51(int x); +int add_sl(int x); +void option(char *str); +int my_mvaddstr(int y, int x, char *str); + int ACCIDENT = 0; int LOGO = 0; int FLY = 0; @@ -145,7 +153,7 @@ int add_sl(int x) } -add_D51(int x) +int add_D51(int x) { static char *d51[D51PATTERNS][D51HIGHT + 1] = {{D51STR1, D51STR2, D51STR3, D51STR4, D51STR5, D51STR6, D51STR7, @@ -185,7 +193,7 @@ add_D51(int x) return OK; } -add_C51(int x) +int add_C51(int x) { static char *c51[C51PATTERNS][C51HIGHT + 1] = {{C51STR1, C51STR2, C51STR3, C51STR4, C51STR5, C51STR6, C51STR7, @@ -226,7 +234,7 @@ add_C51(int x) } -int add_man(int y, int x) +void add_man(int y, int x) { static char *man[2][2] = {{"", "(O)"}, {"Help!", "\\O/"}}; int i; @@ -237,7 +245,7 @@ int add_man(int y, int x) } -int add_smoke(int y, int x) +void add_smoke(int y, int x) #define SMOKEPTNS 16 { static struct smokes { From e5e797625f648e1ace561236e2a80d673e7b2f4f Mon Sep 17 00:00:00 2001 From: Jeff Schwab Date: Tue, 3 Jun 2014 09:06:38 -0400 Subject: [PATCH 2/3] Bump version numbers. --- sl.c | 6 ++++-- sl.h | 4 ++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/sl.c b/sl.c index 9b88931f..d8f2d750 100644 --- a/sl.c +++ b/sl.c @@ -1,11 +1,13 @@ /*======================================== - * sl.c: SL version 5.01 + * sl.c: SL version 5.02 * Copyright 1993,1998,2014 * Toyoda Masashi * (mtoyoda@acm.org) - * Last Modified: 2014/03/31 + * Last Modified: 2014/06/03 *======================================== */ +/* sl version 5.02 : Fix compiler warnings. */ +/* by Jeff Schwab 2014/06/03 */ /* sl version 5.01 : removed cursor and handling of IO */ /* by Chris Seymour 2014/01/03 */ /* sl version 5.00 : add -c option */ diff --git a/sl.h b/sl.h index a239011d..6e7206ee 100644 --- a/sl.h +++ b/sl.h @@ -1,9 +1,9 @@ /*======================================== - * sl.h: SL version 5.1 + * sl.h: SL version 5.02 * Copyright 1993,2002,2014 * Toyoda Masashi * (mtoyoda@acm.org) - * Last Modified: 2014/03/31 + * Last Modified: 2014/06/03 *======================================== */ From 7d3a25be21722a4d7918a05dc829d70012369549 Mon Sep 17 00:00:00 2001 From: Jeff Schwab Date: Tue, 3 Jun 2014 09:07:01 -0400 Subject: [PATCH 3/3] Ignore build product. --- .gitignore | 1 + 1 file changed, 1 insertion(+) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 00000000..b2bf82b1 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/sl