def parseFunctions(src):
    ptrn = (((('VKAPI_ATTR\\s+(' + TYPE_PTRN) + ')\\s+VKAPI_CALL\\s+(') + IDENT_PTRN) + ')\\s*\\(([^)]*)\\)\\s*;')
    matches = re.findall(ptrn, src)
    functions = []
    for (returnType, name, argList) in matches:
        functions.append(Function(name.strip(), returnType.strip(), parseArgList(argList)))
    return functions
def parseFunctions(src):
    ptrn = (((('VKAPI_ATTR\\s+(' + TYPE_PTRN) + ')\\s+VKAPI_CALL\\s+(') + IDENT_PTRN) + ')\\s*\\(([^)]*)\\)\\s*;')
    matches = re.findall(ptrn, src)
    functions = []
    for (returnType, name, argList) in matches:
        functions.append(Function(name.strip(), returnType.strip(), parseArgList(argList)))
    return functions