msp4th: make luFunc() easier to read
authorDan White <dan@whiteaudio.com>
Mon, 13 May 2013 16:58:43 +0000 (11:58 -0500)
committerDan White <dan@whiteaudio.com>
Mon, 13 May 2013 16:58:43 +0000 (11:58 -0500)
msp4th/msp4th.c

index ea2877fa90a9e311ebac068c726b484a4b303df9..688e811b501e3eac41f861f9f221e6871c54e1b3 100644 (file)
@@ -716,25 +716,25 @@ int16_t lookupToken(uint8_t *word, uint8_t *list)
 
 void luFunc(void)
 {
-    int16_t i;
+    int16_t opcode;
 
-    i = lookupToken(wordBuffer, (uint8_t *)cmdListBi);
+    opcode = lookupToken(wordBuffer, (uint8_t *)cmdListBi);
 
-    if (i) {
-        i += 20000;
-        pushMathStack(i);
+    if (opcode) {
+        opcode += 20000;
+        pushMathStack(opcode);
         pushMathStack(1);
     } else {
         // need to test internal interp commands
-        i = lookupToken(wordBuffer, (uint8_t *)cmdListBi2);
-        if (i) {
-            i += 10000;
-            pushMathStack(i);
+        opcode = lookupToken(wordBuffer, (uint8_t *)cmdListBi2);
+        if (opcode) {
+            opcode += 10000;
+            pushMathStack(opcode);
             pushMathStack(1);
         } else {
-            i = lookupToken(wordBuffer, cmdList);
-            if (i) {
-                pushMathStack(i);
+            opcode = lookupToken(wordBuffer, cmdList);
+            if (opcode) {
+                pushMathStack(opcode);
                 pushMathStack(1);
             } else {
                 pushMathStack(0);