Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Posting-Version: version B 2.10.2 9/5/84; site scirtp.UUCP
From: dfh@scirtp.UUCP (David F. Hinnant)
Subject: Altos C compiler funnies
Date: Tue, 10-Dec-85 09:50:26 EST
Posted: Tue Dec 10 09:50:26 1985
Date-Received: Thu, 12-Dec-85 05:21:38 EST
Organization: SCI Systems, Research Triangle Park, NC
We have an Altos 586 running Xenix 3.0. To us, the C compiler has some
rather unusual restrictions. Specificly, the following declarations are
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?
SCI Systems, Inc.