Subject: Re: R 0.65 and AIX: if it quacks like a duck...
From: Thomas Vogels (email@example.com)
Date: Wed 21 Jul 1999 - 05:32:48 EST
"Brian" == Prof Brian D Ripley <firstname.lastname@example.org> 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.
-- mailto:email@example.com (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: firstname.lastname@example.org _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
This archive was generated by hypermail 2b25 : Tue 04 Jan 2000 - 14:16:06 EST