[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: gEDA: PCB creeping feature addition suggestion
> >
> > I'll try again but sending the patch as an attachment. I think there was some
> > space/tab mangling before. The patch is against the latest CVS sources although
> > you can probably make it apply (perhaps manually) to anything recent.
> >
> > -Dan
Now the patch works. I have patched 20040530 and did make clean and then
recompiled. Tried running pcb with pcbtest.sh. What should the patch do? I
didn't have noticed any difference in the parts library.
Cl<
> >
>
> one more time with the attachment...
>
> -Dan
>
> --
> Index: file.c
> ===================================================================
> RCS file: /cvsroot/pcb/pcb/src/file.c,v
> retrieving revision 1.17
> diff -u -2 -r1.17 file.c
> --- file.c 25 Aug 2004 02:27:20 -0000 1.17
> +++ file.c 25 Aug 2004 11:13:54 -0000
> @@ -943,10 +943,12 @@
> /* create the list entry */
> len = strlen (EMPTY (entry->Value)) +
> - strlen (EMPTY (entry->Description)) + 3;
> + strlen (EMPTY (entry->Description)) +
> + strlen (EMPTY (entry->Package)) + 6;
> entry->ListEntry = MyCalloc (len, sizeof (char),
> "ReadLibraryDescription()");
> sprintf (entry->ListEntry,
> - "%s, %s", EMPTY (entry->Value),
> - EMPTY (entry->Description));
> + "%s, %s [%s]", EMPTY (entry->Value),
> + EMPTY (entry->Description),
> + EMPTY (entry->Package));
> }
> }