tgetent core dump on sco xenix

Mark Zenier markz at ssc.UUCP
Tue Jul 5 05:36:11 AEST 1988


In article <3222 at bigtex.uucp>, james at bigtex.uucp (James Van Artsdalen) writes:
: IN article <701 at nod2sco>, rosso at sco.COM (Ross Oliver) wrote:
: > Here are a few tips to avoid problems like this in large-model
: > 286 programs:
: 
: >     - Declare your functions' return values.
: >     - Don't use "0" to mean NULL ( i.e. (char *)0 ).
: 
: This last statement is incorrect, or rather, evidence of a broken
: compiler.
> 
: C requires that the integer constant 0 be assignable to *any* pointer
: type.  C also requires that any pointer type may be compared with the
: integer constant 0.  If the Xenix compiler requires that the integer
: constant 0 be cast to a pointer type first, it is broken.

Until  ANSI C exists, there is no way the compiler can tell type of the 
expression for a function arguement that is pushed on the stack.
It would have been safer but much slower if Microsoft has chosen the
default integer size at 32 bits for large model compiles.

Mark Zenier	uunet!pilchuck!ssc!markz		
"Kinda scary. One guy said he had heard they were a bunch of wierdo gourmets
from somewhere in Orange County, looking for new taste thrills." 



More information about the Comp.unix.xenix mailing list