Mail Archives: djgpp/2000/05/18/01:16:36
Richard Dawe wrote:
>
> Hello.
>
> "Alexei A. Frounze" wrote:
> >
> > Eli Zaretskii wrote:
> > > You need it for portability.
> > >
> > > size_t is not equal to int. Its precise definition depends on the
> > > implementation.
> [snip]
> > I said they equals machine word. I.e. 32-bit on i386+. For sure
> > developer can setup them differently... But this way seems to be common.
>
> You seem to be missing the point that you shouldn't rely on size_t and int
> being the same size (also: size_t is unsigned, ssize_t is signed).
And you seem too. ;)
I've never said I _rely_. I don't use size_t in my sources. Only standard
types: char, short, int, long int, long long,... ;)
> I don't think the size of size_t is up to each developer - it's up to the
> people writing the standard libraries. What happens if they decide to
> change the size of size_t to e.g. a larger size? All your code will break.
I meant the same. A developer of LIBC for particular CPU. :)
bye.
Alexei A. Frounze
-----------------------------------------
Homepage: http://alexfru.chat.ru
Mirror: http://members.xoom.com/alexfru
- Raw text -