| 740 | character, or first non-blank character after the prefix. */ |
| 741 | |
| 742 | static int |
| 743 | get_prefix (FILE *f) |
| 744 | { |
| 745 | int c; |
| 746 | |
| 747 | in_column = 0; |
| 748 | c = get_space (f, getc (f)); |
| 749 | if (prefix_length == 0) |
| 750 | next_prefix_indent = prefix_lead_space < in_column ? |
| 751 | prefix_lead_space : in_column; |
| 752 | else |
| 753 | { |
| 754 | next_prefix_indent = in_column; |
| 755 | for (char const *p = prefix; *p != '\0'; p++) |
| 756 | { |
| 757 | unsigned char pc = *p; |
| 758 | if (c != pc) |
| 759 | return c; |
| 760 | in_column++; |
| 761 | c = getc (f); |
| 762 | } |
| 763 | c = get_space (f, c); |
| 764 | } |
| 765 | return c; |
| 766 | } |
| 767 | |
| 768 | /* Read blank characters from input file F, starting with C, and keeping |
| 769 | in_column up-to-date. Return first non-blank character. */ |
no test coverage detected