Commit Briefs

f374e91343 Stefan Sperling

support output of individual diff chunks in the public API


05b5f01fe7 Stefan Sperling

fix segfault which occurred with empty input files


945524ed4b Stefan Sperling

remove abort() in example code


6f26cb2ecb Stefan Sperling

convert abort() in diff_output_lines() to error return



03f497279d Stefan Sperling

return error instead of abort()


bfdc637cd9 Stefan Sperling

add missing reallocarray(3) compat shim



41d00e9f34 Stefan Sperling

make use of source files in compat/ directory on Linux




440d36388f Stefan Sperling

remove unused portable GNUmakefile


0096113475 Stefan Sperling

reduce default diff-box recursion depth from 1024 to 32


e4464189bc Stefan Sperling

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



732e8ee032 Stefan Sperling

add support for ignoring whitespace (-w option)

Tests grow the ability to call diff with options. Options to use are encoded in the test file name as a single dash followed by a string of option letters. E.g. -wp for 'ignore whitespace' and 'do patience'



8546b0450f Neels Hofmeyr

diff result: ensure sane order of result chunks

Ensure that a adjacent chunks of same type are combined, and that a minus block always precedes an adjacent plus block. The upcoming myers-divide optimization is prone to produce weird ordering of plus and minus chunks.


2c8a57df59 Neels Hofmeyr

add ARRAYLIST_INSERT()


44cf49504c Neels Hofmeyr

patience: error handling from diff_atoms_same()


ac2eeeffef Neels Hofmeyr

myers: error handling from diff_atoms_same()




3e6cba3a54 Stefan Sperling

replace enum diff_rc errors with plain errno values


80b447444e Stefan Sperling

fix build with 'make PROFILE=1' on OpenBSD