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
Add support for centos6 and Ubuntu quantal
[idzebra-moved-to-github.git]
/
dfa
/
agrep.c
diff --git
a/dfa/agrep.c
b/dfa/agrep.c
index
2e762b6
..
504b50a
100644
(file)
--- a/
dfa/agrep.c
+++ b/
dfa/agrep.c
@@
-18,6
+18,9
@@
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
*/
+#if HAVE_CONFIG_H
+#include <config.h>
+#endif
#include <stdio.h>
#include <assert.h>
#include <stdlib.h>
#include <stdio.h>
#include <assert.h>
#include <stdlib.h>
@@
-181,7
+184,7
@@
static int go (int fd, struct DFA_state **dfaar)
break;
}
for (t=s->trans, i=s->tran_no; --i >= 0; t++)
break;
}
for (t=s->trans, i=s->tran_no; --i >= 0; t++)
- if ((unsigned) *p >= t->ch[0]
+ if ((unsigned) *p >= t->ch[0]
&& (unsigned) *p <= t->ch[1])
break;
p++;
&& (unsigned) *p <= t->ch[1])
break;
p++;