chiark / gitweb /
Giant const patch of doom: add a 'const' to every parameter in every
authorSimon Tatham <anakin@pobox.com>
Sat, 13 Apr 2013 10:37:32 +0000 (10:37 +0000)
committerSimon Tatham <anakin@pobox.com>
Sat, 13 Apr 2013 10:37:32 +0000 (10:37 +0000)
commit251b21c41813055d9c416378508b1ee038bc3dac
tree3adb963c93a9ae014c8c7d6fd1bce5498d6bd062
parent339329449f4db72e4754f21c14295303ffe0ea5d
Giant const patch of doom: add a 'const' to every parameter in every
puzzle backend function which ought to have it, and propagate those
consts through to per-puzzle subroutines as needed.

I've recently had to do that to a few specific parameters which were
being misused by particular puzzles (r9657, r9830), which suggests
that it's probably a good idea to do the whole lot pre-emptively
before the next such problem shows up.

[originally from svn r9832]
[r9657 == 3b250baa02a7332510685948bf17576c397b8ceb]
[r9830 == 0b93de904a98f119b1a95d3a53029f1ed4bfb9b3]
45 files changed:
blackbox.c
bridges.c
cube.c
dominosa.c
fifteen.c
filling.c
flip.c
galaxies.c
grid.c
grid.h
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
random.c
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