diff options
| author | Robin Haberkorn <rhaberkorn@fmsbw.de> | 2026-06-27 17:07:31 +0200 |
|---|---|---|
| committer | Robin Haberkorn <rhaberkorn@fmsbw.de> | 2026-06-27 17:11:39 +0200 |
| commit | 413bad8c8848bc2e31ac0034c58130ac67f3b1f8 (patch) | |
| tree | abf99972f5c8023e43377dcf07d72f330828afcf /regex.h | |
| parent | faa449f2c2353aad5ebd61f27181fdc576a6ab78 (diff) | |
| download | terex-413bad8c8848bc2e31ac0034c58130ac67f3b1f8.tar.gz | |
implemented REG_ANCHORED execution flag
* So you can anchor executions of already compiled patterns.
In principle REG_BOSONLY could also be handled by the same code.
* Required by SciTECO.
* Test suite has been fixed and extended.
The test program now takes getopt() style short arguments to specify flags.
Diffstat (limited to 'regex.h')
| -rw-r--r-- | regex.h | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -230,7 +230,7 @@ typedef struct { #define REG_DUMP 004000 /* none of your business :-) */ #define REG_FAKE 010000 /* none of your business :-) */ #define REG_PROGRESS 020000 /* none of your business :-) */ -#define REG_RAW 040000 /* pattern and subject are raw ASCII */ +#define REG_RAW 040000 /* pattern and subject are raw bytes */ /* * execution @@ -252,6 +252,7 @@ typedef struct { #define REG_FTRACE 0010 /* none of your business */ #define REG_MTRACE 0020 /* none of your business */ #define REG_SMALL 0040 /* none of your business */ +#define REG_ANCHORED 0100 /* match anchored (see also REG_BOSONLY) */ /* * misc generics (may be more functions here eventually) |
