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
Character set negotiation updates
[idzebra-moved-to-github.git]
/
dfa
/
agrep.c
diff --git
a/dfa/agrep.c
b/dfa/agrep.c
index
2214fb5
..
39d0f69
100644
(file)
--- 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 $
* 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
* Partial port to WIN95/NT.
*
* Revision 1.9 1996/10/29 13:57:18 adam
@@
-46,9
+52,12
@@
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <sys/stat.h>
-#include <fcntl.h>
\r
-#ifdef WINDOWS
\r
-#include <io.h>
\r
+#include <fcntl.h>
+
+#ifdef WIN32
+
+#include <io.h>
+
#else
#include <unistd.h>
#endif
#else
#include <unistd.h>
#endif
@@
-277,6
+286,7
@@
char **argv;
return i;
while (--argc > 0)
if (**++argv != '-' && **argv)
return i;
while (--argc > 0)
if (**++argv != '-' && **argv)
+ {
if (!pattern)
{
pattern = *argv;
if (!pattern)
{
pattern = *argv;
@@
-302,6
+312,7
@@
char **argv;
if (i)
return i;
}
if (i)
return i;
}
+ }
if (!no)
{
fprintf (stderr, "usage:\n "
if (!no)
{
fprintf (stderr, "usage:\n "