diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2011-04-29 12:33:34 +0300 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2011-04-29 12:33:34 +0300 |
commit | 34add399b437907a2107f22ebd92d0b04d93a80c (patch) | |
tree | 5e7e94ee3ab9de68b8e42a09c09d3e791f7e78b7 | |
parent | 5f7dd5191cd5973d69de1f6860d775802bc896e6 (diff) | |
download | egawk-34add399b437907a2107f22ebd92d0b04d93a80c.tar.gz egawk-34add399b437907a2107f22ebd92d0b04d93a80c.tar.bz2 egawk-34add399b437907a2107f22ebd92d0b04d93a80c.zip |
Sync dfa.c with GNU grep.
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | dfa.c | 8 |
2 files changed, 8 insertions, 4 deletions
@@ -1,3 +1,7 @@ +Fri Apr 29 12:29:56 2011 Arnold D. Robbins <arnold@skeeve.com> + + * dfa.c: Sync with GNU grep, mainly typos in comments. + Fri Apr 29 12:13:32 2011 Arnold D. Robbins <arnold@skeeve.com> * io.c (inetfile): Change ifdef to ifndef for have getaddrinfo. @@ -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 \<digit>; 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 <mb A>, and state[i+1] accepts 2nd byte of <mb A>, if state[i+1] encounter the codepoint of <sb a>, it must not be <sb a> but 2nd byte of - <mb A>, so we can not add state[0]. */ + <mb A>, 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; |