Altos C compiler funnies

David F. Hinnant dfh at scirtp.UUCP
Wed Dec 11 00:50:26 AEST 1985


We have an Altos 586 running Xenix 3.0.  To us, the C compiler has some
rather unusual restrictions.  Specificly, the following declarations are
NOT allowed:
	
	long i; 		MUST be declared as "long int"
	short int i;		MUST be declared as "short"
	unsigned long i;	doesn't work at all
	unsigned long int i;	ditto


However both "unsigned i;" and "unsigned int i;" work OK.  The compiler
error message from "short i;" is "Type clash" while the error message from
"long i;", "unsigned long i", etc. is "misplaced long".

Is this normal for Xenix C compilers, or is just the Altos funny?


-- 
				David Hinnant
				SCI Systems, Inc.
				...{decvax, akgua}!mcnc!rti-sel!scirtp!dfh



More information about the Comp.lang.c mailing list