parameters: (text)
return_statement: return parsed
docstring: Parses typedefs from text except struct, union and enum typedefs.
  
      Parses them as function parameters - same syntax.
docstring_summary: Parses typedefs from text except struct, union and enum typedefs.
docstring_tokens: Parses typedefs from text except struct union and enum typedefs .
function: def parse_typedefs(text):
      """Parses typedefs from text except struct, union and enum typedefs.
  
      Parses them as function parameters - same syntax.
      """
      typedefs = get_typedefs(text)
      to_parse = []
      for t_def in typedefs:
          t_defs = split_params(t_def)
          if len(t_defs) == 0:
              continue
          to_parse.append(t_defs[0])
          if len(t_defs) > 1:
              t_type = re.search(r'^([\w\s]+)?(?=\s+(?:\*|\w+|\(\*))', t_defs[0])
              t_type = t_type.group(1) if t_type else ''
              for next_type in t_defs[1:]:
                  to_parse.append(t_type + ' ' + next_type)
  
      parsed = []
      for t_def in to_parse:
          if t_def.endswith(')'):
              t_def = remove_brackets_around_pointer(t_def)
          parsed = parsed + parse_func_parameters(t_def)
      return parsed
function_tokens: def parse_typedefs ( text ) : typedefs = get_typedefs ( text ) to_parse = [ ] for t_def in typedefs : t_defs = split_params ( t_def ) if len ( t_defs ) == 0 : continue to_parse . append ( t_defs [ 0 ] ) if len ( t_defs ) > 1 : t_type = re . search ( r'^([\w\s]+)?(?=\s+(?:\*|\w+|\(\*))' , t_defs [ 0 ] ) t_type = t_type . group ( 1 ) if t_type else '' for next_type in t_defs [ 1 : ] : to_parse . append ( t_type + ' ' + next_type ) parsed = [ ] for t_def in to_parse : if t_def . endswith ( ')' ) : t_def = remove_brackets_around_pointer ( t_def ) parsed = parsed + parse_func_parameters ( t_def ) return parsed