Mail Archives: djgpp/2003/08/04/01:57:04
> From: Quasar <haleyjd AT hotmail DOT com>
> Newsgroups: comp.os.msdos.djgpp
> Date: 04 Aug 2003 05:07:36 GMT
>
> I thought about doing that, but the fcvt function is very complicated
> and makes use of locale facilities and some other, apparently internal,
> libc functions. I'd end up copying over several hundred KB of code before
> it was done, more than likely.
``Several hundred KB of code'' is an extreme exaggeration: if you
look closely at fcvt, you will see that all you need is 3 files:
fcvt.c, fcvtbuf.c, and ecvtbuf.c, for a grand total of 4400 bytes.
As for localeconv()->decimal_point[0], you could simply replace it
with a `.' and be done with that.
> Also, I'm on a
> very slow internet connection. The last time I dl'd DJGPP, it took the
> better part of a day :(
You can get only the 3 files in question via the CVSWeb interface to
the DJGPP sources. See
http://www.delorie.com/djgpp/cvs.html
> The program is a DOOM port with over 120,000 lines of code, and requires
> an older version of the Allegro library.
If that DOOM version requires an older Allegro library, it was
probably already ported to DJGPP, and so someone who did that port
already found a solution for fcvt, right? So how come you need to
reinvent that solution?
- Raw text -