Lines Matching +defs:ind +defs:token
75 struct buffer token;
166 * Compute the indentation from starting at 'ind' and adding the text starting
170 ind_add(int ind, const char *s, size_t len)
174 ind = 0;
176 ind = next_tab(ind);
178 ind++;
180 return ind;
290 int ind = 0;
293 ind++;
295 ind = next_tab(ind);
300 ps.ind_level = ps.ind_level_follow = ind / opt.indent_size;
343 ps.lbrace_kind = token.s[0] == 's' ? psym_lbrace_struct :
344 token.s[0] == 'u' ? psym_lbrace_union :
374 int ind = ind_add(base, code.s, code.len);
379 for (int next; (next = next_tab(ind)) <= target; ind = next)
381 for (; ind < target; ind++)
617 buf_add_buf(&code, &token);
658 diag(0, "Extra '%c'", *token.s);
672 buf_add_buf(&code, &token);
697 buf_add_buf(&code, &token);
707 diag(0, "Extra '%c'", *token.s);
714 buf_add_buf(&code, &token);
841 int ind = ps.decl_ind - (int)token.len;
842 indent_declarator(ind, ps.tabs_to_var);
843 } else if ((token.s[0] == '+' || token.s[0] == '-')
844 && code.len > 0 && code.s[code.len - 1] == token.s[0])
849 buf_add_buf(&code, &token);
856 buf_add_buf(&code, &token);
973 int ind = ps.ind_level > 0 && ps.decl_level == 0
976 if (ind == 0) {
978 ps.decl_ind = ind_add(ind0, token.s, token.len) + 1;
980 ps.decl_ind = ind;
981 ps.tabs_to_var = opt.use_tabs && ind > 0;
1101 buf_add_buf(&code, &token);
1120 debug_printf("line %s:%d: next token is %s",
1122 debug_print_buf("with text", &token);