chiark / gitweb /
Adopt C99 bool in the game backend API.
authorSimon Tatham <anakin@pobox.com>
Tue, 13 Nov 2018 21:34:42 +0000 (21:34 +0000)
committerSimon Tatham <anakin@pobox.com>
Tue, 13 Nov 2018 21:34:42 +0000 (21:34 +0000)
commita76d269cf222ba81e717c7e9046db391f19036eb
tree85533d16a00371ad527e532021e0ef3ed05e5e84
parent0f77798ae24d2152c5393f01e55e0168c564ee0d
Adopt C99 bool in the game backend API.

encode_params, validate_params and new_desc now take a bool parameter;
fetch_preset, can_format_as_text_now and timing_state all return bool;
and the data fields is_timed, wants_statusbar and can_* are all bool.
All of those were previously typed as int, but semantically boolean.

This commit changes the API declarations in puzzles.h, updates all the
games to match (including the unfinisheds), and updates the developer
docs as well.
46 files changed:
blackbox.c
bridges.c
cube.c
devel.but
dominosa.c
fifteen.c
filling.c
flip.c
flood.c
galaxies.c
guess.c
inertia.c
keen.c
lightup.c
loopy.c
magnets.c
map.c
mines.c
net.c
netslide.c
nullgame.c
palisade.c
pattern.c
pearl.c
pegs.c
puzzles.h
range.c
rect.c
samegame.c
signpost.c
singles.c
sixteen.c
slant.c
solo.c
tents.c
towers.c
tracks.c
twiddle.c
undead.c
unequal.c
unfinished/group.c
unfinished/separate.c
unfinished/slide.c
unfinished/sokoban.c
unruly.c
untangle.c