Miscellaneous fixes from James Harvey's PalmOS porting work:
authorsimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Wed, 1 Jun 2005 17:47:56 +0000 (17:47 +0000)
committersimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Wed, 1 Jun 2005 17:47:56 +0000 (17:47 +0000)
commitab53eb64790d5bee44525c3a50a420a6816e2495
treea48afa49172e113d2f867f33bb8f1c216b4bda8f
parent522ed78193ce3bb0e5b88f96ac7d2ec4c6c6e2a5
Miscellaneous fixes from James Harvey's PalmOS porting work:
 - fixed numerous memory leaks (not Palm-specific)
 - corrected a couple of 32-bit-int assumptions (vital for Palm but
   generally a good thing anyway)
 - lifted a few function pointer types into explicit typedefs
   (neutral for me but convenient for the source-munging Perl
   scripts he uses to deal with Palm code segment rules)
 - lifted a few function-level static arrays into global static
   arrays (neutral for me but apparently works round a Palm tools
   bug)
 - a couple more presets in Rectangles (so that Palm, or any other
   slow platform which can't handle the larger sizes easily, can
   still have some variety available)
 - in Solo, arranged a means of sharing scratch space between calls
   to nsolve to prevent a lot of redundant malloc/frees (gives a 10%
   speed increase even on existing platforms)

git-svn-id: svn://svn.tartarus.org/sgt/puzzles@5897 cda61777-01e9-0310-a592-d414129be87e
15 files changed:
cube.c
fifteen.c
malloc.c
midend.c
mines.c
net.c
netslide.c
pattern.c
puzzles.h
random.c
rect.c
sixteen.c
solo.c
twiddle.c
windows.c