Implement SSE instructions
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user