Things to do:

- tidy up the code.  rediff.c has some nice routines that should be moved
  to diff.c.  More use of assert().
