shithub: scc

Download patch

ref: 32ec291ea9f9d16743fee4a53a0c100785643483
parent: 1fa83f138d13af191704b2bf3504091c6c92a57a
author: Roberto E. Vargas Caballero <[email protected]>
date: Wed May 6 15:57:31 EDT 2015

Add missing static in code.c

After last changes some functions were static, and although they had
a prototype with the static type, the style is to put always the static.

--- a/cc1/code.c
+++ b/cc1/code.c
@@ -190,7 +190,7 @@
 	}
 }
 
-void
+static void
 emitsym(uint8_t op, void *arg)
 {
 	Node *np = arg;
@@ -215,7 +215,7 @@
 	putchar('\n');
 }
 
-void
+static void
 emitcast(uint8_t op, void *arg)
 {
 	Node *np = arg, *lp = np->left;
@@ -224,7 +224,7 @@
 	printf("\t%c%c", lp->type->letter, np->type->letter);
 }
 
-void
+static void
 emitbin(uint8_t op, void *arg)
 {
 	Node *np = arg;
@@ -234,7 +234,7 @@
 	printf("\t%s%c", optxt[op], np->type->letter);
 }
 
-void
+static void
 emitternary(uint8_t op, void *arg)
 {
 	Node *cond, *ifyes, *ifno, *np = arg;
@@ -248,7 +248,7 @@
 	printf("\t?%c", np->type->letter);
 }
 
-void
+static void
 emitsizeof(uint8_t op, void *arg)
 {
 	Node *np = arg;