1
0
Fork 0
forked from len0rd/rockbox
foxbox/apps/plugins/puzzles
Franklin Wei 637c7414a9 puzzles: enable fallback to audiobuf when smalloc() fails
- upon a failed smalloc(), the audio buffer will be used for further allocations
- should fix things on low-memory targets (c100 and c200v2), but breaks playback
- playback should still be intact on other targets

Change-Id: Ic239f1316efadc957050afacf5c614dbbca3f805
2017-01-13 19:00:09 -05:00
..
html Port of Simon Tatham's Puzzle Collection 2016-12-18 18:13:22 +01:00
icons Port of Simon Tatham's Puzzle Collection 2016-12-18 18:13:22 +01:00
unfinished Port of Simon Tatham's Puzzle Collection 2016-12-18 18:13:22 +01:00
benchmark.pl Port of Simon Tatham's Puzzle Collection 2016-12-18 18:13:22 +01:00
benchmark.sh Port of Simon Tatham's Puzzle Collection 2016-12-18 18:13:22 +01:00
blackbox.c Port of Simon Tatham's Puzzle Collection 2016-12-18 18:13:22 +01:00
blackbox.R Port of Simon Tatham's Puzzle Collection 2016-12-18 18:13:22 +01:00
bridges.c Port of Simon Tatham's Puzzle Collection 2016-12-18 18:13:22 +01:00
bridges.R Port of Simon Tatham's Puzzle Collection 2016-12-18 18:13:22 +01:00
Buildscr Port of Simon Tatham's Puzzle Collection 2016-12-18 18:13:22 +01:00
CHECKLST.txt Port of Simon Tatham's Puzzle Collection 2016-12-18 18:13:22 +01:00
chm.but Port of Simon Tatham's Puzzle Collection 2016-12-18 18:13:22 +01:00
chm.css Port of Simon Tatham's Puzzle Collection 2016-12-18 18:13:22 +01:00
combi.c Port of Simon Tatham's Puzzle Collection 2016-12-18 18:13:22 +01:00
configure.ac Port of Simon Tatham's Puzzle Collection 2016-12-18 18:13:22 +01:00
cube.c Fixes and re-sync for puzzles 2017-01-01 15:00:09 -05:00
cube.R Port of Simon Tatham's Puzzle Collection 2016-12-18 18:13:22 +01:00
desktop.pl Port of Simon Tatham's Puzzle Collection 2016-12-18 18:13:22 +01:00
devel.but Port of Simon Tatham's Puzzle Collection 2016-12-18 18:13:22 +01:00
divvy.c Port of Simon Tatham's Puzzle Collection 2016-12-18 18:13:22 +01:00
dominosa.c Port of Simon Tatham's Puzzle Collection 2016-12-18 18:13:22 +01:00
dominosa.R Port of Simon Tatham's Puzzle Collection 2016-12-18 18:13:22 +01:00
drawing.c Port of Simon Tatham's Puzzle Collection 2016-12-18 18:13:22 +01:00
dsf.c Port of Simon Tatham's Puzzle Collection 2016-12-18 18:13:22 +01:00
emcc.c Port of Simon Tatham's Puzzle Collection 2016-12-18 18:13:22 +01:00
emcclib.js Port of Simon Tatham's Puzzle Collection 2016-12-18 18:13:22 +01:00
emccpre.js Port of Simon Tatham's Puzzle Collection 2016-12-18 18:13:22 +01:00
emccx.json Port of Simon Tatham's Puzzle Collection 2016-12-18 18:13:22 +01:00
fifteen.c Port of Simon Tatham's Puzzle Collection 2016-12-18 18:13:22 +01:00
fifteen.R Port of Simon Tatham's Puzzle Collection 2016-12-18 18:13:22 +01:00
filling.c Port of Simon Tatham's Puzzle Collection 2016-12-18 18:13:22 +01:00
filling.R Port of Simon Tatham's Puzzle Collection 2016-12-18 18:13:22 +01:00
findloop.c Port of Simon Tatham's Puzzle Collection 2016-12-18 18:13:22 +01:00
flip.c Port of Simon Tatham's Puzzle Collection 2016-12-18 18:13:22 +01:00
flip.R Port of Simon Tatham's Puzzle Collection 2016-12-18 18:13:22 +01:00
flood.c Port of Simon Tatham's Puzzle Collection 2016-12-18 18:13:22 +01:00
flood.R Port of Simon Tatham's Puzzle Collection 2016-12-18 18:13:22 +01:00
galaxies.c Port of Simon Tatham's Puzzle Collection 2016-12-18 18:13:22 +01:00
galaxies.R Port of Simon Tatham's Puzzle Collection 2016-12-18 18:13:22 +01:00
grid.c Port of Simon Tatham's Puzzle Collection 2016-12-18 18:13:22 +01:00
grid.h Port of Simon Tatham's Puzzle Collection 2016-12-18 18:13:22 +01:00
gtk.c Fixes and re-sync for puzzles 2017-01-01 15:00:09 -05:00
guess.c Port of Simon Tatham's Puzzle Collection 2016-12-18 18:13:22 +01:00
guess.R Port of Simon Tatham's Puzzle Collection 2016-12-18 18:13:22 +01:00
inertia.c Port of Simon Tatham's Puzzle Collection 2016-12-18 18:13:22 +01:00
inertia.R Port of Simon Tatham's Puzzle Collection 2016-12-18 18:13:22 +01:00
keen.c Port of Simon Tatham's Puzzle Collection 2016-12-18 18:13:22 +01:00
keen.R Port of Simon Tatham's Puzzle Collection 2016-12-18 18:13:22 +01:00
keymaps.h Port of Simon Tatham's Puzzle Collection 2016-12-18 18:13:22 +01:00
latin.c Port of Simon Tatham's Puzzle Collection 2016-12-18 18:13:22 +01:00
latin.h Port of Simon Tatham's Puzzle Collection 2016-12-18 18:13:22 +01:00
laydomino.c Port of Simon Tatham's Puzzle Collection 2016-12-18 18:13:22 +01:00
LICENCE Port of Simon Tatham's Puzzle Collection 2016-12-18 18:13:22 +01:00
lightup.c Port of Simon Tatham's Puzzle Collection 2016-12-18 18:13:22 +01:00
lightup.R Port of Simon Tatham's Puzzle Collection 2016-12-18 18:13:22 +01:00
list.c Port of Simon Tatham's Puzzle Collection 2016-12-18 18:13:22 +01:00
loopgen.c Port of Simon Tatham's Puzzle Collection 2016-12-18 18:13:22 +01:00
loopgen.h Port of Simon Tatham's Puzzle Collection 2016-12-18 18:13:22 +01:00
loopy.c Port of Simon Tatham's Puzzle Collection 2016-12-18 18:13:22 +01:00
loopy.R Port of Simon Tatham's Puzzle Collection 2016-12-18 18:13:22 +01:00
magnets.c Port of Simon Tatham's Puzzle Collection 2016-12-18 18:13:22 +01:00
magnets.R Port of Simon Tatham's Puzzle Collection 2016-12-18 18:13:22 +01:00
makedist.sh Port of Simon Tatham's Puzzle Collection 2016-12-18 18:13:22 +01:00
malloc.c puzzles: enable fallback to audiobuf when smalloc() fails 2017-01-13 19:00:09 -05:00
map.c Port of Simon Tatham's Puzzle Collection 2016-12-18 18:13:22 +01:00
map.R Port of Simon Tatham's Puzzle Collection 2016-12-18 18:13:22 +01:00
maxflow.c Port of Simon Tatham's Puzzle Collection 2016-12-18 18:13:22 +01:00
maxflow.h Port of Simon Tatham's Puzzle Collection 2016-12-18 18:13:22 +01:00
midend.c Port of Simon Tatham's Puzzle Collection 2016-12-18 18:13:22 +01:00
mines.c Port of Simon Tatham's Puzzle Collection 2016-12-18 18:13:22 +01:00
mines.R Port of Simon Tatham's Puzzle Collection 2016-12-18 18:13:22 +01:00
misc.c work around little bugs in puzzles 2016-12-18 12:51:40 -05:00
mkauto.sh Port of Simon Tatham's Puzzle Collection 2016-12-18 18:13:22 +01:00
mkfiles.pl Port of Simon Tatham's Puzzle Collection 2016-12-18 18:13:22 +01:00
nestedvm.c Port of Simon Tatham's Puzzle Collection 2016-12-18 18:13:22 +01:00
net.c Port of Simon Tatham's Puzzle Collection 2016-12-18 18:13:22 +01:00
net.R Port of Simon Tatham's Puzzle Collection 2016-12-18 18:13:22 +01:00
netslide.c Port of Simon Tatham's Puzzle Collection 2016-12-18 18:13:22 +01:00
netslide.R Port of Simon Tatham's Puzzle Collection 2016-12-18 18:13:22 +01:00
no-icon.c Port of Simon Tatham's Puzzle Collection 2016-12-18 18:13:22 +01:00
noicon.rc Port of Simon Tatham's Puzzle Collection 2016-12-18 18:13:22 +01:00
nullfe.c Port of Simon Tatham's Puzzle Collection 2016-12-18 18:13:22 +01:00
nullgame.c Port of Simon Tatham's Puzzle Collection 2016-12-18 18:13:22 +01:00
nullgame.R Port of Simon Tatham's Puzzle Collection 2016-12-18 18:13:22 +01:00
obfusc.c Port of Simon Tatham's Puzzle Collection 2016-12-18 18:13:22 +01:00
osx-help.but Port of Simon Tatham's Puzzle Collection 2016-12-18 18:13:22 +01:00
osx-info.plist Port of Simon Tatham's Puzzle Collection 2016-12-18 18:13:22 +01:00
osx.icns Port of Simon Tatham's Puzzle Collection 2016-12-18 18:13:22 +01:00
osx.m Port of Simon Tatham's Puzzle Collection 2016-12-18 18:13:22 +01:00
padtoolbar.bmp Port of Simon Tatham's Puzzle Collection 2016-12-18 18:13:22 +01:00
palisade.c Port of Simon Tatham's Puzzle Collection 2016-12-18 18:13:22 +01:00
palisade.R Port of Simon Tatham's Puzzle Collection 2016-12-18 18:13:22 +01:00
pattern.c Port of Simon Tatham's Puzzle Collection 2016-12-18 18:13:22 +01:00
pattern.R Port of Simon Tatham's Puzzle Collection 2016-12-18 18:13:22 +01:00
pearl.c Fixes and re-sync for puzzles 2017-01-01 15:00:09 -05:00
pearl.R Port of Simon Tatham's Puzzle Collection 2016-12-18 18:13:22 +01:00
pegs.c Port of Simon Tatham's Puzzle Collection 2016-12-18 18:13:22 +01:00
pegs.R Port of Simon Tatham's Puzzle Collection 2016-12-18 18:13:22 +01:00
penrose.c Port of Simon Tatham's Puzzle Collection 2016-12-18 18:13:22 +01:00
penrose.h Port of Simon Tatham's Puzzle Collection 2016-12-18 18:13:22 +01:00
printing.c Port of Simon Tatham's Puzzle Collection 2016-12-18 18:13:22 +01:00
ps.c Port of Simon Tatham's Puzzle Collection 2016-12-18 18:13:22 +01:00
PuzzleApplet.java Port of Simon Tatham's Puzzle Collection 2016-12-18 18:13:22 +01:00
puzzles.but Port of Simon Tatham's Puzzle Collection 2016-12-18 18:13:22 +01:00
puzzles.h Port of Simon Tatham's Puzzle Collection 2016-12-18 18:13:22 +01:00
puzzles.make puzzles: fix a few things 2017-01-04 20:36:04 -05:00
puzzles.rc2 Port of Simon Tatham's Puzzle Collection 2016-12-18 18:13:22 +01:00
random.c Port of Simon Tatham's Puzzle Collection 2016-12-18 18:13:22 +01:00
range.c Port of Simon Tatham's Puzzle Collection 2016-12-18 18:13:22 +01:00
range.R Port of Simon Tatham's Puzzle Collection 2016-12-18 18:13:22 +01:00
rbassert.h Port of Simon Tatham's Puzzle Collection 2016-12-18 18:13:22 +01:00
rbcompat.h Port of Simon Tatham's Puzzle Collection 2016-12-18 18:13:22 +01:00
rbwrappers.c puzzles: fix a few things 2017-01-04 20:36:04 -05:00
README Port of Simon Tatham's Puzzle Collection 2016-12-18 18:13:22 +01:00
README.rockbox Fixes and re-sync for puzzles 2017-01-01 15:00:09 -05:00
Recipe Port of Simon Tatham's Puzzle Collection 2016-12-18 18:13:22 +01:00
rect.c Port of Simon Tatham's Puzzle Collection 2016-12-18 18:13:22 +01:00
rect.R Port of Simon Tatham's Puzzle Collection 2016-12-18 18:13:22 +01:00
resource.h Port of Simon Tatham's Puzzle Collection 2016-12-18 18:13:22 +01:00
rockbox.c puzzles: enable fallback to audiobuf when smalloc() fails 2017-01-13 19:00:09 -05:00
samegame.c Port of Simon Tatham's Puzzle Collection 2016-12-18 18:13:22 +01:00
samegame.R Port of Simon Tatham's Puzzle Collection 2016-12-18 18:13:22 +01:00
signpost.c Fixes and re-sync for puzzles 2017-01-01 15:00:09 -05:00
signpost.R Port of Simon Tatham's Puzzle Collection 2016-12-18 18:13:22 +01:00
singles.c Port of Simon Tatham's Puzzle Collection 2016-12-18 18:13:22 +01:00
singles.R Port of Simon Tatham's Puzzle Collection 2016-12-18 18:13:22 +01:00
sixteen.c Port of Simon Tatham's Puzzle Collection 2016-12-18 18:13:22 +01:00
sixteen.R Port of Simon Tatham's Puzzle Collection 2016-12-18 18:13:22 +01:00
slant.c Port of Simon Tatham's Puzzle Collection 2016-12-18 18:13:22 +01:00
slant.R Port of Simon Tatham's Puzzle Collection 2016-12-18 18:13:22 +01:00
solo.c Port of Simon Tatham's Puzzle Collection 2016-12-18 18:13:22 +01:00
solo.R Port of Simon Tatham's Puzzle Collection 2016-12-18 18:13:22 +01:00
SOURCES Port of Simon Tatham's Puzzle Collection 2016-12-18 18:13:22 +01:00
SOURCES.games puzzles: add cursor interface to untangle 2017-01-07 15:32:35 -05:00
tdq.c Port of Simon Tatham's Puzzle Collection 2016-12-18 18:13:22 +01:00
tents.c Port of Simon Tatham's Puzzle Collection 2016-12-18 18:13:22 +01:00
tents.R Port of Simon Tatham's Puzzle Collection 2016-12-18 18:13:22 +01:00
towers.c Port of Simon Tatham's Puzzle Collection 2016-12-18 18:13:22 +01:00
towers.R Port of Simon Tatham's Puzzle Collection 2016-12-18 18:13:22 +01:00
tracks.c Fixes and re-sync for puzzles 2017-01-01 15:00:09 -05:00
tracks.R Port of Simon Tatham's Puzzle Collection 2016-12-18 18:13:22 +01:00
tree234.c Port of Simon Tatham's Puzzle Collection 2016-12-18 18:13:22 +01:00
tree234.h Port of Simon Tatham's Puzzle Collection 2016-12-18 18:13:22 +01:00
twiddle.c Port of Simon Tatham's Puzzle Collection 2016-12-18 18:13:22 +01:00
twiddle.R Port of Simon Tatham's Puzzle Collection 2016-12-18 18:13:22 +01:00
undead.c Port of Simon Tatham's Puzzle Collection 2016-12-18 18:13:22 +01:00
undead.R Port of Simon Tatham's Puzzle Collection 2016-12-18 18:13:22 +01:00
unequal.c Fixes and re-sync for puzzles 2017-01-01 15:00:09 -05:00
unequal.R Port of Simon Tatham's Puzzle Collection 2016-12-18 18:13:22 +01:00
unruly.c Port of Simon Tatham's Puzzle Collection 2016-12-18 18:13:22 +01:00
unruly.R Port of Simon Tatham's Puzzle Collection 2016-12-18 18:13:22 +01:00
untangle.c puzzles: add cursor interface to untangle 2017-01-07 15:32:35 -05:00
untangle.R Port of Simon Tatham's Puzzle Collection 2016-12-18 18:13:22 +01:00
version.c Port of Simon Tatham's Puzzle Collection 2016-12-18 18:13:22 +01:00
version.h Port of Simon Tatham's Puzzle Collection 2016-12-18 18:13:22 +01:00
wceinf.pl Port of Simon Tatham's Puzzle Collection 2016-12-18 18:13:22 +01:00
webpage.pl Port of Simon Tatham's Puzzle Collection 2016-12-18 18:13:22 +01:00
website.url Port of Simon Tatham's Puzzle Collection 2016-12-18 18:13:22 +01:00
windows.c Port of Simon Tatham's Puzzle Collection 2016-12-18 18:13:22 +01:00
winiss.pl Port of Simon Tatham's Puzzle Collection 2016-12-18 18:13:22 +01:00
winwix.mc Port of Simon Tatham's Puzzle Collection 2016-12-18 18:13:22 +01:00

