X-Git-Url: http://git.indexdata.com/?p=idzebra-moved-to-github.git;a=blobdiff_plain;f=index%2Fmod_grs_sgml.c;h=0ffe93f0bb428f7d6291d098481c778612437aae;hp=38fcbe3026ebb39ea2475ff856d41b9f82ff1ddf;hb=bdf0f406d66c4702c3b8942d1bb33a9212283138;hpb=b3679b1ecd730266f70a62347f66e5964a2fa030 diff --git a/index/mod_grs_sgml.c b/index/mod_grs_sgml.c index 38fcbe3..0ffe93f 100644 --- a/index/mod_grs_sgml.c +++ b/index/mod_grs_sgml.c @@ -1,5 +1,5 @@ /* This file is part of the Zebra server. - Copyright (C) 1995-2008 Index Data + 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 @@ -18,6 +18,9 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#if HAVE_CONFIG_H +#include +#endif #include #include @@ -37,7 +40,7 @@ int sgml_getc (void *clientData) { struct sgml_getc_info *p = (struct sgml_getc_info *) clientData; int res; - + if (p->off < p->size) return p->buf[(p->off)++]; if (p->size < p->buf_size) @@ -59,7 +62,7 @@ static data1_node *grs_read_sgml (struct grs_read_info *p) struct sgml_getc_info *sgi = (struct sgml_getc_info *) p->clientData; data1_node *node; int res; - + sgi->moffset = p->stream->tellf(p->stream); sgi->stream = p->stream; sgi->off = 0; @@ -123,7 +126,7 @@ static struct recType grs_type_sgml = }; RecType -#ifdef IDZEBRA_STATIC_GRS_SGML +#if IDZEBRA_STATIC_GRS_SGML idzebra_filter_grs_sgml #else idzebra_filter @@ -136,6 +139,7 @@ idzebra_filter /* * Local variables: * c-basic-offset: 4 + * c-file-style: "Stroustrup" * indent-tabs-mode: nil * End: * vim: shiftwidth=4 tabstop=8 expandtab