Returns a list of variable names that define the size of each dimension.

def _ctypes_splice(parameter):
    """Returns a list of variable names that define the size of each dimension.
    """
    params = parameter.ctypes_parameter()
    if parameter.direction == "(inout)" and ("allocatable" in parameter.modifiers or
                                             "pointer" in parameter.modifiers):
        return ', '.join(params[1:-1])
    else:
        return ', '.join(params[1::])