Lines Matching refs:inc
815 struct include_entry *inc;
830 inc = malloc(sizeof(struct include_entry));
831 if (inc == NULL)
832 err(1, "malloc of inc");
833 inc->file = conf;
834 if (inc->file == NULL)
835 inc->file = _PATH_CONF;
836 STAILQ_INSERT_TAIL(&inclist, inc, inc_nextp);
838 STAILQ_FOREACH(inc, &inclist, inc_nextp) {
839 if (strcmp(inc->file, "-") != 0)
840 f = fopen(inc->file, "r");
843 inc->file = "<stdin>";
846 err(1, "%s", inc->file);
849 printf("Processing %s\n", inc->file);
1696 struct include_entry *inc;
1698 STAILQ_FOREACH(inc, inclist, inc_nextp) {
1699 if (strcmp(fname, inc->file) == 0) {
1705 inc = malloc(sizeof(struct include_entry));
1706 if (inc == NULL)
1707 err(1, "malloc of inc");
1708 inc->file = strdup(fname);
1713 STAILQ_INSERT_TAIL(inclist, inc, inc_nextp);