translate-c: move some code to the C API

See #1964
9d229791c6Andrew Kelley committed on 4/12/2019, 6:39:12 PMparent63f2e96
3 files changedLine totals unavailable