Lines Matching refs:line
158 * Read a line from file with \ continuation and skip commented lines.
159 * Return the line in allocated string (*li)
163 char *nxtline = NULL, *line;
168 line = NULL;
170 len = getline(&line, &linelen, fl);
172 free(line);
176 if (line[0] != '#') break;
177 free(line);
180 if (line[len - 1] == '\n') len--;
182 free(line);
184 } else if (line[len - 1] != '\\') break;
191 line = xrealloc(line, linelen);
193 memcpy(&line[len], nxtline, nxtlen);
196 line[len] = '\0';
197 *li = xstrdup(line);
198 free(line);
210 char *filename, *tokens[3], *line, *linecp;
223 for (line = linecp = NULL; read_line(fc, &line) >= 0;
224 free(line), free(linecp), line = linecp = NULL) {
227 if (!strlen(line)) continue;
228 linecp = xstrdup(line);
233 tokens[2] = line + strlen(tokens[0]) + strlen(tokens[1]) + 2;
239 // process the tokens[0] contains first word of config line.
282 char *line, *name;
286 while (read_line(fe, &line) >= 0) {
287 char *tmp = strchr(line, ':');
291 name = basename(line);
296 if (FLAG(v)) puts(line);
300 free(line);
309 char *line = NULL;
313 for (; read_line(fe, &line) >= 0; free(line)) {
314 char *tmp = strchr(line, ':');
318 mod = get_mod(line, 0);
325 llist_add(&mod->dep, xstrdup(line));