aboutsummaryrefslogtreecommitdiff
path: root/regex.h
diff options
context:
space:
mode:
authorRobin Haberkorn <rhaberkorn@fmsbw.de>2026-06-27 17:07:31 +0200
committerRobin Haberkorn <rhaberkorn@fmsbw.de>2026-06-27 17:11:39 +0200
commit413bad8c8848bc2e31ac0034c58130ac67f3b1f8 (patch)
treeabf99972f5c8023e43377dcf07d72f330828afcf /regex.h
parentfaa449f2c2353aad5ebd61f27181fdc576a6ab78 (diff)
downloadterex-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.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/regex.h b/regex.h
index 65455f9..167b414 100644
--- a/regex.h
+++ b/regex.h
@@ -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)