projects
/
pspp
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Refine understanding of minor points.
[pspp]
/
parse-xml.c
diff --git
a/parse-xml.c
b/parse-xml.c
index 7fc3da2ed1ba84acd2c6867d957129cc2c3f156b..9faa946f45a7ac64574312b8505d139d4e07f2ee 100644
(file)
--- a/
parse-xml.c
+++ b/
parse-xml.c
@@
-117,7
+117,7
@@
print_attribute (xmlNode *node, const char *attr)
}
}
}
}
-static xmlNode *
+static
__attribute__((unused))
xmlNode *
find_page_setup (xmlNode *node)
{
for (; node; node = node->next)
find_page_setup (xmlNode *node)
{
for (; node; node = node->next)
@@
-176,10
+176,14
@@
main (int argc, char **argv)
}
xmlNode *root = xmlDocGetRootElement(doc);
}
xmlNode *root = xmlDocGetRootElement(doc);
+
+#if 0
+ /* Limit what we look at to pageSetup node and below. */
root = find_page_setup(root);
if (!root)
return 0;
root->next = NULL;
root = find_page_setup(root);
if (!root)
return 0;
root->next = NULL;
+#endif
if (!strcmp(argv[2], "containment"))
print_containment (root);
if (!strcmp(argv[2], "containment"))
print_containment (root);