|
From: | Paul Eggert |
Subject: | Re: regex.c simplification |
Date: | Fri, 20 Jul 2018 14:49:15 -0700 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 |
On 07/19/2018 11:59 PM, Eli Zaretskii wrote:
Every POSIX-conforming platform has regexp code somewhere, using the POSIX API. However, I can see some trouble using that code:I was thinking of just always using the libc regexp code (whether it's GNU libc or something else).Yes, that'd be a possibility. Do we have any supported platform that does NOT have its own regexp code, whether in libc or as a separate library?
* Some of libc regex implementations have been reasonably buggy. Most GNU apps don't use these implementations any more so I'm not sure what their status is.
* We may need to use an option like -lregex to get the system library implementation, and that would have to be configured.
* Perhaps 'etags' users are using GNU extensions in their regular expressions, and if we switch to the libc API their usage will break.
* You're the expert, but as far as I know MS-Windows does not support the POSIX API so presumably we'd have to provide a substitute anyway, for MS-Windows.
* etags uses the GNU API so it would have to be changed to use the POSIX API.
[Prev in Thread] | Current Thread | [Next in Thread] |