[GRASS-dev] v.in.dxf and modified version of G_percent

Glynn Clements glynn at gclements.plus.com
Tue Jan 9 07:31:34 EST 2007


Jachym Cepicky wrote:

> > > IMHO v.in.dxf should use G_percent too. What kind of approach is the
> > > best:
> > > 
> > >     - Rewrite G_percent, so it uses long integers on input
> > >     - New function G_percent_big for cases like this
> > >     - Nothing, using G_percent directly will not cause any problem
> > 
> > I suggest taking the first approach.
> 
> Could you review this patch, please? It seems to work for me, but I have
> no real imagination about the number types and how they are compatible in C.

I've committed it with a couple of minor changes:

1. The doxygen comments have been updated to the new prototypes.
2. The "s" parameter (which is a percentage) remains an "int".

-- 
Glynn Clements <glynn at gclements.plus.com>




More information about the grass-dev mailing list