X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?p=xscreensaver;a=blobdiff_plain;f=hacks%2Fpolyominoes.c;h=faa7698f344b80c586aea5af7bc7049d586f79d3;hp=87b5c744a722d4040dbdb6e002225960156f5f72;hb=ffd8c0873576a9e3065696a624dce6b766b77062;hpb=a94197e76a5dea5cb60542840809d6c20d0abbf3 diff --git a/hacks/polyominoes.c b/hacks/polyominoes.c index 87b5c744..faa7698f 100644 --- a/hacks/polyominoes.c +++ b/hacks/polyominoes.c @@ -1,9 +1,8 @@ /* -*- Mode: C; tab-width: 4 -*- */ /* polyominoes --- Shows attempts to place polyominoes into a rectangle */ -#if !defined( lint ) && !defined( SABER ) +#if 0 static const char sccsid[] = "@(#)polyominoes.c 5.01 2000/12/18 xlockmore"; - #endif /* @@ -59,20 +58,20 @@ static Bool plain; static XrmOptionDescRec opts[] = { - {(char *) "-identical", (char *) ".polyominoes.identical", XrmoptionNoArg, (caddr_t) "on"}, - {(char *) "+identical", (char *) ".polyominoes.identical", XrmoptionNoArg, (caddr_t) "off"}, - {(char *) "-plain", (char *) ".polyominoes.plain", XrmoptionNoArg, (caddr_t) "on"}, - {(char *) "+plain", (char *) ".polyominoes.plain", XrmoptionNoArg, (caddr_t) "off"} + {"-identical", ".polyominoes.identical", XrmoptionNoArg, "on"}, + {"+identical", ".polyominoes.identical", XrmoptionNoArg, "off"}, + {"-plain", ".polyominoes.plain", XrmoptionNoArg, "on"}, + {"+plain", ".polyominoes.plain", XrmoptionNoArg, "off"} }; static argtype vars[] = { - {(caddr_t *) &identical, (char *) "identical", (char *) "Identical", (char *) DEF_IDENTICAL, t_Bool}, - {(caddr_t *) & plain, (char *) "plain", (char *) "Plain", (char *) DEF_PLAIN, t_Bool} + {&identical, "identical", "Identical", DEF_IDENTICAL, t_Bool}, + {&plain, "plain", "Plain", DEF_PLAIN, t_Bool} }; static OptionStruct desc[] = { - {(char *) "-/+identical", (char *) "turn on/off puzzles where the polyomino pieces are identical"}, - {(char *) "-/+plain", (char *) "turn on/off plain pieces"} + {"-/+identical", "turn on/off puzzles where the polyomino pieces are identical"}, + {"-/+plain", "turn on/off plain pieces"} }; ModeSpecOpt polyominoes_opts =