parameters: (vstr)
docstring: Normalize a Linux compiler version number.
      Intel changed from "80" to "9.0" in 2005, so we assume if the number
      is greater than 60 it's an old-style number and otherwise new-style.
      Always returns an old-style float like 80 or 90 for compatibility with Windows.
      Shades of Y2K!
docstring_summary: Normalize a Linux compiler version number.
      Intel changed from "80" to "9.0" in 2005, so we assume if the number
      is greater than 60 it's an old-style number and otherwise new-style.
      Always returns an old-style float like 80 or 90 for compatibility with Windows.
      Shades of Y2K!
docstring_tokens: Normalize a Linux compiler version number . Intel changed from 80 to 9 . 0 in 2005 so we assume if the number is greater than 60 it s an old - style number and otherwise new - style . Always returns an old - style float like 80 or 90 for compatibility with Windows . Shades of Y2K!
function: def linux_ver_normalize(vstr):
      """Normalize a Linux compiler version number.
      Intel changed from "80" to "9.0" in 2005, so we assume if the number
      is greater than 60 it's an old-style number and otherwise new-style.
      Always returns an old-style float like 80 or 90 for compatibility with Windows.
      Shades of Y2K!"""
      # Check for version number like 9.1.026: return 91.026
      # XXX needs to be updated for 2011+ versions (like 2011.11.344 which is compiler v12.1.5)
      m = re.match(r'([0-9]+)\.([0-9]+)\.([0-9]+)', vstr)
      if m:
          vmaj,vmin,build = m.groups()
          return float(vmaj) * 10. + float(vmin) + float(build) / 1000.;
      else:
          f = float(vstr)
          if is_windows:
              return f
          else:
              if f < 60: return f * 10.0
              else: return f
function_tokens: def linux_ver_normalize ( vstr ) : # Check for version number like 9.1.026: return 91.026 # XXX needs to be updated for 2011+ versions (like 2011.11.344 which is compiler v12.1.5) m = re . match ( r'([0-9]+)\.([0-9]+)\.([0-9]+)' , vstr ) if m : vmaj , vmin , build = m . groups ( ) return float ( vmaj ) * 10. + float ( vmin ) + float ( build ) / 1000. else : f = float ( vstr ) if is_windows : return f else : if f < 60 : return f * 10.0 else : return f