]> git.sur5r.net Git - cc65/commitdiff
again, some TABs slipped into the code...
authorChristian Groessler <chris@groessler.org>
Tue, 30 Apr 2019 16:21:13 +0000 (18:21 +0200)
committerChristian Groessler <chris@groessler.org>
Tue, 30 Apr 2019 16:21:13 +0000 (18:21 +0200)
test/val/computedgoto.c
test/val/jmp-callax.c

index f8ab7c05f79e785e518ed957ee28396ab95fcb1a..9f94049418c5dbd0e84d586bedf91ee5d0d816db 100644 (file)
@@ -2,54 +2,54 @@ static unsigned char val, val2;
 
 static void act(const unsigned char op) {
 
 
 static void act(const unsigned char op) {
 
-       static const void * const arr[] = {
-               &&op0,
-               &&op1,
-               &&op2,
-               &&op3,
-               &&op4,
-               &&op5,
-               &&op6,
-       };
-
-       goto *arr[op];
-
-       op0:
-       val += 1;
-       return;
-
-       op1:
-       val += 2;
-       return;
-
-       op2:
-       val += 3;
-       return;
-
-       op3:
-       val2 += 1;
-       return;
-
-       op4:
-       val2 += 5;
-       return;
-
-       op5:
-       val2 += 7;
-       return;
-
-       op6:
-       val2 += 9;
-       return;
+        static const void * const arr[] = {
+                &&op0,
+                &&op1,
+                &&op2,
+                &&op3,
+                &&op4,
+                &&op5,
+                &&op6,
+        };
+
+        goto *arr[op];
+
+        op0:
+        val += 1;
+        return;
+
+        op1:
+        val += 2;
+        return;
+
+        op2:
+        val += 3;
+        return;
+
+        op3:
+        val2 += 1;
+        return;
+
+        op4:
+        val2 += 5;
+        return;
+
+        op5:
+        val2 += 7;
+        return;
+
+        op6:
+        val2 += 9;
+        return;
 }
 
 int main(void) {
 
 }
 
 int main(void) {
 
-       val = val2 = 0;
+        val = val2 = 0;
 
 
-       act(1);
-       act(3);
-       act(5);
+        act(1);
+        act(3);
+        act(5);
 
 
-       return val == 2 && val2 == 8 ? 0 : 1;
+        return val == 2 && val2 == 8 ? 0 : 1;
 }
 }
index 35d3db6b640fa68e4d58b2d83ce713916ad9b2ac..eb0cb271a58bc1ef019d59647af28d28f51f2f36 100644 (file)
@@ -1,21 +1,21 @@
 static unsigned char val;
 
 static void foo(void) {
 static unsigned char val;
 
 static void foo(void) {
-       val = 5;
+        val = 5;
 }
 
 static void wrap(void) {
 
 }
 
 static void wrap(void) {
 
-       asm("lda #<%v", foo);
-       asm("ldx #>%v", foo);
-       asm("jmp callax");
+        asm("lda #<%v", foo);
+        asm("ldx #>%v", foo);
+        asm("jmp callax");
 
 }
 
 int main(void) {
 
 
 }
 
 int main(void) {
 
-       val = 0;
-       wrap();
+        val = 0;
+        wrap();
 
 
-       return val == 5 ? 0 : 1;
+        return val == 5 ? 0 : 1;
 }
 }