alloca: one step towards thread-safety
authorPaul Eggert <eggert@cs.ucla.edu>
Wed, 29 Dec 2010 04:41:30 +0000 (20:41 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Wed, 29 Dec 2010 04:41:56 +0000 (20:41 -0800)
commit6f5772995bee8b337fdd2fea5aea6f3fcb59fa36
treeffd57f745efa6bbcf97eb3592a3035990fc29cd7
parent97de142d1cd312e3d4fcce4268e3adcce72caa7d
alloca: one step towards thread-safety

* lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
need for a static variable.  All callers changed.  This does not
make the alloca replacement thread-safe, but it's one step.
ChangeLog
lib/alloca.c