diff options
| author | Simon Tatham <anakin@pobox.com> | 2005-01-22 15:29:01 +0000 |
|---|---|---|
| committer | Simon Tatham <anakin@pobox.com> | 2005-01-22 15:29:01 +0000 |
| commit | a99de1be8f01f619b965e446ff4ff85d4324f487 (patch) | |
| tree | 2f0aee8aa63600252568868f46422a2576ce76f2 /puzzles.h | |
| parent | cc545532268b04e05005bf65f53f0a1ba39335ba (diff) | |
| download | puzzles-a99de1be8f01f619b965e446ff4ff85d4324f487.zip puzzles-a99de1be8f01f619b965e446ff4ff85d4324f487.tar.gz puzzles-a99de1be8f01f619b965e446ff4ff85d4324f487.tar.bz2 puzzles-a99de1be8f01f619b965e446ff4ff85d4324f487.tar.xz | |
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]
Diffstat (limited to 'puzzles.h')
| -rw-r--r-- | puzzles.h | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -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 |