From 34add399b437907a2107f22ebd92d0b04d93a80c Mon Sep 17 00:00:00 2001 From: "Arnold D. Robbins" Date: Fri, 29 Apr 2011 12:33:34 +0300 Subject: Sync dfa.c with GNU grep. --- dfa.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'dfa.c') diff --git a/dfa.c b/dfa.c index 953774b9..4e02dbb1 100644 --- a/dfa.c +++ b/dfa.c @@ -129,7 +129,7 @@ typedef int charclass[CHARCLASS_INTS]; Word-constituent characters are those that satisfy isalnum(). - The macro SUCCEEDS_IN_CONTEXT determines whether a a given constraint + The macro SUCCEEDS_IN_CONTEXT determines whether a given constraint succeeds in a particular context. Prevn is true if the previous character was a newline, currn is true if the lookahead character is a newline. Prevl and currl similarly depend upon whether the previous and current @@ -177,7 +177,7 @@ typedef enum the empty string. */ BACKREF, /* BACKREF is generated by \; it - it not completely handled. If the scanner + is not completely handled. If the scanner detects a transition on backref, it returns a kind of "semi-success" indicating that the match will have to be verified with @@ -2560,7 +2560,7 @@ dfastate (int s, struct dfa *d, int trans[]) by accepting accepts 1st byte of , and state[i+1] accepts 2nd byte of , if state[i+1] encounter the codepoint of , it must not be but 2nd byte of - , so we can not add state[0]. */ + , so we cannot add state[0]. */ next_isnt_1st_byte = 0; for (j = 0; j < follows.nelem; ++j) @@ -3014,7 +3014,7 @@ check_matching_with_multibyte_ops (struct dfa *d, int s, int idx) rarray[i] = match_mb_charset(d, s, pos, idx); break; default: - break; /* can not happen. */ + break; /* cannot happen. */ } } return rarray; -- cgit v1.2.3