def PrintRanges(type, name, ranges):
  """Print the ranges as an array of type named name."""
  print "static const %s %s[] = {" % (type, name,)
  for lo, hi in ranges:
    print "\t{ %d, %d }," % (lo, hi)
  print "};"
def PrintRanges ( type , name , ranges ) : print "static const %s %s[] = {" % ( type , name , ) for lo , hi in ranges : print "\t{ %d, %d }," % ( lo , hi ) print "};"
Print the ranges as an array of type named name.