Mail Archives: geda-user/2012/07/05/16:06:13
On Thu, Jul 05, 2012 at 10:34:23AM -0700, Andrew Poelstra wrote:
> On Thu, Jul 05, 2012 at 12:16:14PM +0200, Gabriel Paubert wrote:
> >
> > I have appended a second version of the patch; the only difference
> > with the first one is that now the line in the header that starts
> > with "G04 PCB-dimensions" now specifies the dimensions either in
> > metric or in imperial dimensions depending on the metric option.
> >
> > I was expecting that the developers with git write access
> > would be a bit more reactive and tell me whether something
> > looked wrong with the patch. I must admit I'm not completely
> > satisfied with the names of some functions/variables, but I'm
> > not too worried since they are local to the gerber.c file. For
> > global names, I'm much fussier.
> >
>
> The patch is as well-done as it could be. I considered doing
> it a while back, but was turned off by all the if-statements
> necessary. Thanks for finally biting the bullet!
Thanks for reviewing it. Actually the trick to avoid too many
conditionals was to wrap all single X/Y coordinates prints
in a couple of macros. For the others, I used a ?: operator
in the format spec. In the end the patch is relatively small.
>
> Unfortunately, I don't recall enough about the Gerber spec
> to review your patch, nor to address your other concerns. I
> might push it through when I get a free moment anyway, assuming
> it doesn't break the old behavior.
>
> > From my limited tests, the patch does not affect the Gerber
> > code in imperial mode (diff output only lists the obvious:
> > timestamp in the header, and the board dimensions in the
> > second version of the patch, in any case only the comments
> > are affected).
> >
>
> Does tests/run_tests.sh still pass?
I did not know about it, I shall run it tomorrow and come back
to the results.
> > Question to developers: would a patch that fixes the drill bit
> > numbering problem described above be considered for inclusion?
> >
>
> I would expect so. I don't like the huge drill numbers for purely
> asthetic reasons.
Ok, I might try to write something over the week-end.
Gabriel
- Raw text -