declare variables before code, remain C89-compatible

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4647 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Daniel Stenberg 2004-05-19 10:45:55 +00:00
parent e4e3337671
commit 0e1faea5ac

View file

@ -899,13 +899,14 @@ void result2typingbuf(void)
double tempresult = ABS(result); /* positive num makes things simple */ double tempresult = ABS(result); /* positive num makes things simple */
int temppower; int temppower;
double tempmodifier = 1;
int count;
if(SCIENTIFIC_FORMAT) if(SCIENTIFIC_FORMAT)
temppower = 1; /* output x.xxxx format */ temppower = 1; /* output x.xxxx format */
else else
temppower = power; temppower = power;
double tempmodifier = 1;
int count;
cleartypingbuf(); cleartypingbuf();
if(tempresult < MINIMUM){ /* if 0,faster display and avoid complication*/ if(tempresult < MINIMUM){ /* if 0,faster display and avoid complication*/
@ -974,8 +975,8 @@ void result2typingbuf(void)
/* ----------------------------------------------------------------------- /* -----------------------------------------------------------------------
printResult() generates LCD display. printResult() generates LCD display.
----------------------------------------------------------------------- */ ----------------------------------------------------------------------- */
void printResult(void){ void printResult(void)
{
int k; int k;
switch_Status: switch_Status: