PJ: fix prototypes for redo and undo.
PJ: fix prototypes for render.