Fix tiny build, move functions to undo.c.
4 files changed