Lines Matching refs:line

93 		free(parser->line);  in config_close()
107 char *line; in get_line_with_continuation() local
109 len = getline(&parser->line, &parser->line_alloc, parser->fp); in get_line_with_continuation()
113 line = parser->line; in get_line_with_continuation()
116 if (line[len - 1] == '\n') in get_line_with_continuation()
118 if (len == 0 || line[len - 1] != '\\') in get_line_with_continuation()
128 line = parser->line = xrealloc(line, parser->line_alloc); in get_line_with_continuation()
130 memcpy(&line[len], parser->nline, nlen); in get_line_with_continuation()
134 line[len] = '\0'; in get_line_with_continuation()
165 char *line, *p; in config_read() local
187 line = parser->line; in config_read()
191 line += strspn(line, delims + 1); in config_read()
193 p = line; in config_read()
201 parser->data = xstrdup(line); in config_read()
208 tokens[t] = line; in config_read()
213 line += strcspn(line, (delims[0] && (flags & PARSE_EOL_COMMENTS)) ? delims : delims + 1); in config_read()
216 line = strchrnul(line, (flags & PARSE_EOL_COMMENTS) ? delims[0] : '\0'); in config_read()
220 while (strchr(delims + 1, line[-1]) != NULL) in config_read()
221 line--; in config_read()
226 if ((flags & PARSE_EOL_COMMENTS) && *line == delims[0]) in config_read()
227 *line = '\0'; /* ends with comment char: this line is done */ in config_read()
228 else if (*line != '\0') in config_read()
229 *line++ = '\0'; /* token is done, continue parsing line */ in config_read()
238 line += strspn(line, delims + 1); in config_read()
241 } while (*line && *line != delims[0] && t < ntokens); in config_read()