Commit Briefs

c737b93b77 tj

fread cannot return -1

fread returns a size_t and can never be -1. fread can signal parameter errors on some platforms, but this isn't portable. Remove this check and break out of the loop when fread returns 0. ok op@


a32272f07b Neels Hofmeyr

debug: fix missing quote


8b6ce5317f Neels Hofmeyr

debug fix: missing space


f579bf7733 Neels Hofmeyr

debug output fixes

- fix compilation error with DEBUG 1, after moving patience state out of diff_atom, and after renaming diff_data.d to diff_data.root. - add some missing newlines. - also debug "HIT" on a max-effort cut, like when finding a mid snake, which eases finding all the places where boxes get cut.


60b6e08bf7 Neels Hofmeyr

patience: use qsort to optimize finding unique lines


8ac34c07fc Neels Hofmeyr

diff_debug.h: drop unused vars


5e24137996 Stefan Sperling

disable debug by default again


2a1b94d029 Stefan Sperling

repair DEBUG build


e4464189bc Stefan Sperling

rename 'debug.h' to 'diff_debug.h'