translate-c: move some code to the C API

See #1964
dff201540fAndrew Kelley committed on 4/11/2019, 7:59:12 AMparent8f5753b
3 files changedLine totals unavailable