]> CyberLeo.Net >> Repos - FreeBSD/releng/10.2.git/blob - contrib/ntp/sntp/unity/auto/type_sanitizer.rb
Upgrade NTP to 4.2.8p4.
[FreeBSD/releng/10.2.git] / contrib / ntp / sntp / unity / auto / type_sanitizer.rb
1 module TypeSanitizer
2   
3   def self.sanitize_c_identifier(unsanitized)
4     # convert filename to valid C identifier by replacing invalid chars with '_'
5     return unsanitized.gsub(/[-\/\\\.\,\s]/, "_")
6   end
7
8 end