X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=dfa%2Fagrep.c;h=39d0f69173ff7241d73f6e541c605c9f9a9b76b8;hb=45a6ad99e5210bc4ef39bf00d81aee8f0fb26168;hp=119f7ed69b5b1d15f6af6ad1e1aee014e0259486;hpb=e27ce02d4d96ac2b8220134c837c53cfef8eba23;p=idzebra-moved-to-github.git diff --git a/dfa/agrep.c b/dfa/agrep.c index 119f7ed..39d0f69 100644 --- a/dfa/agrep.c +++ b/dfa/agrep.c @@ -1,10 +1,22 @@ /* - * Copyright (C) 1994, Index Data I/S + * Copyright (C) 1994-1999, Index Data * All rights reserved. * Sebastian Hammer, Adam Dickmeiss * * $Log: agrep.c,v $ - * Revision 1.8 1996-01-08 09:09:16 adam + * Revision 1.12 1999-05-26 07:49:12 adam + * C++ compilation. + * + * Revision 1.11 1999/02/02 14:50:03 adam + * Updated WIN32 code specific sections. Changed header. + * + * Revision 1.10 1997/09/09 13:37:57 adam + * Partial port to WIN95/NT. + * + * Revision 1.9 1996/10/29 13:57:18 adam + * Include of zebrautl.h instead of alexutil.h. + * + * Revision 1.8 1996/01/08 09:09:16 adam * Function dfa_parse got 'const' string argument. * New functions to define char mappings made public. * @@ -41,10 +53,16 @@ #include #include #include -#include +#ifdef WIN32 + +#include -#include +#else +#include +#endif + +#include #include #include "imalloc.h" @@ -268,6 +286,7 @@ char **argv; return i; while (--argc > 0) if (**++argv != '-' && **argv) + { if (!pattern) { pattern = *argv; @@ -293,6 +312,7 @@ char **argv; if (i) return i; } + } if (!no) { fprintf (stderr, "usage:\n "