John Marshall wrote:
> Steve Sabram <[EMAIL PROTECTED]> wrote:
> > To let you know where this is coming from, I have found this to be
> > very useful when working with quasi-compliant C compilers; mostly from
> > the 8-bit microcontroller world. That typecasting I have done has
> > avoided many a compiler bug since to due a lot of non-standard
> > implementations. Many compilers that don't have the ANSI seal of
> > approval uses explicit typecasting for just the problems that have
> > been mentioned.
>
> That's very true. But Palm OS headers assume ISO C and contain prototypes
> without any macro goop to hide them from pre-ANSI compilers. Hence any
> compiler which accepts a program which includes Palm OS headers without
> complaint can be assumed to grok prototypes and thus not to need casts
> in these situations.
>
I'm glad to see the enviroments for the PalmOS have matured to this level and I take
this for granted now.
>
> Fortunately programs that don't need to be portable to worlds like the
> one you describe don't have to be written as if it is still 1985!
Unfortunately when you work on projects where the instruction set is under a year old,
the CPU is first silicon and the compiler is
less than a month old, sometimes that's all there is to get something reusable.
> Hopefully by now Nathan has read my first answer to his posting, which
> *did* contain the solution to his problem...
Me too!
Steve
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/