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

gEDA-cvs: CVS update: convert_sym.c



  User: mike    
  Date: 06/08/02 09:34:19

  Modified:    .        convert_sym.c
  Log:
  Added power pin handling patch from Patrick Doyle
  
  
  
  
  Revision  Changes    Path
  1.13      +10 -2     eda/geda/gaf/utils/src/convert_sym.c
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: convert_sym.c
  ===================================================================
  RCS file: /home/cvspsrv/cvsroot/eda/geda/gaf/utils/src/convert_sym.c,v
  retrieving revision 1.12
  retrieving revision 1.13
  diff -u -b -r1.12 -r1.13
  --- convert_sym.c	27 Sep 2005 22:46:55 -0000	1.12
  +++ convert_sym.c	2 Aug 2006 13:34:19 -0000	1.13
  @@ -33,7 +33,7 @@
    *   along with this program; if not, write to the Free Software
    *   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111 USA
    *
  - * 	$Id: convert_sym.c,v 1.12 2005/09/27 22:46:55 danmc Exp $	 
  + * 	$Id: convert_sym.c,v 1.13 2006/08/02 13:34:19 mike Exp $	 
    */
   
   #include <stdio.h>
  @@ -52,7 +52,7 @@
   
   #if 0 /* removed by AVH just to make a -Wall -Werror happy */
   #ifndef lint
  -static char vcid[] = "$Id: convert_sym.c,v 1.12 2005/09/27 22:46:55 danmc Exp $";
  +static char vcid[] = "$Id: convert_sym.c,v 1.13 2006/08/02 13:34:19 mike Exp $";
   #endif /* lint */
   #endif
   
  @@ -784,6 +784,14 @@
           sprintf(text, "pintype=tri");
   #endif
         }
  +      else if (strcmp(value, "PWR") == 0)
  +      {
  +#ifdef HAVE_SNPRINTF
  +        snprintf(text, MAX_TEXTLEN, "pintype=pwr");
  +#else
  +        sprintf(text, "pintype=pwr");
  +#endif
  +      }
         else
         {
           fprintf(stderr,"Error: Invalid or unknown pin type \"%s\" for record "
  
  
  


_______________________________________________
geda-cvs mailing list
geda-cvs@xxxxxxxxxxxxxx
http://www.seul.org/cgi-bin/mailman/listinfo/geda-cvs