diff options
| author | Simon Tatham <anakin@pobox.com> | 2023-04-02 10:20:37 +0100 |
|---|---|---|
| committer | Simon Tatham <anakin@pobox.com> | 2023-04-02 14:35:12 +0100 |
| commit | 71e1776094aa9240e9772b7fbc99dd5e2f4e1acb (patch) | |
| tree | 8d8b1772914ba2aa5d523753cf779362e7fca64e /CMakeLists.txt | |
| parent | 0bd1a8057841386754f9f4a8a268616c7ce80e80 (diff) | |
| download | puzzles-71e1776094aa9240e9772b7fbc99dd5e2f4e1acb.zip puzzles-71e1776094aa9240e9772b7fbc99dd5e2f4e1acb.tar.gz puzzles-71e1776094aa9240e9772b7fbc99dd5e2f4e1acb.tar.bz2 puzzles-71e1776094aa9240e9772b7fbc99dd5e2f4e1acb.tar.xz | |
Move hat-test into its own source file.
I noticed while hacking on hat-test recently that it's quite awkward
to be compiling a test main() program that lives in a source file also
built into the Puzzles support library, because every modification to
main() also triggers a rebuild of the library, and thence of all the
actual puzzles. So it's better if such a test main() has its own
source file.
In order to make hat-test work standalone, I've had to move a lot of
hat.c's internal declarations out into a second header file. This also
means making a bunch of internal functions global, which means they're
also in the namespace of programs other than hat-test, which means in
turn that they should have names with less implicit context.
Diffstat (limited to '')
| -rw-r--r-- | CMakeLists.txt | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index df942c9..a70532c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -271,7 +271,6 @@ cliprogram(latincheck latin.c COMPILE_DEFINITIONS STANDALONE_LATIN_TEST) cliprogram(matching matching.c COMPILE_DEFINITIONS STANDALONE_MATCHING_TEST) cliprogram(combi combi.c COMPILE_DEFINITIONS STANDALONE_COMBI_TEST) cliprogram(divvy divvy.c COMPILE_DEFINITIONS TESTMODE) -cliprogram(hat-test hat.c COMPILE_DEFINITIONS TEST_HAT) cliprogram(penrose-test penrose.c COMPILE_DEFINITIONS TEST_PENROSE) cliprogram(penrose-vector-test penrose.c COMPILE_DEFINITIONS TEST_VECTORS) cliprogram(sort-test sort.c COMPILE_DEFINITIONS SORT_TEST) |