diff --git a/include/it b/include/it index a9d20d8..7c2b8d4 120000 --- a/include/it +++ b/include/it @@ -1 +1 @@ -../../interpreter3 \ No newline at end of file +../../interpreter \ No newline at end of file diff --git a/initrd/init b/initrd/init index 3379d81..a218474 100644 --- a/initrd/init +++ b/initrd/init @@ -20,7 +20,7 @@ mlines = color(3, 3, 3) func(makegrid) { rect(plotx, ploty, plotw, ploth, 0) - x = plotx + x = plotx while (x <= plotx + plotw) { line(x, ploty, x, ploty + ploth, mlines) x = x + xinc @@ -40,7 +40,7 @@ func(makegrid) { # BIG LOOP - ask for equ, graph it # -makegrid() +makegrid clearcmd = "clear" while (1) { rect(0, 0, 480, 40, 0) @@ -48,7 +48,7 @@ while (1) { Fx = gets() if (Fx == clearcmd) { - makegrid() + makegrid } else { # do function x = xmin diff --git a/libinterp.a b/libinterp.a index 36331ee..08b52ec 100644 Binary files a/libinterp.a and b/libinterp.a differ diff --git a/src/script.c b/src/script.c index 1cd0d71..b69b023 100644 --- a/src/script.c +++ b/src/script.c @@ -118,7 +118,6 @@ int script_color(instance *it) igetarg_integer(it, 2)); variable *v = make_varf(0, (float)c); ipush(it, (uint32_t)v); - free(v); return 0; } @@ -128,7 +127,6 @@ int script_rand(instance *it) unsigned int val = random_get(); variable *v = make_varf(0, (float)(mod % val)); ipush(it, (uint32_t)v); - free(v); return 0; } @@ -136,7 +134,6 @@ int script_getkey(instance *it) { variable *v = make_varf(0, (float)keypad_get()); ipush(it, (uint32_t)v); - free(v); return 0; }