Re: POW (2000/02/23) - AbiWord, BeOS, and the PowerPC!


Subject: Re: POW (2000/02/23) - AbiWord, BeOS, and the PowerPC!
abnay@altavista.net
Date: Thu Feb 24 2000 - 09:07:14 CST


Thomas Fletcher wrote:
> Well the first thing that I would say is that you should
> use the types that are being asked for for a function.
>
> For example (looking at the tinderbox code) iconv() is
> defined using a size_t, but then when it is used in
> the spelling code (newMain.c line 165 etc) we are
> using unsigned long * ... which may or may not be
> the same as a size_t *.
>
> Fix newMain.c to use the proper types (ie size_t) or
> cast them (at your peril) and your errors will likely
> go away. I seem to remember going through this when
> I brought the BeOS port up initially that I had to
> patch various pieces of code to be conformant that
> way.
>
> Nothing BeOS specific here .... just good programming
> practice.

I second every word that was said above. Actually,
I have done this and a few others in the sources I
have on my machine in my quest to clean up the warnings.

Bharadwaj

----------------------------------------------------------------
Get your free email from AltaVista at http://altavista.iname.com



This archive was generated by hypermail 2b25 : Thu Feb 24 2000 - 09:07:20 CST