chiark / gitweb /
Refactor to make me->newgame_undo a small struct.
authorSimon Tatham <anakin@pobox.com>
Sat, 18 Nov 2017 19:36:10 +0000 (19:36 +0000)
committerSimon Tatham <anakin@pobox.com>
Sat, 18 Nov 2017 20:05:07 +0000 (20:05 +0000)
commite2514a72e6c8d0269264d75d58186875cc5c027c
tree285db8b3d62cead06b269ff3c9c71b8a59f9f5ac
parent5c6fcf10a363c73b00f0daa752ccf9d133a35793
Refactor to make me->newgame_undo a small struct.

The three related buf/len/size fields are now a sub-structure of the
main midend, and the serialise/deserialise functions that address
those fields now take a pointer to that sub-structure rather than to
the midend as a whole. This will make it easy for me to drop in a
second substructure alongside it, for redo, and reuse those read and
write functions by just changing the context pointer.
midend.c