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

Glynn Clements glynn at gclements.plus.com
Mon Jan 8 09:12:37 EST 2007


Jachym Cepicky wrote:

> in read_dxf.c (v.in.dxf) there is function big_percent(). This function
> prints information about progres while import. big_percent is defined
> like
> 
> int big_percent(unsigned long n, unsigned long d, int s)
> 
> while G_percent
> 
> int G_percent (int n,int d,int s)
> 
> 
> 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.

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




More information about the grass-dev mailing list