diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2011-05-02 23:47:55 +0300 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2011-05-02 23:47:55 +0300 |
commit | 1fca900fe86520468b762af1eafb3f9c3b4fce19 (patch) | |
tree | 0079bdf5369b27b191cd071439a4f5a8d49e0b99 | |
parent | 3b7a060d1227d01af9b98e748388087c9a160410 (diff) | |
download | egawk-1fca900fe86520468b762af1eafb3f9c3b4fce19.tar.gz egawk-1fca900fe86520468b762af1eafb3f9c3b4fce19.tar.bz2 egawk-1fca900fe86520468b762af1eafb3f9c3b4fce19.zip |
Further sync of dfa.c.
-rw-r--r-- | ChangeLog | 11 | ||||
-rw-r--r-- | dfa.c | 12 |
2 files changed, 13 insertions, 10 deletions
@@ -1,3 +1,14 @@ +Mon May 2 23:44:34 2011 Arnold D. Robbins <arnold@skeeve.com> + + * dfa.c (parse_bracket_exp): Sync with GNU grep, since we + now require C 90, go ahead and put non-constant values into + the array initializers. + +Mon May 2 23:37:09 2011 Corinna Vinschen <vinschen@redhat.com> + + * awk.h (small): Undef after include of <sigsegv.h> to compile + builtin.c on Cygwin. + Fri Apr 29 12:29:56 2011 Arnold D. Robbins <arnold@skeeve.com> * dfa.c: Sync with GNU grep, mainly typos in comments. @@ -1000,16 +1000,8 @@ parse_bracket_exp (void) /* Defer to the system regex library about the meaning of range expressions. */ regex_t re; - char pattern[6]; - char subject[2]; - - pattern[0] = '['; - pattern[1] = c1; - pattern[2] = '-'; - pattern[3] = c2; - pattern[4] = ']'; - pattern[5] = 0; - subject[0] = subject[1] = 0; + char pattern[6] = { '[', c1, '-', c2, ']', 0 }; + char subject[2] = { 0, 0 }; regcomp (&re, pattern, REG_NOSUB); for (c = 0; c < NOTCHAR; ++c) { |