to-c stub hooked into the editor