Dietrich Epp 910039b77a Convert files incrementally
The previous implementation read the entire file into memory and then
processed it. This version uses reasonably-sized buffers and can handle
files of any size.

Since this new conversion code is a bit more complicated, a test suite
has been added which can be run on ordinary Unix systems.

GitOrigin-RevId: acc7be277103fad1da2d0ca16d1a84be11802fbf
2021-03-24 04:20:45 -04:00

5 lines
149 B

set -e
CFLAGS="-O0 -g -Wall -Wextra -Wstrict-prototypes"
cc -o convert_test $CFLAGS convert_test.c mac_to_unix.c mac_from_unix.c
exec ./convert_test