X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=recctrl%2Frectext.c;h=ba618d6b30c8eeb4fe9380c2a133a2c00f7d7f46;hb=de79197bd3ee5ef00d6d6353ef4f83d035fe4e1c;hp=7791314990caeb8b7dd285b79cb4c5e692adac2b;hpb=f64645447b8b099975747eb50583cddd7d2dfa88;p=idzebra-moved-to-github.git diff --git a/recctrl/rectext.c b/recctrl/rectext.c index 7791314..ba618d6 100644 --- a/recctrl/rectext.c +++ b/recctrl/rectext.c @@ -1,4 +1,4 @@ -/* $Id: rectext.c,v 1.27 2005-06-14 18:28:21 adam Exp $ +/* $Id: rectext.c,v 1.31 2006-05-10 08:13:30 adam Exp $ Copyright (C) 1995-2005 Index Data ApS @@ -39,14 +39,14 @@ static void *filter_init (Res res, RecType recType) return tinfo; } -static void filter_config(void *clientData, Res res, const char *args) +static ZEBRA_RES filter_config(void *clientData, Res res, const char *args) { - struct filter_info *tinfo = (struct marc_info*) clientData; - yaz_log(YLOG_LOG, "args:%s: len=%d", args, strlen(args)); + struct filter_info *tinfo = (struct filter_info*) clientData; xfree(tinfo->sep); tinfo->sep = 0; if (args && *args) tinfo->sep = xstrdup(args); + return ZEBRA_OK; } static void filter_destroy (void *clientData) @@ -115,7 +115,6 @@ static int filter_extract (void *clientData, struct recExtractCtrl *p) (long) (*fi->p->tellf)(fi->p->fh)); #endif (*p->init)(p, &recWord); - recWord.reg_type = 'w'; do { int i = 0; @@ -256,3 +255,11 @@ idzebra_filter &filter_type, 0, }; +/* + * Local variables: + * c-basic-offset: 4 + * indent-tabs-mode: nil + * End: + * vim: shiftwidth=4 tabstop=8 expandtab + */ +