summaryrefslogtreecommitdiffstats
path: root/src/expr.h
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2023-07-05 10:45:56 -0400
committerTavian Barnes <tavianator@tavianator.com>2023-07-06 11:06:22 -0400
commita215ab6de0ae34db7311136404d0f9feab34ef04 (patch)
tree51470bb6b2859ee7b139b8fb81decd007944e7a8 /src/expr.h
parent66264f1518d1e19123cca23ec92eace4c7982731 (diff)
downloadbfs-a215ab6de0ae34db7311136404d0f9feab34ef04.tar.xz
Use strcmp() instead of fnmatch() if possible
Diffstat (limited to 'src/expr.h')
-rw-r--r--src/expr.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/expr.h b/src/expr.h
index 356689d..95118b9 100644
--- a/src/expr.h
+++ b/src/expr.h
@@ -143,6 +143,16 @@ struct bfs_expr {
};
};
+ /** String comparisons. */
+ struct {
+ /** String pattern. */
+ const char *pattern;
+ /** fnmatch() flags. */
+ int fnm_flags;
+ /** Whether strcmp() can be used instead of fnmatch(). */
+ bool literal;
+ };
+
/** Printing actions. */
struct {
/** The output stream. */