diff options
author | Anton Kling <anton@kling.gg> | 2024-05-02 16:52:26 +0200 |
---|---|---|
committer | Anton Kling <anton@kling.gg> | 2024-05-02 18:35:47 +0200 |
commit | ad8619ae362b4b626e99b90b1b7c4d7e59125f65 (patch) | |
tree | 2d46caa903ba9435fc51012b6ddf41292ad316f7 /userland/minibox/utilities/sh/ast.h | |
parent | faebb71b8a84e33f4f2b3f8f70f845011483c5c5 (diff) |
sh: Use string view instead of C strings
Diffstat (limited to 'userland/minibox/utilities/sh/ast.h')
-rw-r--r-- | userland/minibox/utilities/sh/ast.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/userland/minibox/utilities/sh/ast.h b/userland/minibox/utilities/sh/ast.h index 7e7aaff..ae43f67 100644 --- a/userland/minibox/utilities/sh/ast.h +++ b/userland/minibox/utilities/sh/ast.h @@ -9,7 +9,7 @@ typedef enum { struct AST_VALUE { ast_value_type_t type; union { - char *string; + struct sv string; }; }; @@ -27,7 +27,7 @@ struct AST { struct AST *pipe_rhs; // in "func1 | func2" func2 is the piped rhs int file_out_fd_to_use; int file_out_append; - const char *file_out; // in "func1 > file.txt" file.txt is the file_out + struct sv file_out; // in "func1 > file.txt" file.txt is the file_out struct AST *next; }; |