scc

simple C compiler
git clone git://git.2f30.org/scc
Log | Files | Refs | README | LICENSE

commit 8067b9f717456ef392c6d2d1b1c079e5b0bdf090
parent a0cd5bb006c62c6b6d97e1db7a061ab329edc3a2
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Tue, 18 Mar 2014 16:06:19 +0100

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.

Diffstat:
Mdecl.c | 12++++++++----
1 file changed, 8 insertions(+), 4 deletions(-)

diff --git a/decl.c b/decl.c @@ -307,7 +307,8 @@ duplicated_name: 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 @@ bad_storage: goto error; dcl_expected: err = "declaration expected"; -error: error(err, yytext); +error: + error(err, yytext); } static struct ctype * @@ -437,7 +439,8 @@ redefined: goto error; iden_expected: err = "identifier expected"; -error: error(err, yytext); +error: + error(err, yytext); } struct node * @@ -517,5 +520,6 @@ bad_storage: goto error; dcl_expected: err = "declaration expected"; -error: error(err); +error: + error(err); }