shithub: scc

Download patch

ref: ed55c242d161a9682c6d2f82a3cc0efc97b8ac5d
parent: d3bf24974993f688e9666de0914519fdba97512a
author: Roberto E. Vargas Caballero <k0ga@shike2.com>
date: Sat Sep 24 11:33:47 EDT 2016

[cc2] Fix whitespaces errors

--- a/cc2/arch/qbe/cgen.c
+++ b/cc2/arch/qbe/cgen.c
@@ -572,16 +572,16 @@
 		label2node(&ifyes, np->u.sym);
 		code(ASJMP, NULL, &ifyes, NULL);
 		break;
-        case OBRANCH:
-                next = np->next;
-                if (!next->label)
-                        next->label = newlabel();
+	case OBRANCH:
+		next = np->next;
+		if (!next->label)
+			next->label = newlabel();
 
-                label2node(&ifyes, np->u.sym);
-                label2node(&ifno, next->label);
+		label2node(&ifyes, np->u.sym);
+		label2node(&ifno, next->label);
 		rhs(np->left, &ret);
 		code(ASBRANCH, &ret, &ifyes, &ifno);
-                break;
+		break;
 	case ORET:
 		p = (np->left) ? rhs(np->left, &ret) : NULL;
 		code(ASRET, NULL, p, NULL);
--- a/cc2/cc2.h
+++ b/cc2/cc2.h
@@ -188,11 +188,11 @@
 };
 
 struct inst {
-        unsigned char op;
+	unsigned char op;
 	unsigned char flags;
 	Symbol *label;
-        Inst *next, *prev;
-        Addr from1, from2, to;
+	Inst *next, *prev;
+	Addr from1, from2, to;
 };
 
 /* main.c */