def getSymbolikImport(vw, impname): ''' Resolve (hopefully) and return a symbolik import emulation function for the given import by name. ''' modbase = vw.getMeta('SymbolikImportEmulation') if modbase is None: return None nameparts = impname.split('.') # FIXME *.malloc! # FIXME cache mod = vw.loadModule(modbase) return vstruct.resolve(mod, nameparts)
def getSymbolikImport(vw, impname): ''' Resolve (hopefully) and return a symbolik import emulation function for the given import by name. ''' modbase = vw.getMeta('SymbolikImportEmulation') if modbase == None: return None nameparts = impname.split('.') # FIXME *.malloc! # FIXME cache mod = vw.loadModule(modbase) return vstruct.resolve(mod, nameparts)