Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site eagle.UUCP Path: utzoo!watmath!clyde!burl!ulysses!eagle!mjs From: mjs@eagle.UUCP (M.J.Shannon) Newsgroups: net.micro.att Subject: Re: Mult assgnmt in C stmnts on 7300 Message-ID: <1283@eagle.UUCP> Date: Tue, 16-Jul-85 08:26:29 EDT Article-I.D.: eagle.1283 Posted: Tue Jul 16 08:26:29 1985 Date-Received: Thu, 18-Jul-85 03:09:05 EDT References: <3351@dartvax.UUCP> Distribution: net Organization: AT&T Bell Laboratories, Summit, NJ Lines: 40 > I am yet again having simple minded problems with my 7300 that are surprising > to me. My AT&T UNIX PC is a marvelous machine, however the compiler chokes, > coughs, and spits horribly on any statement that contains multiple assignment. > Below are some seleceted examples of programs from the net and othe sources > that must have worked somewhere: > > stat->exp = stat->lvl = stat->sin = 0; > stat->blind = stat->vrg = stat->pal = FALSE; > throne = beyond = marsh = FALSE; > > and some very trivially more elaborate combinations: > > else p_x = t_x = 0.0; > Min[grindex] = Max[grindex] = datum; > > QUESTION: Are multiple assignments in a single statement allowed under the > Helsinki accord or is my C compiler (an AT&T I assume) just brain damaged? > > Chris Chute MD Since I have a 7300 which has successfully compiled much of the software posted to the net, my guess is that you have an early PC7300 with a pre-release compiler. What message does the compiler give for theses statements? As to compiler brain damage, the compiler is *derived* from a pre-SystemV compiler, and has apparently been modified significantly by Convergent Technologies, who manufactured and packaged the box. For instance, neither the preprocessor nor the compiler proper allow FLEXNAMES (identifiers are limited to 8 significant characters). Side note: When illustrating errors, many of us who would try to help can be more useful if the complainant provides full information, such as any error messages produced, version of the program complaining (use /usr/bin/what on /lib/ccom for compiler related things), etc. In a word (or two), help us to help you. -- Marty Shannon UUCP: ihnp4!eagle!mjs Phone: +1 201 522 6063