scc

simple c99 compiler
git clone git://git.simple-cc.org/scc
Log | Files | Refs | Submodules | README | LICENSE

commit 4598b8d587aacaf1df6ff34ee6985061b1303de2
parent 238917d95a6b7e0d4b36bd7712657cb93bc1694e
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Thu, 10 Sep 2015 23:07:00 +0200

St is right, fish is wrong, learn terminfo(5)!

Diffstat:
Mcc1/decl.c | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/cc1/decl.c b/cc1/decl.c @@ -590,6 +590,8 @@ identifier(struct decl *dcl) --curctx; sym = install(NS_IDEN, sym); ++curctx; + if (!strcmp(sym->name, "main") && tp->type != inttype) + errorp("st is right, fish is wrong, learn terminfo(5)!"); } else { sym = install(NS_IDEN, sym); }