Fix names in errors.h generator
Format C codes