ref: 47a20ad74eb6ab5214698adb05b060cf29e96c00
parent: d5b51ff627be535ef485d228428c2a9b9f5824cc
author: Roberto E. Vargas Caballero <[email protected]>
date: Sat Oct 5 15:02:30 EDT 2013
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.
--- a/tree.c
+++ b/tree.c
@@ -18,7 +18,7 @@
struct node *rigth;
};
-struct node_sym {
+struct nodesym {
struct node base;
struct symbol *sym;
};
@@ -36,7 +36,7 @@
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 @@
}
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;