Lines Matching defs:total_len
65 size_t total_len;
83 if (s->total_len < s->bufsize)
84 s->buf[s->total_len] = c;
85 s->total_len++;
91 int num_len = s->total_len < s->bufsize
92 ? snprintf(s->buf + s->total_len, s->bufsize - s->total_len,
96 s->total_len += num_len;
103 if (s->total_len - s->line_pos > s->line_max) {
104 s->total_len = s->line_pos + s->line_max - 1;
108 s->line_pos = s->total_len;
117 s->comma_pos = s->total_len;
130 && s->total_len - s->line_pos >= s->line_max) {
131 s->total_len = s->comma_pos;
265 if (s->total_len <= s->bufsize)
275 if (s->total_len <= s->bufsize)
327 return had_error ? -1 : (int)(s.total_len - 1);