From 27af79684f983476bfac2073847bc75de13be6f4 Mon Sep 17 00:00:00 2001 From: ehofman Date: Fri, 28 Jan 2005 15:21:29 +0000 Subject: [PATCH] Frederic Bouvier: code.c is C code ( according to the file extension ), so variables should be declared at the beginning of the function. --- simgear/nasal/code.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/simgear/nasal/code.c b/simgear/nasal/code.c index 374b8f32..388c4eae 100644 --- a/simgear/nasal/code.c +++ b/simgear/nasal/code.c @@ -150,6 +150,7 @@ void naGarbageCollect() void setupFuncall(struct Context* ctx, naRef func, naRef args) { + struct Frame* f; if(!IS_FUNC(func) || !(IS_CCODE(func.ref.ptr.func->code) || IS_CODE(func.ref.ptr.func->code))) @@ -157,7 +158,6 @@ void setupFuncall(struct Context* ctx, naRef func, naRef args) ERR(ctx, "function/method call invoked on uncallable object"); } - struct Frame* f; f = &(ctx->fStack[ctx->fTop++]); f->func = func; f->ip = 0; -- 2.39.5