mirror of
git://git.tartarus.org/simon/puzzles.git
synced 2025-04-21 16:05:44 -07:00
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:
@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user