diff options
author | joerg <joerg@pkgsrc.org> | 2012-12-20 22:05:05 +0000 |
---|---|---|
committer | joerg <joerg@pkgsrc.org> | 2012-12-20 22:05:05 +0000 |
commit | ca4b6a43b196d117bf8be882a3d2f0771d1f0249 (patch) | |
tree | f059101bcbe437aa0fed75c8f002ba812de41112 /games/spider/patches | |
parent | 79d26c34d27eaa9368d12ba9792b8393e2387e7c (diff) | |
download | pkgsrc-ca4b6a43b196d117bf8be882a3d2f0771d1f0249.tar.gz |
Add some void love.
Diffstat (limited to 'games/spider/patches')
-rw-r--r-- | games/spider/patches/patch-ac | 42 | ||||
-rw-r--r-- | games/spider/patches/patch-gfx.c | 90 | ||||
-rw-r--r-- | games/spider/patches/patch-globals_h | 19 | ||||
-rw-r--r-- | games/spider/patches/patch-spider.c | 24 |
4 files changed, 166 insertions, 9 deletions
diff --git a/games/spider/patches/patch-ac b/games/spider/patches/patch-ac index ba0fa61f897..8b49482d3e9 100644 --- a/games/spider/patches/patch-ac +++ b/games/spider/patches/patch-ac @@ -1,8 +1,8 @@ -$NetBSD: patch-ac,v 1.1 2006/08/02 16:04:33 kristerw Exp $ +$NetBSD: patch-ac,v 1.2 2012/12/20 22:05:05 joerg Exp $ ---- movelog.c.orig 2006-08-02 17:55:55.000000000 +0200 -+++ movelog.c 2006-08-02 17:57:51.000000000 +0200 -@@ -33,6 +33,9 @@ +--- movelog.c.orig 1991-09-28 17:46:17.000000000 +0000 ++++ movelog.c +@@ -33,6 +35,9 @@ int deck_index = 0; extern int cheat_count; @@ -12,7 +12,16 @@ $NetBSD: patch-ac,v 1.1 2006/08/02 16:04:33 kristerw Exp $ make_deck_cache() { CardPtr tmp; -@@ -299,8 +302,7 @@ +@@ -93,7 +98,7 @@ Bool *exposed; + *exposed = (val >= 14); + } + +-undo() ++void undo(void) + { + int val; + int from, dest, num_cards; +@@ -299,8 +304,7 @@ Rank *rank; } static int @@ -22,7 +31,28 @@ $NetBSD: patch-ac,v 1.1 2006/08/02 16:04:33 kristerw Exp $ { int val; -@@ -787,8 +789,7 @@ +@@ -572,9 +576,7 @@ int val; + } + } + +-write_file(fname, confirmer) +-char *fname; +-Bool (*confirmer)(); ++void write_file(char *fname, Bool (*confirmer)()) + { + FILE *fp; + char buf[512]; +@@ -739,8 +741,7 @@ char *fname; + } + } + +-read_file(fname) +-char *fname; ++void read_file(char fname) + { + FILE *fp; + char buf[1024], buf2[1024]; +@@ -787,8 +788,7 @@ char *dp; } static int diff --git a/games/spider/patches/patch-gfx.c b/games/spider/patches/patch-gfx.c new file mode 100644 index 00000000000..9af93801760 --- /dev/null +++ b/games/spider/patches/patch-gfx.c @@ -0,0 +1,90 @@ +$NetBSD: patch-gfx.c,v 1.1 2012/12/20 22:05:06 joerg Exp $ + +--- gfx.c.orig 1991-09-28 17:46:10.000000000 +0000 ++++ gfx.c +@@ -115,6 +115,11 @@ static int back_delta_x, back_delta_y; / + static Bool card_is_clipped; /* optimizer for card drawing */ + #endif + ++static void draw_did(Suit suit, int x, int y); ++static void draw_eight_pips(Suit suit, int x, int y); ++static void draw_six_pips(Suit suit, int x, int y); ++static void draw_center_pip(Suit suit, int x, int y); ++ + gfx_init(d, scr) + Display *d; + int scr; +@@ -566,8 +571,7 @@ force_redraw() + * + * REMIND -- spread the deck a bit to show that there's more + */ +-redraw_deck(x, y, w, h) +-int x, y, w, h; ++void redraw_deck(int x, int y, int w, int h) + { + CardPtr tmp; + +@@ -599,8 +603,7 @@ CardPtr tmp; + } + + +-redraw_card_piles(x, y, w, h) +-int x, y, w, h; ++void redraw_card_piles(int x, int y, int w, int h) + { + int i; + CardPtr tmp; +@@ -641,8 +644,7 @@ CardPtr tmp; + } + + +-redraw_card_stacks(x, y, w, h) +-int x, y, w, h; ++void redraw_card_stacks(int x, int y, int w, int h) + { + int i; + CardPtr tmp; +@@ -1011,9 +1013,7 @@ int w, h; + * + * location is for center of pip + */ +-draw_did(suit, x, y) +-Suit suit; +-int x,y; ++static void draw_did(Suit suit, int x, int y) + { + int w, h; + +@@ -1051,9 +1051,7 @@ int w, h; + /* + * draws big center pip + */ +-draw_center_pip(suit, x, y) +-Suit suit; +-int x,y; ++static void draw_center_pip(Suit suit, int x, int y) + { + int w, h; + +@@ -1110,9 +1108,7 @@ int x,y; + draw_did(suit, x + CARD_COL3_X, y + CARD_ROW5_Y); + } + +-draw_six_pips(suit, x, y) +-Suit suit; +-int x, y; ++static void draw_six_pips(Suit suit, int x, int y) + { + draw_pip(suit, x + CARD_COL1_X, y + CARD_ROW1_Y); + +@@ -1129,9 +1125,7 @@ int x, y; + draw_did(suit, x + CARD_COL3_X, y + CARD_ROW5_Y); + } + +-draw_eight_pips(suit, x, y) +-Suit suit; +-int x,y; ++static void draw_eight_pips(Suit suit, int x, int y) + { + draw_pip(suit, x + CARD_COL1_X, y + CARD_ROW1_Y); + diff --git a/games/spider/patches/patch-globals_h b/games/spider/patches/patch-globals_h index 060adec3a05..1a8b2980c27 100644 --- a/games/spider/patches/patch-globals_h +++ b/games/spider/patches/patch-globals_h @@ -1,9 +1,9 @@ -$NetBSD: patch-globals_h,v 1.1 2012/06/18 04:19:09 dholland Exp $ +$NetBSD: patch-globals_h,v 1.2 2012/12/20 22:05:06 joerg Exp $ - use standard headers - don't provide own malloc declarations ---- globals.h~ 1991-09-28 17:46:20.000000000 +0000 +--- globals.h.orig 1991-09-28 17:46:20.000000000 +0000 +++ globals.h @@ -10,6 +10,8 @@ * @@ -14,7 +14,20 @@ $NetBSD: patch-globals_h,v 1.1 2012/06/18 04:19:09 dholland Exp $ /* * spider global variables */ -@@ -95,7 +97,3 @@ void do_expand(); +@@ -92,10 +94,16 @@ void button_release(); + void do_expand(); + #endif KITLESS + ++void read_file(char fname); ++void write_file(char *fname, Bool (*confirmer)()); ++void undo(void); ++ ++void redraw_card_stacks(int x, int y, int w, int h); ++void redraw_deck(int x, int y, int w, int h); ++void redraw_card_piles(int x, int y, int w, int h); ++void deal_next_hand(Bool log); ++void expand(CardList list); ++ #ifdef XAW Bool can_get_help_files(); #endif diff --git a/games/spider/patches/patch-spider.c b/games/spider/patches/patch-spider.c new file mode 100644 index 00000000000..8df3adfe8c0 --- /dev/null +++ b/games/spider/patches/patch-spider.c @@ -0,0 +1,24 @@ +$NetBSD: patch-spider.c,v 1.1 2012/12/20 22:05:06 joerg Exp $ + +--- spider.c.orig 2012-12-20 18:05:35.000000000 +0000 ++++ spider.c +@@ -218,8 +218,7 @@ int num; + /* + * deal hand of 10 + */ +-deal_next_hand(log) +-Bool log; ++void deal_next_hand(Bool log) + { + int i; + CardPtr tmp; +@@ -936,8 +935,7 @@ char buf[128]; + /* + * print cards in list + */ +-expand(list) +-CardList list; ++void expand(CardList list) + { + CardPtr tmp, last; + char buf[512], buf2[10]; |