This is the README accompanying the source code to Simon Tatham's
puzzle collection. The collection's web site is at
<http://www.chiark.greenend.org.uk/~sgtatham/puzzles/>.

If you've obtained the source code by downloading a .tar.gz archive
from the Puzzles web site, you should find several Makefiles in the
source code. However, if you've checked the source code out from the
Puzzles git repository, you won't find the Makefiles: they're
automatically generated by `mkfiles.pl', so run that to create them.

The Makefiles include:

 - `Makefile.am', together with the static `configure.ac', is intended
   as input to automake. Run `mkauto.sh' to turn these into a
   configure script and Makefile.in, after which you can then run
   `./configure' to create an actual Unix Makefile.

 - `Makefile.vc' should work under MS Visual C++ on Windows. Run
   'nmake /f Makefile.vc' in a Visual Studio command prompt.

 - `Makefile.cyg' should work under Cygwin / MinGW. With appropriate
   tweaks and setting of TOOLPATH, it should work for both compiling
   on Windows and cross-compiling on Unix.

 - `Makefile.osx' should work under Mac OS X, provided the Xcode
   tools are installed. It builds a single monolithic OS X
   application capable of running any of the puzzles, or even more
   than one of them at a time.

 - `Makefile.wce' should work under MS eMbedded Visual C++ on
   Windows and the Pocket PC SDK; it builds Pocket PC binaries.

Many of these Makefiles build a program called `nullgame' in
addition to the actual game binaries. This program doesn't do
anything; it's just a template for people to start from when adding
a new game to the collection, and it's compiled every time to ensure
that it _does_ compile and link successfully (because otherwise it
wouldn't be much use as a template). Once it's built, you can run it
if you really want to (but it's very boring), and then you should
ignore it.

DO NOT EDIT THE MAKEFILES DIRECTLY, if you plan to send any changes
back to the maintainer. The makefiles are generated automatically by
the Perl script `mkfiles.pl' from the file `Recipe' and the various
.R files. If you need to change the makefiles as part of a patch,
you should change Recipe, *.R, and/or mkfiles.pl.

The manual is provided in Windows Help format for the Windows build;
in text format for anyone who needs it; and in HTML for the Mac OS X
application and for the web site. It is generated from a Halibut
source file (puzzles.but), which is the preferred form for
modification. To generate the manual in other formats, rebuild it,
or learn about Halibut, visit the Halibut website at
<http://www.chiark.greenend.org.uk/~sgtatham/halibut/>.