Return a list of code lines to allocate and assign the local parameter definitions
    that match those in the signature of the wrapped executable.

def _ctypes_ex_assign(executable):
    """Return a list of code lines to allocate and assign the local parameter definitions
    that match those in the signature of the wrapped executable.
    """
    result = []
    for p in executable.ordered_parameters:
        _ctypes_code_parameter(result, p, "assign")

    if type(executable).__name__ == "Function":
        _ctypes_code_parameter(result, executable, "assign")

    return result