X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=m4%2Fregex.m4;h=0eb69fc74ad2147357b02433c6ac187e014d3404;hb=b857a5537fb92a254d5af4ddf8c5843ad9674d55;hp=a79f03bcd73e2cad20a4deecd738efc518ab2a7b;hpb=4dceaded2c2af652e9caa450b0c252efb2aa355f;p=pspp diff --git a/m4/regex.m4 b/m4/regex.m4 index a79f03bcd7..0eb69fc74a 100644 --- a/m4/regex.m4 +++ b/m4/regex.m4 @@ -1,4 +1,4 @@ -#serial 10 +#serial 11 dnl Initially derived from code in GNU grep. dnl Mostly written by Jim Meyering. @@ -30,10 +30,7 @@ AC_DEFUN(jm_INCLUDED_REGEX, const char *s; struct re_registers regs; re_set_syntax (RE_SYNTAX_POSIX_EGREP); - /* These two brackets, '[[' and the one in the comment below serve - to quote the brackets (unbalanced) in the following line. */ - s = re_compile_pattern ("a[[:]:]]b\n", 9, ®ex); - /* This bracket ']' helps quote the unbalanced expression above. */ + [s = re_compile_pattern ("a[[:@:>@:]]b\n", 9, ®ex);] /* This should fail with _Invalid character class name_ error. */ if (!s) exit (1);