Lines Matching refs:depth
103 size_t depth, nls, i;
113 depth = 1;
120 // have "depth", which means we haven't completely balanced brackets
122 for (i = l->i; (c = l->buf[i]) && depth; ++i)
132 depth += (c == '[');
133 depth -= (c == ']');
139 if (depth) bc_vec_push(&l->str, &c);
142 if (BC_ERR(c == '\0' && depth))
155 while (got_more && depth);
158 if (BC_ERR(c == '\0' && depth))