summaryrefslogtreecommitdiff
path: root/libc/locale/programs/ld-messages.c
diff options
context:
space:
mode:
authorjimb <jimb@7b3dc134-2b1b-0410-93df-9e9f96275f8d>2007-06-14 00:14:51 +0000
committerjimb <jimb@7b3dc134-2b1b-0410-93df-9e9f96275f8d>2007-06-14 00:14:51 +0000
commitf8db47401ff3da56c79c2ac7c2b6769e7ecc77a1 (patch)
tree949f25393ca5806060732adb6d26f25c2c5f60e0 /libc/locale/programs/ld-messages.c
parent5730f8a166ce66cff42c7cb277659d380c75ef3f (diff)
Add the OPTION_POSIX_REGEXP option group.
* option-groups.def (OPTION_POSIX_REGEXP): New entry. * option-groups.defaults (OPTION_POSIX_REGEXP): Initialize. * posix/Makefile: Include ../option-groups.mak. (routines): Move 'regex' into the group. * stdlib/Makefile: Put rpmatch in both the OPTION_POSIX_REGEXP and OPTION_EGLIBC_LOCALE_CODE groups. * misc/Makefile: Put regexp in the group. * locale/Makefile (CFLAGS-ld-messages.c): Define OPTION_POSIX_REGEXP as appropriate. * locale/programs/ld-messages.c: Don't check the syntax of 'yes' and 'no' regular expressions if the group isn't enabled. git-svn-id: svn://svn.eglibc.org/trunk@2508 7b3dc134-2b1b-0410-93df-9e9f96275f8d
Diffstat (limited to 'libc/locale/programs/ld-messages.c')
-rw-r--r--libc/locale/programs/ld-messages.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libc/locale/programs/ld-messages.c b/libc/locale/programs/ld-messages.c
index 66ac7e3d1..7c9399802 100644
--- a/libc/locale/programs/ld-messages.c
+++ b/libc/locale/programs/ld-messages.c
@@ -123,6 +123,7 @@ No definition for %s category found"), "LC_MESSAGES"));
}
else
{
+#ifdef OPTION_POSIX_REGEXP
int result;
regex_t re;
@@ -139,6 +140,7 @@ No definition for %s category found"), "LC_MESSAGES"));
}
else if (result != 0)
regfree (&re);
+#endif
}
if (messages->noexpr == NULL)
@@ -157,6 +159,7 @@ No definition for %s category found"), "LC_MESSAGES"));
}
else
{
+#ifdef OPTION_POSIX_REGEXP
int result;
regex_t re;
@@ -173,6 +176,7 @@ No definition for %s category found"), "LC_MESSAGES"));
}
else if (result != 0)
regfree (&re);
+#endif
}
}