more fixy fixy
This commit is contained in:
parent
8275c9cac1
commit
5c5c93db40
@ -1 +1 @@
|
||||
../../interpreter3
|
||||
../../interpreter
|
@ -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
|
||||
|
BIN
libinterp.a
BIN
libinterp.a
Binary file not shown.
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user