From a99de1be8f01f619b965e446ff4ff85d4324f487 Mon Sep 17 00:00:00 2001 From: Simon Tatham Date: Sat, 22 Jan 2005 15:29:01 +0000 Subject: 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] --- puzzles.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'puzzles.h') 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 -- cgit v1.1