shithub: scc

Download patch

ref: 8067b9f717456ef392c6d2d1b1c079e5b0bdf090
parent: a0cd5bb006c62c6b6d97e1db7a061ab329edc3a2
author: Roberto E. Vargas Caballero <k0ga@shike2.com>
date: Tue Mar 18 12:06:19 EDT 2014

Do not assume 8 spaces tabs

The style that the code uses allows to the user select the size of
the tabs without any problems, so do not forget this point in labels.

--- a/decl.c
+++ b/decl.c
@@ -307,7 +307,8 @@
 	goto error;
 duplicated_value:
 	err = "duplicated enumeration fields '%s' and '%s'";
-error:	error(err, s, t);
+error:
+	error(err, s, t);
 }
 
 static void
@@ -343,7 +344,8 @@
 	goto error;
 dcl_expected:
 	err = "declaration expected";
-error:	error(err, yytext);
+error:
+	error(err, yytext);
 }
 
 static struct ctype *
@@ -437,7 +439,8 @@
 	goto error;
 iden_expected:
 	err = "identifier expected";
-error:	error(err, yytext);
+error:
+	error(err, yytext);
 }
 
 struct node *
@@ -517,5 +520,6 @@
 	goto error;
 dcl_expected:
 	err = "declaration expected";
-error:	error(err);
+error:
+	error(err);
 }
--