aboutsummaryrefslogtreecommitdiff
path: root/puzzles.h
diff options
context:
space:
mode:
authorSimon Tatham <anakin@pobox.com>2005-01-22 15:29:01 +0000
committerSimon Tatham <anakin@pobox.com>2005-01-22 15:29:01 +0000
commita99de1be8f01f619b965e446ff4ff85d4324f487 (patch)
tree2f0aee8aa63600252568868f46422a2576ce76f2 /puzzles.h
parentcc545532268b04e05005bf65f53f0a1ba39335ba (diff)
downloadpuzzles-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.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/puzzles.h b/puzzles.h
index a9f1a92..4de81a7 100644
--- a/puzzles.h
+++ b/puzzles.h
@@ -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