1 /* This merely extracts, doesn't do XML or anything. */
11 #include "talloc/talloc.h"
12 #include "string/string.h"
15 int main(int argc, char *argv[])
19 for (i = 1; i < argc; i++) {
22 bool printing = false, printed = false;
24 file = grab_file(NULL, argv[i]);
26 err(1, "Reading file %s", argv[i]);
27 lines = strsplit(file, file, "\n", NULL);
29 for (j = 0; lines[j]; j++) {
30 if (streq(lines[j], "/**")) {
34 } else if (streq(lines[j], " */"))
37 if (strstarts(lines[j], " * "))
39 else if (strstarts(lines[j], " *"))
42 errx(1, "Malformed line %s:%u",