projects
/
gnulib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
(xreadlink): Omit size_t* arg. All uses changed.
[gnulib.git]
/
m4
/
regex.m4
diff --git
a/m4/regex.m4
b/m4/regex.m4
index
66b39c3
..
0017507
100644
(file)
--- a/
m4/regex.m4
+++ b/
m4/regex.m4
@@
-1,11
+1,11
@@
-#serial 1
0
+#serial 1
2
dnl Initially derived from code in GNU grep.
dnl Mostly written by Jim Meyering.
dnl Usage: jm_INCLUDED_REGEX([lib/regex.c])
dnl
dnl Initially derived from code in GNU grep.
dnl Mostly written by Jim Meyering.
dnl Usage: jm_INCLUDED_REGEX([lib/regex.c])
dnl
-AC_DEFUN(
jm_INCLUDED_REGEX
,
+AC_DEFUN(
[jm_INCLUDED_REGEX]
,
[
dnl Even packages that don't use regex.c can use this macro.
dnl Of course, for them it doesn't do anything.
[
dnl Even packages that don't use regex.c can use this macro.
dnl Of course, for them it doesn't do anything.
@@
-30,9
+30,7
@@
AC_DEFUN(jm_INCLUDED_REGEX,
const char *s;
struct re_registers regs;
re_set_syntax (RE_SYNTAX_POSIX_EGREP);
const char *s;
struct re_registers regs;
re_set_syntax (RE_SYNTAX_POSIX_EGREP);
- /* Add this third left square bracket, [, to balance the
- three right ones below. Otherwise autoconf-2.14 chokes. */
- s = re_compile_pattern ("a[[:]:]]b\n", 9, ®ex);
+ [s = re_compile_pattern ("a[[:@:>@:]]b\n", 9, ®ex);]
/* This should fail with _Invalid character class name_ error. */
if (!s)
exit (1);
/* This should fail with _Invalid character class name_ error. */
if (!s)
exit (1);