Implement SSE instructions

This commit is contained in:
2026-03-07 17:36:09 +01:00
parent 40bfc1e916
commit 5e616c1879
16 changed files with 80 additions and 15 deletions

View File

@@ -363,7 +363,8 @@ static void execute_redir (struct ast_redir* redir, struct context* context) {
}
void execute (struct ast_node* root, struct context* context) {
struct context subcontext = {0};
struct context subcontext;
memset (&subcontext, 0, sizeof (subcontext));
switch (root->class) {
case AST_NODE_CLASS_CMD:

View File

@@ -169,10 +169,11 @@ void parse_and_execute (struct list_node_link* tokens) {
parser.next = get_token (tokens);
while (parser.next != NULL) {
struct ast_node* root = parse_precedence (&parser, PREC_NONE);
volatile struct ast_node* root = parse_precedence (&parser, PREC_NONE);
if (root != NULL) {
struct context context = {0};
struct context context;
memset (&context, 0, sizeof (context));
execute (root, &context);
if (context.strbuf.items != NULL)