From ad8619ae362b4b626e99b90b1b7c4d7e59125f65 Mon Sep 17 00:00:00 2001 From: Anton Kling Date: Thu, 2 May 2024 16:52:26 +0200 Subject: sh: Use string view instead of C strings --- userland/minibox/utilities/sh/ast.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'userland/minibox/utilities/sh/ast.h') 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; }; -- cgit v1.2.3