def cfunc(name, dll, result, *args):
atypes = []<EOL>aflags = []<EOL>for arg in args:<EOL><INDENT>atypes.append(arg[<NUM_LIT:1>])<EOL>aflags.append((arg[<NUM_LIT:2>], arg[<NUM_LIT:0>]) + arg[<NUM_LIT:3>:])<EOL><DEDENT>return CFUNCTYPE(result, *atypes)((name, dll), tuple(aflags))<EOL>
build and apply a ctypes prototype complete with parameter flags