scc

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

commit 47a20ad74eb6ab5214698adb05b060cf29e96c00
parent d5b51ff627be535ef485d228428c2a9b9f5824cc
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Sat,  5 Oct 2013 19:02:30 +0200

Rename node_sym to nodesym

We are using now this style, so it is better keep it stable across
all the files of the project.

Diffstat:
Mtree.c | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/tree.c b/tree.c @@ -18,7 +18,7 @@ struct node_op2 { struct node *rigth; }; -struct node_sym { +struct nodesym { struct node base; struct symbol *sym; }; @@ -36,7 +36,7 @@ static unsigned char indent; /* used for pretty printing the tree*/ struct node * nodesym(struct symbol *sym) { - register struct node_sym *np = xmalloc(sizeof(*np)); + register struct nodesym *np = xmalloc(sizeof(*np)); np->base.op = OSYM; np->sym = sym; @@ -174,7 +174,7 @@ prtree_helper(register struct node *np) } switch (bp->nchild) { case 0: { - register struct symbol *sym = ((struct node_sym *) np)->sym; + register struct symbol *sym = ((struct nodesym *) np)->sym; putchar(' '); fputs((sym->name) ? sym->name : ".", stdout); return;