Netatalk #if problems


Subject: Netatalk #if problems
From: Dejan Ilic (svedja@morgaine.rydnet.lysator.liu.se)
Date: Sat Jun 21 1997 - 08:23:25 EDT


Little off-topic but important.

I just got confirmed from our local C-"experts" that ANSI-C expands any
undefined references to the value "0" while K&R leaves a empty string.

So this affects the solaris-code just like I said.
Because neither BYTE_ORDER, BIG_ENDIAN and LITTLE_ENDIAN are defined in
ddp.h both "BYTE_ORDER == BIG_ENDIAN" and "BYTE_ORDER == LITTLE_ENDIAN"
cases are valid (as 0 == 0). And there you have a bug.

=====================================================================
Dejan Ilic, Tech Univ. of Linkoping, Sweden Phone: +46-13-473 01 06
Email: svedja@lysator.liu.se Web: http://www.lysator.liu.se/~svedja

"I may look like The Devil but i'm an angel deep down in my heart"
=====================================================================
[finger -l svedja@lysator.liu.se for public PGP key]



This archive was generated by hypermail 2b28 : Sat Dec 18 1999 - 16:25:07 EST