On Fri, 2009-03-13 at 07:05 +0000, Peter TB Brett wrote: > On Friday 13 March 2009 04:44:58 Josh Jordan wrote: > > Thanks for the comments. I have made suggested changes. I have tried > > using g_strsplit and found it to takes more lines of code and uses more > > memory. I prefer the changes to be walking-style instead of g_strsplit due > > to fewer lines, less allocated memory, and it will be easier to make it > > accept escape characters or other tweaks. I made a function to add > > libraries that replaces the strtok code and can be used if more libraries > > need to be added. > > Have you considered flex/bison?
Overkill for this application I think, especially since gsch2pcb doesn't use it for anything else. -- Peter Clifton Electrical Engineering Division, Engineering Department, University of Cambridge, 9, JJ Thomson Avenue, Cambridge CB3 0FA Tel: +44 (0)7729 980173 - (No signal in the lab!) _______________________________________________ geda-user mailing list geda-user@moria.seul.org http://www.seul.org/cgi-bin/mailman/listinfo/geda-user