> > > the use of "char", "int" etc in Palm programming should
> > > be forbidden :) use the standard data types - they are
> > > more specific than "int". for example, Int32 = 32 bit
> > > integer.
> >
> > I disagree with this. [...] But in order for your code
> > to be as efficient as you want, use literal ints.
>
> as a developer, especially on embedded systems like the
> Palm OS, it is very important to know what the min/max values
> are for your integer values.
I think the ISO/IEC 9899:1999 C Language standard header
<stdint.h> provides a usable solution to these conflicting
requirements. For example:
int16_t - if you must have 16 bits of signed int
int_fast16_t - the fastest int covering the range
int_least16_t - the smallest int covering the range
The stdint.h header file can then map these on to the right
built-in types for the compiler/platform.
--
David Bonham ([EMAIL PROTECTED]) | KOP: Row 27 Seat 199
Roundpoint, Unit 200, Science Park, | TEL: +44 (0) 1223 706 113
Milton Road, Cambridge, CB4 0GZ | FAX: +44 (0) 1223 706 106
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/