translate-c: move some code to the C API

See #1964
f860493f23Andrew Kelley committed on 4/12/2019, 7:12:22 AMparent6f34d08
3 files changedLine totals unavailable