aboutsummaryrefslogtreecommitdiff
path: root/lib/libregex
Commit message (Collapse)AuthorAgeFilesLines
* dirdeps: Update Makefile.depend* files with empty contentsStephen J. Kiernan2023-10-291-0/+16
| | | | | Some Makefile.depend* files were committed with no contents or empty DIRDEPS list, but they should have DIRDEPS with some contents.
* Remove $FreeBSD$: one-line sh patternWarner Losh2023-08-164-4/+0
| | | | Remove /^\s*#[#!]?\s*\$FreeBSD\$.*$\n/
* Remove $FreeBSD$: one-line .h patternWarner Losh2023-08-161-1/+0
| | | | Remove /^\s*\*+\s*\$FreeBSD\$.*$\n/
* spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSDWarner Losh2023-05-121-1/+1
| | | | | | | | | The SPDX folks have obsoleted the BSD-2-Clause-FreeBSD identifier. Catch up to that fact and revert to their recommended match of BSD-2-Clause. Discussed with: pfg MFC After: 3 days Sponsored by: Netflix
* Update/fix Makefile.depend for userlandSimon J. Gerraty2023-04-191-0/+0
|
* pkgbase: Put more binaries/lib in runtimeEmmanuel Vadot2021-12-211-0/+2
| | | | | | | | | Move some needed binaries/libs from FreeBSD-utilities to FreeBSD_runtime. This is everything needed to boot to multiuser with FreeBSD-rc installed. MFC after: 2 weeks Sponsored by: Beckhoff Automation GmbH & Co. KG Differential Revision: https://reviews.freebsd.org/D33435
* pkgbase: Remove FreeBSD-libregex packageEmmanuel Vadot2021-09-071-1/+0
| | | | | | | | The only user of libregex is grep (and its variation), no need for a dedicated package. This moves libregex to the default package (FreeBSD-utilities). Differential Revision: https://reviews.freebsd.org/D31802
* libregex: re-enable `make check`Kyle Evans2021-01-081-1/+1
| | | | | | The tests are generally expected to pass, uncomment the annotation that lets `make check` work. Note that `make check` currently requires kyua from ports or an appropriate symlink into /usr/local/bin.
* libregex: implement \b and \B (word boundary, not word boundary)Kyle Evans2020-12-051-7/+5
| | | | | | | | | | This is the last of the needed GNU expressions before we can unleash bsdgrep by default. \b is effectively an agnostic equivalent of \< and \>, while \B will match every space that isn't making a transition from nonchar -> char or char -> nonchar. Notes: svn path=/head/; revision=368358
* libregex: implement \` and \' (begin-of-subj, end-of-subj)Kyle Evans2020-12-051-5/+9
| | | | | | | | | | These are GNU extensions, generally equivalent to ^ and $ except that the new syntax will not match beginning of line after the first in a multi-line expression or the end of line before absolute last in a multi-line expression. Notes: svn path=/head/; revision=368357
* libregex: disable some of the unimplemented test cases for nowKyle Evans2020-08-042-14/+12
| | | | | | | | This should allow the tests to actually pass. Future work will uncomment the unimplemented tests as they're implemented. Notes: svn path=/head/; revision=363819
* Further normalize copyright noticesKyle Evans2019-09-261-1/+2
| | | | | | | | | | | - s/C/c/ where I've been inconsistent about it - +SPDX tags - Remove "All rights reserved" where possible Requested by: rgrimes (all rights reserved) Notes: svn path=/head/; revision=352757
* libregex: Mark gnuext test as an expected failKyle Evans2018-01-291-0/+4
| | | | | | | | | The test was added prematurely as a goal to reach with the GNU extension functionality, but the functionality has not yet been introduced. Mark it as an expected fail until that point. Notes: svn path=/head/; revision=328549
* libregex: Add a symbol mapKyle Evans2018-01-223-1/+24
| | | | | | | | | | | | | kib points out that trying to re-use symbol versioning from libc is dirty and wrong. The implementation in libregex is incompatible by design with the implementation in libc. Using the symbol versions from libc can and likely will cause confusions for linkers and bring unexpected behavior for consumers that unwillingly (transitively) link against libregex. Reported by: kib Notes: svn path=/head/; revision=328263
* libregex: Drop WARNS to 2 to match libcKyle Evans2018-01-221-0/+1
| | | | | | | | | It's become clear that my armv7 builds didn't catch all of the warnings that other builds are picking up, drop WARNS to 2 to match libc until they're all caught. Notes: svn path=/head/; revision=328242
* Add libregex, connect it to the buildKyle Evans2018-01-224-0/+124
libregex is a regex(3) implementation intended to feature GNU extensions and any other non-POSIX compliant extensions that are deemed worthy. These extensions are separated out into a separate library for the sake of not cluttering up libc further with them as well as not deteriorating the speed (or lack thereof) of the libc implementation. libregex is implemented as a build of the libc implementation with LIBREGEX defined to distinguish this from a libc build. The reasons for implementation like this are two-fold: 1.) Maintenance- This reduces the overhead induced by adding yet another regex implementation to base. 2.) Ease of use- Flipping on GNU extensions will be as simple as linking against libregex, and POSIX-compliant compilations can be guaranteed with a REG_POSIX cflag that should be ignored by libc/regex and disables extensions in libregex. It is also easier to keep REG_POSIX sane and POSIX pure when implemented in this fashion. Tests are added for future functionality, but left disconnected for the time being while other testing is done. Reviewed by: cem (previous version) Differential Revision: https://reviews.freebsd.org/D12934 Notes: svn path=/head/; revision=328240