From Thomas Vogels <tov@ece.cmu.edu>  Mon Jun 14 21:15:05 1999
From: Thomas Vogels <tov@ece.cmu.edu> (Thomas Vogels)
Date: Mon, 14 Jun 1999 16:15:05 -0400
Subject: definition of R_problem_buf in S.h (PR#210)
In-Reply-To: Your message of "Mon, 14 Jun 1999 14:18:58 EDT."
 <199906141820.UAA13830@stat.math.ethz.ch>
Message-ID: <199906142015.QAA03834@infiniti.ece.cmu.edu>


Hi all, 

  after I started it, allow me two comments:

1) as was pointed out, the problem of including S.h in different
places doesn't show up until you try to compile shared libraries (lqs,
modre) since the conditional include (#ifndef R_*) doesn't catch it in
this case.  IMHO, "static char R_problem_buf[R_PROBLEM_BUFSIZE];" is
no solution.  I gather from other comments that you want to be thread
safe.  This willl make any declaration of a variable as "static" (not
just R_problem_buf) dangerous.

2) "Philosophically" speaking, a good place for this buffer is the
same place where you'd put the results.  From my little viewpoint,
that would be the evaluation context?

Signing off,
  -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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._


definition of R_problem_buf in S.h (PR#210)
Thomas Vogels