def parseEnums(src):
    matches = re.findall((((('typedef enum(\\s*' + IDENT_PTRN) + ')?\\s*{([^}]*)}\\s*(') + IDENT_PTRN) + ')\\s*;'), src)
    enums = []
    for (enumname, contents, typename) in matches:
        enums.append(parseEnum(typename, contents))
    return enums
def parseEnums(src):
    matches = re.findall((((('typedef enum(\\s*' + IDENT_PTRN) + ')?\\s*{([^}]*)}\\s*(') + IDENT_PTRN) + ')\\s*;'), src)
    enums = []
    for (enumname, contents, typename) in matches:
        enums.append(parseEnum(typename, contents))
    return enums