ref: 56ce21cc0b1dc9318da54e25b5cb2956066fc0ce
parent: fc63cf1c9ce7e8875016acd91378da8014298e87
author: Ori Bernstein <[email protected]>
date: Mon Feb 24 14:59:10 EST 2014
Rename ntraits for consistency. It's counting traittab; name it ntraittab.
--- a/parse/gram.y
+++ b/parse/gram.y
@@ -864,7 +864,7 @@
{
size_t i;
- for (i = 0; i < ntraits; i++) {
+ for (i = 0; i < ntraittab; i++) {
if (!strcmp(namestr(traittab[i]->name), str)) {
settrait(t, traittab[i]);
return;
--- a/parse/parse.h
+++ b/parse/parse.h
@@ -310,7 +310,7 @@
extern Type **types;
extern size_t ntypes;
extern Trait **traittab; /* int -> trait map */
-extern size_t ntraits;
+extern size_t ntraittab;
extern Node **decls; /* decl id -> decl map */
extern size_t ndecls;
extern size_t maxnid; /* the maximum node id generated so far */