| 981 | } |
| 982 | |
| 983 | static int get_base_var(struct config_source *cs, struct strbuf *name) |
| 984 | { |
| 985 | cs->subsection_case_sensitive = 1; |
| 986 | for (;;) { |
| 987 | int c = get_next_char(cs); |
| 988 | if (cs->eof) |
| 989 | return -1; |
| 990 | if (c == ']') |
| 991 | return 0; |
| 992 | if (isspace(c)) |
| 993 | return get_extended_base_var(cs, name, c); |
| 994 | if (!iskeychar(c) && c != '.') |
| 995 | return -1; |
| 996 | strbuf_addch(name, tolower(c)); |
| 997 | } |
| 998 | } |
| 999 | |
| 1000 | struct parse_event_data { |
| 1001 | enum config_event_t previous_type; |
no test coverage detected