1module TypeSanitizer
2  def self.sanitize_c_identifier(unsanitized)
3    # convert filename to valid C identifier by replacing invalid chars with '_'
4    unsanitized.gsub(/[-\/\\\.\,\s]/, '_')
5  end
6end
7