[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Nano-devel] can we use REG_STARTEND?
From: |
Mike Frysinger |
Subject: |
Re: [Nano-devel] can we use REG_STARTEND? |
Date: |
Wed, 18 Jan 2017 05:21:03 -0500 |
On 15 Jan 2017 19:59, Benno Schulenberg wrote:
> In order to fix a bug with searching for regexes that contain
> boundary markers, I have had to resort to using REG_STARTEND.
> Glibc's regexec knows about this flag since 2004. The BSDs
> seem to know it too. So, would it be okay to use this flag?
> Or must I look for a different solution?
unfortunately, that flag is not in POSIX:
http://pubs.opengroup.org/onlinepubs/9699919799/functions/regcomp.html
which means, imo, we can use it if it's defined, but we can't hard require it.
at least as long as we aren't relying on gnulib ...
-mike
signature.asc
Description: Digital signature