Attached (perhaps) is a trivial patch to convert_sym.c to enable it to handle viewlogic schematics with pins marked as "PWR".
I know I'm preaching to the choir, but I can't help making a plug here. This is why I prefer open source software over close source software. I decided to evaluate the gEDA tools to see if they meet my needs. I tried to import the schematic symbol provided by the silicon vendor, and the import failed. I looked at the error message, looked at the source code, added 8 lines of code to the tool, recompiled, and got back to the business at hand. Now, I admit, not all such tool problems can be so trivially fixed, but this particular problem, and it's solution, cost me 15 minutes of development time (plus an additional 15 minutes, because I can't seem to compose short emails :-)). Compare that to: I decided to evaluate the xyzEDA tools to see if they meet my needs. I tried to import the schematic symbol provided by the silicon vendor, and the import failed. I looked at the error message, when to he support page for the CAD vendor, googled around for a fix, couldn't find anything, filed a trouble ticket with the CAD vendor, and waited for a fix to be provided in the next release. In the mean time, I worked around the problem by drawing the symbol by hand. (Note, the preceding paragraph is entirely fictitious). Anyway, thanks team! And thanks for the source! --wpd
Index: src/convert_sym.c =================================================================== RCS file: /home/cvspsrv/cvsroot/eda/geda/gaf/utils/src/convert_sym.c,v retrieving revision 1.12 diff -u -r1.12 convert_sym.c --- src/convert_sym.c 27 Sep 2005 22:46:55 -0000 1.12 +++ src/convert_sym.c 2 Aug 2006 13:02:45 -0000 @@ -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-user mailing list geda-user@moria.seul.org http://www.seul.org/cgi-bin/mailman/listinfo/geda-user