delorie.com/archives/browse.cgi | search |
On Sat, Mar 17, 2012 at 01:16:20PM -0400, DJ Delorie wrote: > > > With following patch, file http://661.org/tmp/ramcard.pcb can be > > opened in pcb from git. > > Is it acceptable? > > Would it be better to make up a name, like "Layer%d" ? > The source file has the layer name as "", so to avoid modifying it unnecessarily, I think we should keep the layer name as "". > Are we sure strdup() is the right thing to do? I believe the answer is yes: In mymem.c:721, when cleaning up pcb data, we call free() on the layer name. So presumably the name should either be NULL, or memory that we allocated. -- Andrew Poelstra Email: asp11 at sfu.ca OR apoelstra at wpsoftware.net Web: http://www.wpsoftware.net/andrew "You shouldn't trust every quote you read on the Internet." -- Socrates
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |