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

Thomas Vogels Thomas Vogels <tov@ece.cmu.edu>
Tue, 20 Jul 1999 15:32:48 -0400



"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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._