shithub: scc

Download patch

ref: 9c8462aa2508d754ae0d9e1dcddcd7883ec0b129
parent: 1145b68f8535abf344d36cf9cd4d4f1283f42aa6
author: Roberto E. Vargas Caballero <[email protected]>
date: Thu Feb 9 16:31:13 EST 2012

Removing trailing white spaces

--- a/decl.c
+++ b/decl.c
@@ -94,7 +94,7 @@
 {
 	static char sign, sclass, tqlf, nt;
 	struct type *t = NULL;
-	
+
 	tqlf = sign = sclass = 0;
 	for (;;) {
 		switch (gettok()) {
@@ -133,7 +133,7 @@
 		}
 	check_type:
 		if (nt == F_LONG) {
-			if (t == NULL || 
+			if (t == NULL ||
 			    t == T_INT || t == T_UINT || t == T_LONG) {
 				/* nothing */;
 			} else if (t == T_LONG || t == T_ULONG) {
@@ -152,7 +152,7 @@
 		} if (nt == F_VOID && sign != 0) {
 			goto incorrect_sign;
 		} if (nt == F_CHAR && sign == 0) {
-			t = T_UCHAR;        /* char by default is unsigned */
+			t = T_UCHAR;	    /* char by default is unsigned */
 		} else if (!(t = types[nt][sign == UNSIGNED])) {
 			goto incorrect_sign;
 		}
--- a/types.c
+++ b/types.c
@@ -74,13 +74,13 @@
 
 				sign = (t->sign) ? "signed" : "unsigned";
 				switch (t->btype) {
-				case INT:     type = "int";         break;
-				case CHAR:    type = "char";        break;
+				case INT:     type = "int";	    break;
+				case CHAR:    type = "char";	    break;
 				case FLOAT:   type = "float";       break;
-				case LONG:    type = "long";        break;
+				case LONG:    type = "long";	    break;
 				case LLONG:   type = "long long";   break;
 				case SHORT:   type = "short";       break;
-				case VOID:    type = "void";        break;
+				case VOID:    type = "void";	    break;
 				case DOUBLE:  type = "double";      break;
 				case LDOUBLE: type = "long double"; break;
 				default: