shithub: scc

Download patch

ref: 75f20c4db1212d43aadc16c32fc9b507b47f9524
parent: bbf9abf470ddb8c0baa2424f63f67ce785af47aa
author: Roberto E. Vargas Caballero <[email protected]>
date: Thu Jul 23 17:05:40 EDT 2015

Style patch

--- a/cc1/expr.c
+++ b/cc1/expr.c
@@ -125,13 +125,18 @@
 	if (eqtype(np->type, tp))
 		return np;
 	switch (BTYPE(np)) {
-	case ENUM: case INT: case FLOAT:
+	case ENUM:
+	case INT:
+	case FLOAT:
 		switch (tp->op) {
 		case PTR:
 			if (!iscast || BTYPE(np) == FLOAT)
 				return NULL;
 			/* PASSTHROUGH */
-		case INT: case FLOAT: case ENUM: case VOID:
+		case INT:
+		case FLOAT:
+		case ENUM:
+		case VOID:
 			break;
 		default:
 			return NULL;
@@ -139,7 +144,9 @@
 		break;
 	case PTR:
 		switch (tp->op) {
-		case ENUM: case INT: case VOID: /* TODO: allow p = 0 */
+		case ENUM:  /* TODO: allow p = 0 */
+		case INT:
+		case VOID:
 			if (!iscast)
 				return NULL;;
 			break;