X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=dfa%2Fagrep.c;h=39d0f69173ff7241d73f6e541c605c9f9a9b76b8;hb=df117f4652b6999cf689cf5e2e65f8d8541ab4b0;hp=2214fb5addeadcfc1beadca8d74d74a1d73dc1e1;hpb=5f8ba9f35bd3c9aeafe26613021f2edd141b8611;p=idzebra-moved-to-github.git diff --git a/dfa/agrep.c b/dfa/agrep.c index 2214fb5..39d0f69 100644 --- a/dfa/agrep.c +++ b/dfa/agrep.c @@ -1,10 +1,16 @@ /* - * 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.10 1997-09-09 13:37:57 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 @@ -46,9 +52,12 @@ #include #include -#include -#ifdef WINDOWS -#include +#include + +#ifdef WIN32 + +#include + #else #include #endif @@ -277,6 +286,7 @@ char **argv; return i; while (--argc > 0) if (**++argv != '-' && **argv) + { if (!pattern) { pattern = *argv; @@ -302,6 +312,7 @@ char **argv; if (i) return i; } + } if (!no) { fprintf (stderr, "usage:\n "