From 0e1faea5ac55d9ff5e54da40b29d8e91e528b2e9 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Wed, 19 May 2004 10:45:55 +0000 Subject: [PATCH] declare variables before code, remain C89-compatible git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4647 a1c6a512-1295-4272-9138-f99709370657 --- apps/plugins/calculator.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/apps/plugins/calculator.c b/apps/plugins/calculator.c index b1df913e27..257a279839 100644 --- a/apps/plugins/calculator.c +++ b/apps/plugins/calculator.c @@ -899,13 +899,14 @@ void result2typingbuf(void) double tempresult = ABS(result); /* positive num makes things simple */ int temppower; + double tempmodifier = 1; + int count; + if(SCIENTIFIC_FORMAT) temppower = 1; /* output x.xxxx format */ else temppower = power; - double tempmodifier = 1; - int count; cleartypingbuf(); if(tempresult < MINIMUM){ /* if 0,faster display and avoid complication*/ @@ -974,8 +975,8 @@ void result2typingbuf(void) /* ----------------------------------------------------------------------- printResult() generates LCD display. ----------------------------------------------------------------------- */ -void printResult(void){ - +void printResult(void) +{ int k; switch_Status: