Move yaml_error_type_t into foreign-function-safe enum