Lines Matching defs:inc
822 struct include_entry *inc;
837 inc = malloc(sizeof(struct include_entry));
838 if (inc == NULL)
839 err(1, "malloc of inc");
840 inc->file = conf;
841 if (inc->file == NULL)
842 inc->file = _PATH_CONF;
843 STAILQ_INSERT_TAIL(&inclist, inc, inc_nextp);
845 STAILQ_FOREACH(inc, &inclist, inc_nextp) {
846 if (strcmp(inc->file, "-") != 0)
847 f = fopen(inc->file, "r");
850 inc->file = "<stdin>";
853 err(1, "%s", inc->file);
856 printf("Processing %s\n", inc->file);
1694 struct include_entry *inc;
1696 STAILQ_FOREACH(inc, inclist, inc_nextp) {
1697 if (strcmp(fname, inc->file) == 0) {
1703 inc = malloc(sizeof(struct include_entry));
1704 if (inc == NULL)
1705 err(1, "malloc of inc");
1706 inc->file = strdup(fname);
1711 STAILQ_INSERT_TAIL(inclist, inc, inc_nextp);