diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2021-01-27 15:27:56 -0500 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2021-01-28 17:13:26 -0500 |
commit | 9bf75cee19b8d60d2b4f6260a8c2322cc8ca11db (patch) | |
tree | 0bc819909cb616b05ff013fbf1144dae7a13ec23 /parse.c | |
parent | 3fcd7b010fd4f477582997d688cc415f76e70411 (diff) | |
download | bfs-9bf75cee19b8d60d2b4f6260a8c2322cc8ca11db.tar.xz |
dir: New DIR* facade
Diffstat (limited to 'parse.c')
-rw-r--r-- | parse.c | 21 |
1 files changed, 11 insertions, 10 deletions
@@ -28,6 +28,7 @@ #include "ctx.h" #include "darray.h" #include "diag.h" +#include "dir.h" #include "eval.h" #include "exec.h" #include "expr.h" @@ -2314,44 +2315,44 @@ static struct expr *parse_type(struct parser_state *state, int x, int arg2) { const char *c = expr->sdata; while (true) { - enum bftw_type type; + enum bfs_type type; double type_prob; switch (*c) { case 'b': - type = BFTW_BLK; + type = BFS_BLK; type_prob = 0.00000721183; break; case 'c': - type = BFTW_CHR; + type = BFS_CHR; type_prob = 0.0000499855; break; case 'd': - type = BFTW_DIR; + type = BFS_DIR; type_prob = 0.114475; break; case 'D': - type = BFTW_DOOR; + type = BFS_DOOR; type_prob = 0.000001; break; case 'p': - type = BFTW_FIFO; + type = BFS_FIFO; type_prob = 0.00000248684; break; case 'f': - type = BFTW_REG; + type = BFS_REG; type_prob = 0.859772; break; case 'l': - type = BFTW_LNK; + type = BFS_LNK; type_prob = 0.0256816; break; case 's': - type = BFTW_SOCK; + type = BFS_SOCK; type_prob = 0.0000116881; break; case 'w': - type = BFTW_WHT; + type = BFS_WHT; type_prob = 0.000001; break; |