]> code.bitgloo.com Git - clyne/calculator.git/commitdiff
more fixy fixy
authorClyne Sullivan <tullivan99@gmail.com>
Fri, 23 Mar 2018 00:08:32 +0000 (20:08 -0400)
committerClyne Sullivan <tullivan99@gmail.com>
Fri, 23 Mar 2018 00:08:32 +0000 (20:08 -0400)
include/it
initrd/init
libinterp.a
src/script.c

index a9d20d80f97aa39d4a506073b30abb6c54bef113..7c2b8d49b9d43f2d6043af84f9c0a69371c84276 120000 (symlink)
@@ -1 +1 @@
-../../interpreter3
\ No newline at end of file
+../../interpreter
\ No newline at end of file
index 3379d8137457148d75227df88e55f24fb7ea48f6..a218474d5565414f97ca51e1ad627e56f3e344c4 100644 (file)
@@ -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
index 36331ee4f65c17c7a7de80ed64a464178598ee2c..08b52ec23cbc7f0e5e674450c45c3f684d5dd819 100644 (file)
Binary files a/libinterp.a and b/libinterp.a differ
index 1cd0d7164ffbbcec9e07ad6a39549a1fdc5f47d5..b69b02367b05ac85889ac4854dfde9b5ab996ed7 100644 (file)
@@ -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;
 }