Skip to content
Prev 2237 / 63424 Next

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

Guido Masarotto <guido@hal.stat.unipd.it> writes:
Yes. I think Kurt is missing the point that S.h is a *compatibility*
item, so we're stuck with whatever ugliness that is present in S. It
is still allowed to do it neater.
I don't think so... 

Let's see: This would create R_problem_buf on the stack when PROBLEM
is encountered or when the function is called? (Forgetting my C
semantics...). In either case, we certainly avoid the reentrancy
problem. In the latter (unlikely) case, we waste 4k per potential
PROBLEM, which is hardly a problem unless the function is heavily
recursive. Sounds good.