Move stuff around

This commit is contained in:
2024-06-21 01:40:35 +05:00
parent fcdb37b72f
commit d2d73745c0
+9 -9
View File
@@ -56,6 +56,15 @@ static void prefix_operator(Stack *stack, char op)
break;
}
if (INST.ispiped)
DATA = stack_pop(stack);
if (INST.isdrained)
{
stack_push(stack, DATA);
DATA = 0;
}
}
static void expression(Stack *stack, char *code)
@@ -148,15 +157,6 @@ void execute(Stack *stack, Stack *originstack, char *modname)
#endif
prefix_operator(stack, NAME[0]);
if (INST.ispiped)
DATA = stack_pop(stack);
if (INST.isdrained)
{
stack_push(stack, DATA);
DATA = 0;
}
if (NAME[0] == '#' || NAME[0] == '$')
NAME++;