projects
/
idzebra-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Reformat: delete trailing whitespace
[idzebra-moved-to-github.git]
/
index
/
mod_grs_sgml.c
diff --git
a/index/mod_grs_sgml.c
b/index/mod_grs_sgml.c
index
d9570e6
..
0a44e5b
100644
(file)
--- a/
index/mod_grs_sgml.c
+++ b/
index/mod_grs_sgml.c
@@
-18,6
+18,9
@@
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
*/
+#if HAVE_CONFIG_H
+#include <config.h>
+#endif
#include <assert.h>
#include <yaz/log.h>
#include <assert.h>
#include <yaz/log.h>
@@
-37,7
+40,7
@@
int sgml_getc (void *clientData)
{
struct sgml_getc_info *p = (struct sgml_getc_info *) clientData;
int res;
{
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)
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;
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;
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
};
RecType
-#ifdef IDZEBRA_STATIC_GRS_SGML
+#if IDZEBRA_STATIC_GRS_SGML
idzebra_filter_grs_sgml
#else
idzebra_filter
idzebra_filter_grs_sgml
#else
idzebra_filter