translate-c: move some code to the C API

See #1964
b960f1d922Andrew Kelley committed on 4/11/2019, 7:33:26 PMparent4172fe9
3 files changedLine totals unavailable