diff options
author | Daniel Stenberg <daniel@haxx.se> | 2004-05-19 10:45:55 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2004-05-19 10:45:55 +0000 |
commit | 0e1faea5ac55d9ff5e54da40b29d8e91e528b2e9 (patch) | |
tree | 4544b38a5da8d3c1de15085ac7774cd4a196b570 | |
parent | e4e33376710e0f865a653fa28450b6e196fa2186 (diff) | |
download | rockbox-0e1faea5ac55d9ff5e54da40b29d8e91e528b2e9.tar.gz rockbox-0e1faea5ac55d9ff5e54da40b29d8e91e528b2e9.zip |
declare variables before code, remain C89-compatible
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4647 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r-- | apps/plugins/calculator.c | 9 |
1 files 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) | |||
899 | double tempresult = ABS(result); /* positive num makes things simple */ | 899 | double tempresult = ABS(result); /* positive num makes things simple */ |
900 | 900 | ||
901 | int temppower; | 901 | int temppower; |
902 | double tempmodifier = 1; | ||
903 | int count; | ||
904 | |||
902 | if(SCIENTIFIC_FORMAT) | 905 | if(SCIENTIFIC_FORMAT) |
903 | temppower = 1; /* output x.xxxx format */ | 906 | temppower = 1; /* output x.xxxx format */ |
904 | else | 907 | else |
905 | temppower = power; | 908 | temppower = power; |
906 | 909 | ||
907 | double tempmodifier = 1; | ||
908 | int count; | ||
909 | cleartypingbuf(); | 910 | cleartypingbuf(); |
910 | 911 | ||
911 | if(tempresult < MINIMUM){ /* if 0,faster display and avoid complication*/ | 912 | if(tempresult < MINIMUM){ /* if 0,faster display and avoid complication*/ |
@@ -974,8 +975,8 @@ void result2typingbuf(void) | |||
974 | /* ----------------------------------------------------------------------- | 975 | /* ----------------------------------------------------------------------- |
975 | printResult() generates LCD display. | 976 | printResult() generates LCD display. |
976 | ----------------------------------------------------------------------- */ | 977 | ----------------------------------------------------------------------- */ |
977 | void printResult(void){ | 978 | void printResult(void) |
978 | 979 | { | |
979 | int k; | 980 | int k; |
980 | 981 | ||
981 | switch_Status: | 982 | switch_Status: |