Re: R 0.65 and AIX: if it quacks like a duck...

About this list Date view Thread view Subject view Author view Other groups

Subject: Re: R 0.65 and AIX: if it quacks like a duck...
From: Thomas Vogels (tov@infiniti.ece.cmu.edu)
Date: Wed 21 Jul 1999 - 05:32:48 EST


Message-Id: <199907201932.PAA13390@infiniti.ece.cmu.edu>

"Brian" == Prof Brian D Ripley <ripley@stats.ox.ac.uk> writes:

>> 3) Edit src/unix/system.c: need a "break;" after default: in line 752
>> (yes, won't compile without)

Brian> There is no longer a line 752, but this was added (by Kurt) in the current
Brian> sources (line 317). When I saw this I checked my books and all my lint-like
Brian> tools: the code I wrote does seem valid C according to all my checks.

Brian> Would just ";" satisfy your compiler?

Yes, I guess you can't have no statement after a case label, so either
"break;" or ";" is fine. (K&R suggest always having a break after (at
least) the last label as a defensive porgramming strategy.)

--> Compile with gcc:
>>
>> 1) 2) 3) 4) like above

Brian> Will gcc really not accept 3) on your platform? It does on all of mine,
Brian> in all the versions of gcc I tried. It would be a surprise for gcc's
Brian> parser to be platform-specific.

Sorry, probably should have said: 3) doesn't hurt gcc.

 -tom

--
mailto:tov@ece.cmu.edu (Tom Vogels)   Tel: (412) 268-6638   FAX: -3204

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-devel-request@stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._


About this list Date view Thread view Subject view Author view Other groups

This archive was generated by hypermail 2b25 : Tue 04 Jan 2000 - 14:16:06 EST