Lines Matching +full:2 +full:nd
82 for (i = 0; i < (len + 1) / 2; i++) { in MakeAtom()
102 NodePtr nd; in MakeAtom() local
104 nd = malloc(sizeof(NodeRec)); in MakeAtom()
105 if (!nd) in MakeAtom()
108 nd->string = string; in MakeAtom()
111 nd->string = strndup(string, len); in MakeAtom()
112 if (!nd->string) { in MakeAtom()
113 free(nd); in MakeAtom()
120 table = reallocarray(nodeTable, tableLength, 2 * sizeof(NodePtr)); in MakeAtom()
122 if (nd->string != string) { in MakeAtom()
123 /* nd->string has been strdup'ed */ in MakeAtom()
124 free((char *) nd->string); in MakeAtom()
126 free(nd); in MakeAtom()
132 *np = nd; in MakeAtom()
133 nd->left = nd->right = NULL; in MakeAtom()
134 nd->fingerPrint = fp; in MakeAtom()
135 nd->a = ++lastAtom; in MakeAtom()
136 nodeTable[lastAtom] = nd; in MakeAtom()
137 return nd->a; in MakeAtom()