def parseHandles(src):
    matches = re.findall((('VK_DEFINE(_NON_DISPATCHABLE|)_HANDLE\\((' + IDENT_PTRN) + ')\\)[ \\t]*[\\n\\r]'), src)
    handles = []
    typeMap = {'': Handle.TYPE_DISP, '_NON_DISPATCHABLE': Handle.TYPE_NONDISP}
    for (type, name) in matches:
        handle = Handle(typeMap[type], name)
        handles.append(handle)
    return handles
def parseHandles(src):
    matches = re.findall((('VK_DEFINE(_NON_DISPATCHABLE|)_HANDLE\\((' + IDENT_PTRN) + ')\\)[ \\t]*[\\n\\r]'), src)
    handles = []
    typeMap = {: Handle.TYPE_DISP, '_NON_DISPATCHABLE': Handle.TYPE_NONDISP}
    for (type, name) in matches:
        handle = Handle(typeMap[type], name)
        handles.append(handle)
    return handles