X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=dfa%2Fgrepper.c;h=baa9be7dc4be5ad37dfba35cca5d2dda0db302de;hb=2b33b395b50c562323ea2b0251f9b798cf5241d2;hp=14bd7e9da7a0fe0832818c78336fa7daf5e7b806;hpb=b879b04a092d5b00cc866cf16f755e55053d2e89;p=idzebra-moved-to-github.git diff --git a/dfa/grepper.c b/dfa/grepper.c index 14bd7e9..baa9be7 100644 --- a/dfa/grepper.c +++ b/dfa/grepper.c @@ -1,10 +1,23 @@ /* - * Copyright (C) 1994, Index Data I/S + * Copyright (C) 1994-1999, Index Data * All rights reserved. * Sebastian Hammer, Adam Dickmeiss * * $Log: grepper.c,v $ - * Revision 1.5 1995-09-04 12:33:26 adam + * Revision 1.9 2000-09-05 14:04:05 adam + * Updates for prefix 'yaz_' for YAZ log functions. + * + * Revision 1.8 1999/02/02 14:50:07 adam + * Updated WIN32 code specific sections. Changed header. + * + * Revision 1.7 1996/10/29 13:57:24 adam + * Include of zebrautl.h instead of alexutil.h. + * + * Revision 1.6 1996/01/08 09:09:20 adam + * Function dfa_parse got 'const' string argument. + * New functions to define char mappings made public. + * + * Revision 1.5 1995/09/04 12:33:26 adam * Various cleanup. YAZ util used instead. * * Revision 1.4 1995/01/24 16:00:21 adam @@ -27,7 +40,7 @@ #include #include -#include +#include #include #include "imalloc.h" @@ -350,7 +363,7 @@ int main (int argc, char **argv) int ret; int range = 0; char *arg; - char *pattern = NULL; + const char *pattern = NULL; int no_files = 0; struct DFA *dfa = dfa_init(); @@ -379,7 +392,7 @@ int main (int argc, char **argv) } else if (ret == 'v') { - log_init (log_mask_str(arg), prog, NULL); + yaz_log_init (yaz_log_mask_str(arg), prog, NULL); } else if (ret == 's') {