Convert src/charset.c to ANSI-style functions.
Convert src/diff.c to ANSI-style functions.