X-Git-Url: http://git.indexdata.com/?p=idzebra-moved-to-github.git;a=blobdiff_plain;f=data1%2Fd1_soif.c;h=652e60c10fcd7a00a1ae498869336a1e5921565e;hp=7686be7ee9408176eb7634edee316e7104b3890b;hb=e4c6861efeeea654bfb00c5f0239ee258629d77f;hpb=89d3a004b7c651fd5673abfc192e1472dc4d4197 diff --git a/data1/d1_soif.c b/data1/d1_soif.c index 7686be7..652e60c 100644 --- a/data1/d1_soif.c +++ b/data1/d1_soif.c @@ -1,8 +1,5 @@ -/* $Id: d1_soif.c,v 1.7 2007-01-15 15:10:14 adam Exp $ - Copyright (C) 1995-2007 - Index Data ApS - -This file is part of the Zebra server. +/* This file is part of the Zebra server. + Copyright (C) 2004-2013 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 @@ -27,6 +24,9 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA * concatenating the tag names at each level. */ +#if HAVE_CONFIG_H +#include +#endif #include #include @@ -78,7 +78,7 @@ char *data1_nodetosoif (data1_handle dh, data1_node *n, int select, int *len) char buf[128]; wrbuf_rewind(b); - + if (n->which != DATA1N_root) return 0; sprintf(buf, "@%s{\n", n->u.root.type); @@ -92,6 +92,7 @@ char *data1_nodetosoif (data1_handle dh, data1_node *n, int select, int *len) /* * Local variables: * c-basic-offset: 4 + * c-file-style: "Stroustrup" * indent-tabs-mode: nil * End: * vim: shiftwidth=4 tabstop=8 expandtab