Some versions of GCC do not like the static declaration inside the function

This commit is contained in:
jjgarcia 2005-05-19 16:14:29 +00:00
parent 8663bdb8c9
commit 82dbe6b94d

View file

@ -170,12 +170,11 @@ static int alloc_initialized = FALSE;
extern void (*GC_push_other_roots)();
static void (*old_GC_push_other_roots)();
static void stacks_scanner();
void
init_alloc(void)
{
static void stacks_scanner();
if (alloc_initialized) return;
alloc_initialized = TRUE;
@ -267,7 +266,7 @@ ecl_mark_env(struct cl_env_struct *env)
}
static void
stacks_scanner(void)
stacks_scanner()
{
#ifdef ECL_THREADS
cl_object l = cl_core.processes;