* dcrt0.cc (alloc_stack_hard_way): Eliminate second argument.
(alloc_stack): Remove use of 'b' throughout.
This commit is contained in:
parent
e431827c7c
commit
b91faaabea
@ -1,3 +1,8 @@
|
||||
2004-02-11 Christopher Faylor <cgf@redhat.com>
|
||||
|
||||
* dcrt0.cc (alloc_stack_hard_way): Eliminate second argument.
|
||||
(alloc_stack): Remove use of 'b' throughout.
|
||||
|
||||
2004-02-11 Christopher Faylor <cgf@redhat.com>
|
||||
|
||||
Rename _threadinfo to _cygtls, throughout.
|
||||
|
@ -461,7 +461,7 @@ static MEMORY_BASIC_INFORMATION NO_COPY sm;
|
||||
|
||||
// __inline__ void
|
||||
extern void
|
||||
alloc_stack_hard_way (child_info_fork *ci, volatile char *b)
|
||||
alloc_stack_hard_way (child_info_fork *ci)
|
||||
{
|
||||
void *new_stack_pointer;
|
||||
MEMORY_BASIC_INFORMATION m;
|
||||
@ -505,7 +505,6 @@ alloc_stack_hard_way (child_info_fork *ci, volatile char *b)
|
||||
if (!VirtualQuery ((LPCVOID) m.BaseAddress, &m, sizeof m))
|
||||
api_fatal ("fork: couldn't get new stack info, %E");
|
||||
ci->stacktop = m.BaseAddress;
|
||||
*b = 0;
|
||||
}
|
||||
|
||||
/* extend the stack prior to fork longjmp */
|
||||
@ -522,7 +521,7 @@ alloc_stack (child_info_fork *ci)
|
||||
return;
|
||||
}
|
||||
|
||||
alloc_stack_hard_way (ci, b + sizeof (b) - 1);
|
||||
alloc_stack_hard_way (ci);
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user