Differences From Artifact [6028ae21c4]:

To Artifact [09d41ba2be]:


370
371
372
373
374
375
376
377

378
379
380
381
382
383
384
	  ## find attached port
	  matched = 0;
	  
	  for [comp2, comp_or_port2] = comp_S
	    for [that, that_name] = comp2
	      for [other_port, other_port_name] = that.ports
				
		if (strcmp(port.name, other_port.name)) 

		  ## found a match ... check it is unique ...
		  if (matched == 1)
		    E = "Multiple matching vector ports: %s matches %s";
		    mtt_error(sprintf(E, port.name, other_port.name),
			      errorfile);
		  else
		    matched = 1;







|
>







370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
	  ## find attached port
	  matched = 0;
	  
	  for [comp2, comp_or_port2] = comp_S
	    for [that, that_name] = comp2
	      for [other_port, other_port_name] = that.ports
				
		if (strcmp(port_name, other_port_name)
		    && (this.index != that.index)) 
		  ## found a match ... check it is unique ...
		  if (matched == 1)
		    E = "Multiple matching vector ports: %s matches %s";
		    mtt_error(sprintf(E, port.name, other_port.name),
			      errorfile);
		  else
		    matched = 1;

MTT: Model Transformation Tools
GitHub | SourceHut | Sourceforge | Fossil RSS ]