def generate_prototypes_from_src(src_text):
 src_text = collapse_braces(strip(src_text))
 prototype_pattern = re.compile(prototype, (re.M | re.S))
 function_pattern = re.compile(function, (re.M | re.S))
 prototypes = prototype_pattern.findall(src_text)
 functions = function_pattern.findall(src_text)
 declared_prototypes = list(map(sanitize_prototype, prototypes))
 all_prototypes = list(map(sanitize_prototype, functions))
 for declared_prototype in declared_prototypes:
  if (declared_prototype in all_prototypes):
   all_prototypes.remove(declared_prototype)
 all_prototypes = sorted(set(all_prototypes), key=all_prototypes.index)
 return all_prototypes

def generate_prototypes_from_src ( src_text ) : src_text = collapse_braces ( strip ( src_text ) ) prototype_pattern = re . compile ( prototype , ( re . M | re . S ) ) function_pattern = re . compile ( function , ( re . M | re . S ) ) prototypes = prototype_pattern . findall ( src_text ) functions = function_pattern . findall ( src_text ) declared_prototypes = list ( map ( sanitize_prototype , prototypes ) ) all_prototypes = list ( map ( sanitize_prototype , functions ) ) for declared_prototype in declared_prototypes : if ( declared_prototype in all_prototypes ) : all_prototypes . remove ( declared_prototype ) all_prototypes = sorted ( set ( all_prototypes ) , key = all_prototypes . index ) return all_prototypes
generate prototypes for all functions of a given source code .