Lines Matching +defs:match +defs:line

65 static bool preprocess(char *line, char *result);
66 static void process_into_file(char *line, FILE *ofp);
67 static void process_into_nvlist(char *line, nvlist_t *nvl);
117 char line[BUFSIZ];
119 snprintf(line, sizeof(line), "../../conf/Makefile.%s", machinename);
120 ifp = fopen(line, "r");
122 snprintf(line, sizeof(line), "Makefile.%s", machinename);
123 ifp = fopen(line, "r");
126 err(1, "%s", line);
137 char line[BUFSIZ];
160 while (fgets(line, BUFSIZ, ifp) != NULL) {
161 if (*line != '%') {
162 fprintf(ofp, "%s", line);
165 if (eq(line, "%BEFORE_DEPEND\n"))
167 else if (eq(line, "%OBJS\n"))
169 else if (strncmp(line, "%FILES.", 7) == 0)
170 do_xxfiles(line, ofp);
171 else if (eq(line, "%RULES\n"))
173 else if (eq(line, "%CLEAN\n"))
175 else if (strncmp(line, "%VERSREQ=", 9) == 0)
176 line[0] = '\0'; /* handled elsewhere */
180 line);
194 /* If there is no '=' it's not a well-formed name=value line. */
211 /* If it was all leading space, we don't have a well-formed line. */
248 preprocess(char *line, char *result)
253 if ((s = strchr(line, '#')) != NULL)
255 sanitize_envline(result, line);
261 process_into_file(char *line, FILE *ofp)
265 if (preprocess(line, result))
270 process_into_nvlist(char *line, nvlist_t *nvl)
274 if (preprocess(line, result)) {
310 char line[BUFSIZ];
332 while (fgets(line, BUFSIZ, ifp) != NULL)
333 process_into_nvlist(line, nvl);
351 char line[BUFSIZ];
374 while (fgets(line, BUFSIZ, ifp) != NULL)
375 process_into_nvlist(line, nvl);
397 int compile, match, nreqs, std, filetype, not,
444 match = 1;
474 compile += match;
475 match = 1;
559 match = 0;
568 match = 0;
571 match &= not;
575 compile += match;