/* This file is part of the Zebra server.
- Copyright (C) 1994-2009 Index Data
+ Copyright (C) Index Data
Zebra is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free
*/
+#if HAVE_CONFIG_H
+#include <config.h>
+#endif
#include <stdio.h>
#include <string.h>
#include <assert.h>
char **look, int *literal)
{
struct xpath_predicate *left = 0;
-
+
left = get_xpath_relation(pr, mem, look, literal);
if (!left)
return 0;
-
+
while (*look && !*literal &&
- (!strcmp(*look, "and") || !strcmp(*look, "or") ||
+ (!strcmp(*look, "and") || !strcmp(*look, "or") ||
!strcmp(*look, "not")))
{
struct xpath_predicate *res, *right;
{
const char *cp;
char *a;
-
+
int no = 0;
-
+
if (!xpath_string || *xpath_string != '/')
return -1;
cp = xpath_string;
-
+
while (*cp && no < max)
{
int i = 0;
if (p) {
if (p->which == XPATH_PREDICATE_RELATION &&
p->u.relation.name[0]) {
- fprintf (stderr, "%s,%s,%s",
+ fprintf (stderr, "%s,%s,%s",
p->u.relation.name,
p->u.relation.op,
p->u.relation.value);