Arrange that we really _can_ compile all the puzzles into a single

binary if we choose: fix bugs in cube.c and sixteen.c that manifest
when compiled that way, and introduce list.c which provides a global
list of all the available puzzles.

[originally from svn r5169]
This commit is contained in:
Simon Tatham
2005-01-22 15:29:01 +00:00
parent cc54553226
commit a99de1be8f
4 changed files with 53 additions and 7 deletions

View File

@ -201,9 +201,13 @@ struct game {
/*
* For one-game-at-a-time platforms, there's a single structure
* like the above, under a fixed name.
* like the above, under a fixed name. For all-at-once platforms,
* there's a list of all available puzzles in array form.
*/
#ifndef COMBINED
#ifdef COMBINED
extern const game *gamelist[];
extern const int gamecount;
#else
extern const game thegame;
#endif