def METHOD_NAME(lines):
   typedefs = []
   syms = []
   for line in lines:
      # Note this doesn't work automated; this script is designed as a helper
      m = re.search(r'^typedef.+PFN(\S+)PROC.+$', line)
      g = re.search(r'^GLAPI\s(.+)\s(.+)\s(gl\S+)\W*\((.+)\).*', line)
      if g and noext(g.group(3)):
         typedefs.append('typedef ' + g.group(1) + ' (APIENTRYP RGLSYM' + g.group(3).upper() + 'PROC) (' + g.group(4) + ');')
         syms.append(g.group(3))
   return (typedefs, syms)