chiark / gitweb /
Add 'const' to the game_params arguments in validate_desc and
authorSimon Tatham <anakin@pobox.com>
Fri, 12 Apr 2013 17:11:49 +0000 (17:11 +0000)
committerSimon Tatham <anakin@pobox.com>
Fri, 12 Apr 2013 17:11:49 +0000 (17:11 +0000)
commit0b93de904a98f119b1a95d3a53029f1ed4bfb9b3
treee1fef5c0a006feb7c2a631c7e5c81487221734d7
parent383c15794a517a4e6dc0b7364edac1f7056cee82
Add 'const' to the game_params arguments in validate_desc and
new_desc. Oddities in the 'make test' output brought to my attention
that a few puzzles have been modifying their input game_params for
various reasons; they shouldn't do that, because that's the
game_params held permanently by the midend and it will affect
subsequent game generations if they modify it. So now those arguments
are const, and all the games which previously modified their
game_params now take a copy and modify that instead.

[originally from svn r9830]
43 files changed:
blackbox.c
bridges.c
cube.c
devel.but
dominosa.c
fifteen.c
filling.c
flip.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
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
twiddle.c
undead.c
unequal.c
unfinished/group.c
unfinished/separate.c
unfinished/slide.c
unfinished/sokoban.c
unruly.c
untangle.c