more fixy fixy

master
Clyne Sullivan 7 years ago
parent 8275c9cac1
commit 5c5c93db40

@ -1 +1 @@
../../interpreter3 ../../interpreter

@ -40,7 +40,7 @@ func(makegrid) {
# BIG LOOP - ask for equ, graph it # BIG LOOP - ask for equ, graph it
# #
makegrid() makegrid
clearcmd = "clear" clearcmd = "clear"
while (1) { while (1) {
rect(0, 0, 480, 40, 0) rect(0, 0, 480, 40, 0)
@ -48,7 +48,7 @@ while (1) {
Fx = gets() Fx = gets()
if (Fx == clearcmd) { if (Fx == clearcmd) {
makegrid() makegrid
} else { } else {
# do function # do function
x = xmin x = xmin

Binary file not shown.

@ -118,7 +118,6 @@ int script_color(instance *it)
igetarg_integer(it, 2)); igetarg_integer(it, 2));
variable *v = make_varf(0, (float)c); variable *v = make_varf(0, (float)c);
ipush(it, (uint32_t)v); ipush(it, (uint32_t)v);
free(v);
return 0; return 0;
} }
@ -128,7 +127,6 @@ int script_rand(instance *it)
unsigned int val = random_get(); unsigned int val = random_get();
variable *v = make_varf(0, (float)(mod % val)); variable *v = make_varf(0, (float)(mod % val));
ipush(it, (uint32_t)v); ipush(it, (uint32_t)v);
free(v);
return 0; return 0;
} }
@ -136,7 +134,6 @@ int script_getkey(instance *it)
{ {
variable *v = make_varf(0, (float)keypad_get()); variable *v = make_varf(0, (float)keypad_get());
ipush(it, (uint32_t)v); ipush(it, (uint32_t)v);
free(v);
return 0; return 0;
} }

Loading…
Cancel
Save