[comp.sys.amiga] C differences

cmcmanis%pepper@Sun.COM (Chuck McManis) (12/01/88)

The information "This was written using the {Manx|Aztec|Lattice} compiler"
is vital for both bug reports and for porting purposes. Because C is a
rather unique language that lets you do all sorts of "bad" things and
still work. There are two things that are the most likely things to get
you, they are :
	#1 : sizeof(void *) != sizeof(int)
	#2 : type_t func() { /* no return */} does not return type_t 

Number one bites most Aztec users, number two is less of a problem but
still can cause hard to track bugs. Normally, C compilers will complain
at you when they detect some of these common errors, sometimes programmers
will use a cast rather than a real declaration to fix the problem. This
causes problems.


--Chuck McManis
uucp: {anywhere}!sun!cmcmanis   BIX: cmcmanis  ARPAnet: cmcmanis@sun.com
These opinions are my own and no one elses, but you knew that didn't you.