Commits


adjust preadline() and ignoreline() to match diff(1) again


in diffreg.c, return value from preadline() must be freed


always free ds->ixold and ds->ixmew in got_diffreg()


always free ds->clist and ds->klist in got_diffreg()


always free ds->J in got_diffreg()


always free ds->member and ds->class in got_diffreg()


fix reallocarray error handling in diffreg.c


move diffreg's max_context into struct got_diff_state


make max_connect static as in the original diffreg.c This way we grow the array instead of doing 64 <<= 1.


fix open file leaks in previous


check for fopen() failures in got_diffreg()


remove GOT_ERR_NO_MEM, we can just use errno in those cases


rename the library-internal headers again to a common prefix


rename library-private headers from *_priv.h to *_lib.h


rename private header filenames so they are in got_ namespace


Get rid of xmalloc.{c,h}. malloc(3) & pread(3) errors will now be reported as GOT_ERR_NO_MEM. This does not improve the numbers of leaks in diffreg.c


make tree diffing work


pass output file to diffreg


move tempfile creation out of got_diffreg()


add todo comment about diffreg() arguments


add a comment about xmalloc; it needs to go away


remove diff_args from global state as well


store stat buffers in diff_state rather than diff_args


store global diff state in memory provided by caller


move more globals into struct diff_state