AmendHub

jcs

/

amend

/

amendments

/

diffreg.c

Amendments on February 6, 2023

*: Lots of little fixes and dead variable removal

Found by cppcheck and scan-build
jcs made amendment 110 about 1 year ago

Amendments on August 18, 2022


Amendments on June 15, 2022

repo: Limit filename length when creating temporary files

Files can be 31 characters long, so appending " (Amend tmp)" to a
long filename can put us over that limit. Work in a Str31 and put
our "[tmp] " and "[deleted] " labels at the beginning so we don't
end up overwriting the existing file if the filename is already 31
characters long.
Check error result of getpath calls as well.
jcs made amendment 80 about 1 year ago

Amendments on June 7, 2022

diffreg: Open files as binary to get expected newline handling

Unbeknownst to me, THINK C's file stream library transparently
converts \r newlines to \n. By opening files as binary, this is
disabled and we get \r newlines as expected.
jcs made amendment 70 about 1 year ago

Amendments on April 16, 2022

diffreg: Fix D_PROTOTYPE usage

Look for a Mac-style newline here, not Unix
jcs made amendment 65 over 2 years ago

Amendments on October 19, 2021

Initial import of Amend through Amend!

jcs made amendment 1 over 2 years ago