def populateAliasesWithTypedefs(objects, src):
    objectsByName = {}
    for object in objects:
        objectsByName[object.name] = object
        ptrn = (('\\s*typedef\\s+' + object.name) + '\\s+([^;]+)')
        stash = re.findall(ptrn, src)
        if (len(stash) == 1):
            objExt = copy.deepcopy(object)
            objExt.name = stash[0]
            object.alias = objExt
            objExt.isAlias = True
            objects.append(objExt)
def populateAliasesWithTypedefs(objects, src):
    objectsByName = {}
    for object in objects:
        objectsByName[object.name] = object
        ptrn = (('\\s*typedef\\s+' + object.name) + '\\s+([^;]+)')
        stash = re.findall(ptrn, src)
        if (len(stash) == 1):
            objExt = copy.deepcopy(object)
            objExt.name = stash[0]
            object.alias = objExt
            objExt.isAlias = True
            objects.append(objExt)