Complete.Org: Mailing Lists: Archives: freeciv-dev: May 2004:
[Freeciv-Dev] Re: (PR#8615) RFC: Splitting common/
Home

[Freeciv-Dev] Re: (PR#8615) RFC: Splitting common/

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: per@xxxxxxxxxxx
Subject: [Freeciv-Dev] Re: (PR#8615) RFC: Splitting common/
From: "Vasco Alexandre da Silva Costa" <vasc@xxxxxxxxxxxxxx>
Date: Sat, 1 May 2004 12:25:53 -0700
Reply-to: rt@xxxxxxxxxxx

<URL: http://rt.freeciv.org/Ticket/Display.html?id=8615 >

On Sat, 1 May 2004, Vasco Alexandre da Silva Costa wrote:

>
> <URL: http://rt.freeciv.org/Ticket/Display.html?id=8615 >
>
> On Fri, 30 Apr 2004, Jason Short wrote:
>
> >
> > <URL: http://rt.freeciv.org/Ticket/Display.html?id=8615 >
> >
> > Per I. Mathisen wrote:
> >
> >
> > > -static const char *general_int_to_text(int nr, int decade_exponent)
> > > +const char *general_int_to_text(int nr, int decade_exponent)
> >
> > I have no idea what this function does just by looking at the prototype.
> >   nr?  decade?  general int?  If we make it public it should be more
> > self-explanatory.
>
> To me that whole mess is simply a sprintf("%d", nr) that either does this:
>
> nr = 1000000, decade_exponent = 0:
> 1000000
>
> or this:
>
> nr = 1000000, decade_exponent = 3:
> 1 000 000

Or not. :-D

---
Vasco Alexandre da Silva Costa @ Instituto Superior Tecnico, Lisboa






[Prev in Thread] Current Thread [Next in Thread]