-----Original Message-----
From: Ben Combee [mailto:[EMAIL PROTECTED]]
Sent: Monday, 7 January 2002 5:07 PM
To: Palm Developer Forum
Subject: Re: Palm and ARM
> > See NetHToNL, NetHToNS -- they're already part of the Palm OS API,
since
> > version 2.0.
>
> The question is how far we can rely on NetLib.
> If you look at the implementation, they actually are macros. On current
> devices, they do nothing. I'd assume that when Palm releases a
> ARM-based SDK, they would implement these macros to do the right thing
> when compiled for the ARM processors.
You are right: for CPU_x86 they do byte swap, while for CPU_68k they just do
nothing.
Hence this is really about naming and documentation: should be associate the
functions with NetLib, as their names and PalmOS reference guide suggests.
I would prefer having a more opaque name and relocate the description it
Reference Guide, otherwise some developers might still use
SysLibFind("NetLib", ...) and NetLibOpen to work only with byte conversion
which is undesirable.
Michael
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/