diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2023-07-05 10:45:56 -0400 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2023-07-06 11:06:22 -0400 |
commit | a215ab6de0ae34db7311136404d0f9feab34ef04 (patch) | |
tree | 51470bb6b2859ee7b139b8fb81decd007944e7a8 /src/expr.h | |
parent | 66264f1518d1e19123cca23ec92eace4c7982731 (diff) | |
download | bfs-a215ab6de0ae34db7311136404d0f9feab34ef04.tar.xz |
Use strcmp() instead of fnmatch() if possible
Diffstat (limited to 'src/expr.h')
-rw-r--r-- | src/expr.h | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -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. */ |