X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=data1%2Fd1_soif.c;h=3e0a81a32b72d5cef2b00a9918fe1ce01c161bdd;hb=aae116a2ec79fd3487ac2d50ad2d6110f64145b2;hp=3aaf857be0a0c592ad9c079f3cd13bf05dd3857f;hpb=519fefb91135ad52134b9fc4e82b3874f5525a2b;p=idzebra-moved-to-github.git diff --git a/data1/d1_soif.c b/data1/d1_soif.c index 3aaf857..3e0a81a 100644 --- a/data1/d1_soif.c +++ b/data1/d1_soif.c @@ -1,13 +1,22 @@ -/* - * Copyright (c) 1995-2002, Index Data. - * See the file LICENSE for details. - * Sebastian Hammer, Adam Dickmeiss - * - * $Id: d1_soif.c,v 1.1 2002-10-22 12:53:33 adam Exp $ - */ +/* This file is part of the Zebra server. + 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 +Software Foundation; either version 2, or (at your option) any later +version. + +Zebra is distributed in the hope that it will be useful, but WITHOUT ANY +WARRANTY; without even the implied warranty of MERCHANTABILITY or +FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +for more details. + +You should have received a copy of the GNU General Public License +along with this program; if not, write to the Free Software +Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + +*/ -#include -#include /* * This module generates SOIF (Simple Object Interchange Format) records @@ -15,6 +24,12 @@ * concatenating the tag names at each level. */ +#if HAVE_CONFIG_H +#include +#endif +#include +#include + static int nodetoelement(data1_node *n, int select, char *prefix, WRBUF b) { data1_node *c; @@ -63,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); @@ -74,3 +89,12 @@ char *data1_nodetosoif (data1_handle dh, data1_node *n, int select, int *len) *len = wrbuf_len(b); return wrbuf_buf(b); } +/* + * Local variables: + * c-basic-offset: 4 + * c-file-style: "Stroustrup" + * indent-tabs-mode: nil + * End: + * vim: shiftwidth=4 tabstop=8 expandtab + */ +