[fpc-pascal] Endiannes & programmer's manual - missing compiler define?
Reinier Olislagers
reinierolislagers at gmail.com
Tue Jun 5 08:02:28 CEST 2012
Had a look at the Programmer's Manual (April 2011, doc version 2.4)
appendix G (compiler defines)
Saw
ENDIAN_LITTLE
ENDIAN_BIG
Did not see
FPC_LITTLE_ENDIAN
FPC_BIG_ENDIAN
Should that be added?
Also, I'm sure there must be functions to convert endianness - at least
network byte order (big endian) to host order.
I found e.g. Synapse synsock:
function ntohs(netshort: word): word;
function ntohl(netlong: longword): longword;
function htons(hostshort: word): word;
function htonl(hostlong: longword): longword;
Are there an equivalent RTL/FCL functions?
Thanks,
Reinier
More information about the fpc-pascal
mailing list