Add tab stop TABVAL to the end of 'tab_list'. */
| 81 | |
| 82 | /* Add tab stop TABVAL to the end of 'tab_list'. */ |
| 83 | extern void |
| 84 | add_tab_stop (colno tabval) |
| 85 | { |
| 86 | colno prev_column = first_free_tab ? tab_list[first_free_tab - 1] : 0; |
| 87 | colno column_width = prev_column <= tabval ? tabval - prev_column : 0; |
| 88 | |
| 89 | if (first_free_tab == n_tabs_allocated) |
| 90 | tab_list = xpalloc (tab_list, &n_tabs_allocated, 1, -1, sizeof *tab_list); |
| 91 | tab_list[first_free_tab++] = tabval; |
| 92 | |
| 93 | set_max_column_width (column_width); |
| 94 | } |
| 95 | |
| 96 | static bool |
| 97 | set_extend_size (colno tabval) |
no test coverage detected