[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

gEDA-cvs: CVS update: g_netlist.c



  User: cnieves 
  Date: 06/03/06 13:25:21

  Modified:    .        g_netlist.c
  Log:
  Return pintype 'pwr' for hidden pins. Applied patch from Holger Oehm.
  
  
  
  
  Revision  Changes    Path
  1.42      +14 -0     eda/geda/devel/gnetlist/src/g_netlist.c
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: g_netlist.c
  ===================================================================
  RCS file: /home/cvspsrv/cvsroot/eda/geda/devel/gnetlist/src/g_netlist.c,v
  retrieving revision 1.41
  retrieving revision 1.42
  diff -u -b -r1.41 -r1.42
  --- g_netlist.c	4 Jan 2006 14:36:25 -0000	1.41
  +++ g_netlist.c	6 Mar 2006 18:25:21 -0000	1.42
  @@ -680,6 +680,20 @@
   			printf("GOT IT: %s\n", return_value);
   		    }
   #endif
  +		} else if (strcmp("pintype",
  +				  wanted_attrib) == 0) {
  +		  if (nl_current->cpins) {
  +		    CPINLIST *pinobject =
  +		      s_cpinlist_search_pin(nl_current->cpins, pin);
  +		    if (pinobject) {
  +		      return_value="pwr";
  +#if DEBUG
  +		      
  +		      printf("Supplied pintype 'pwr' for artificial pin '%s' of '%s'\n",
  +			     pin, uref);
  +#endif
  +		    }
  +		  }		
   		}
   	    }
   	}