code: def _ctypes_splice(parameter):
      
      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::])
docs: Returns a list of variable names that define the size of each dimension.