def generate_func_ptr(x, struct='hyperdex_client'): xp = copy.deepcopy(x) xp.name = 'WXYZ' fptr = generate_func(xp) fptr = fptr.replace('hyperdex_client_WXYZ', '(*f)') fptr = ' '.join([c.strip() for c in fptr.split('\n')]) fptr = fptr.strip('; ') return fptr
def generate_func_ptr(x, lib): xp = copy.deepcopy(x) xp.name = 'WXYZ' fptr = generate_func(xp, lib) fptr = fptr.replace('hyperdex_' + lib + '_WXYZ', '(*f)') fptr = ' ' .join([c.strip() for c in fptr.split('\n')]) fptr = fptr.strip('; ') return fptr
def generate_func_ptr(x, struct='hyperdex_client'): xp = copy.deepcopy(x) xp.name = 'WXYZ' fptr = generate_func(xp) fptr = fptr.replace('hyperdex_client_WXYZ', '(*f)') fptr = ' ' .join([c.strip() for c in fptr.split('\n')]) fptr = fptr.strip('; ') return fptr