diff options
author | Daniel Veillard <veillard@redhat.com> | 2012-09-11 13:26:36 +0800 |
---|---|---|
committer | Daniel Veillard <veillard@redhat.com> | 2012-09-11 13:26:36 +0800 |
commit | f8e3db0445a1bc8cfe3f77326b07ec161482caa2 (patch) | |
tree | d58aad0a8629f897a8272b9a040a9416d46bb446 /testXPath.c | |
parent | 429d3a0aae2eda7ba9451f9c9f8523c61cc0368b (diff) | |
download | libxml2-f8e3db0445a1bc8cfe3f77326b07ec161482caa2.tar.gz |
Big space and tab cleanup
Remove all space before tabs and space and tabs at end of lines.
Diffstat (limited to 'testXPath.c')
-rw-r--r-- | testXPath.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/testXPath.c b/testXPath.c index 8b8efd4f..ebb9ff7b 100644 --- a/testXPath.c +++ b/testXPath.c @@ -51,7 +51,7 @@ static xmlDocPtr document = NULL; /* * Default document */ -static xmlChar buffer[] = +static xmlChar buffer[] = "<?xml version=\"1.0\"?>\n\ <EXAMPLE prop1=\"gnome is great\" prop2=\"& linux too\">\n\ <head>\n\ @@ -79,7 +79,7 @@ static void testXPath(const char *str) { xmlXPathObjectPtr res; xmlXPathContextPtr ctxt; - + #if defined(LIBXML_XPTR_ENABLED) if (xptr) { ctxt = xmlXPtrNewContext(document, NULL, NULL); @@ -96,7 +96,7 @@ testXPath(const char *str) { comp = xmlXPathCompile(BAD_CAST str); if (comp != NULL) { - if (tree) + if (tree) xmlXPathDebugDumpCompExpr(stdout, comp, 0); res = xmlXPathCompiledEval(comp, ctxt); @@ -127,10 +127,10 @@ testXPathFile(const char *filename) { while (fgets(expression, 4500, input) != NULL) { len = strlen(expression); len--; - while ((len >= 0) && + while ((len >= 0) && ((expression[len] == '\n') || (expression[len] == '\t') || (expression[len] == '\r') || (expression[len] == ' '))) len--; - expression[len + 1] = 0; + expression[len + 1] = 0; if (len >= 0) { printf("\n========================\nExpression: %s\n", expression) ; testXPath(expression); @@ -150,7 +150,7 @@ int main(int argc, char **argv) { #if defined(LIBXML_XPTR_ENABLED) if ((!strcmp(argv[i], "-xptr")) || (!strcmp(argv[i], "--xptr"))) xptr++; - else + else #endif if ((!strcmp(argv[i], "-debug")) || (!strcmp(argv[i], "--debug"))) debug++; @@ -213,7 +213,7 @@ int main(int argc, char **argv) { printf("\t--file : or\n"); printf("\t-f : read queries from files, args\n"); } - if (document != NULL) + if (document != NULL) xmlFreeDoc(document); xmlCleanupParser(); xmlMemoryDump(); |