Generate C function prototypes and convert function definitions