Skip to content

Commit

Permalink
Memory corrections
Browse files Browse the repository at this point in the history
  • Loading branch information
Wodan58 committed Sep 19, 2023
1 parent b3609fe commit 7948aeb
Show file tree
Hide file tree
Showing 230 changed files with 523 additions and 548 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ CMakeCache.txt
CMakeFiles
Makefile
cmake_install.cmake
joy.exe
*.o
joy.*
builtin.*
Expand Down
6 changes: 3 additions & 3 deletions src/of_at.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
module : %M%
version : %I%
date : %G%
module : of_at.h
version : 1.6
date : 09/19/23
*/
#ifndef OF_AT_H
#define OF_AT_H
Expand Down
1 change: 0 additions & 1 deletion test/fib.joy

This file was deleted.

8 changes: 4 additions & 4 deletions test2/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ exe9(__symtabindex)
exe9(__symtabmax)
exe9(_help)
exe9(abort)
exe9(abs)
exe9(plus)
exe9(acos)
exe9(add)
exe9(all)
exe9(all2)
exe9(and)
exe9(app1)
exe9(app11)
Expand Down Expand Up @@ -101,7 +101,7 @@ exe9(frexp)
exe9(fseek)
exe9(ftell)
exe9(fwrite)
exe9(gc)
exe9(gc2)
exe9(genrec)
exe9(geql)
exe9(get)
Expand Down Expand Up @@ -202,7 +202,7 @@ exe9(strftime)
exe9(string)
exe9(strtod)
exe9(strtol)
exe9(sub)
exe9(minus)
exe9(succ)
exe9(swap)
exe9(swapd)
Expand Down
4 changes: 2 additions & 2 deletions test2/__dump.joy
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
(*
module : __dump.joy
version : 1.2
date : 08/20/22
version : 1.3
date : 09/19/23
*)
__dump [] equal.
4 changes: 2 additions & 2 deletions test2/__html_manual.joy
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
(*
module : __html_manual.joy
version : 1.3
date : 08/20/22
version : 1.4
date : 09/19/23
*)
__html_manual.
4 changes: 2 additions & 2 deletions test2/__latex_manual.joy
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
(*
module : __latex_manual.joy
version : 1.3
date : 08/20/22
version : 1.4
date : 09/19/23
*)
__latex_manual.
4 changes: 2 additions & 2 deletions test2/__manual_list.joy
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
(*
module : __manual_list.joy
version : 1.3
date : 08/20/22
version : 1.4
date : 09/19/23
*)
__manual_list.
4 changes: 2 additions & 2 deletions test2/__memoryindex.joy
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
(*
module : __memoryindex.joy
version : 1.4
date : 08/26/23
version : 1.5
date : 09/19/23
*)
0 1 2 3 4 5 6 7 8 9 10
__memoryindex.
4 changes: 2 additions & 2 deletions test2/__memorymax.joy
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
(*
module : __memorymax.joy
version : 1.3
date : 08/26/23
version : 1.4
date : 09/19/23
*)
0 1 2 3 4 5 6 7 8 9 10
__memorymax.
4 changes: 2 additions & 2 deletions test2/__settracegc.joy
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
(*
module : __settracegc.joy
version : 1.3
date : 08/20/22
version : 1.4
date : 09/19/23
*)
1 __settracegc.
4 changes: 2 additions & 2 deletions test2/__symtabindex.joy
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
(*
module : __symtabindex.joy
version : 1.4
date : 08/26/23
version : 1.5
date : 09/19/23
*)
__symtabindex.
4 changes: 2 additions & 2 deletions test2/__symtabmax.joy
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
(*
module : __symtabmax.joy
version : 1.3
date : 08/26/23
version : 1.4
date : 09/19/23
*)
__symtabmax.
4 changes: 2 additions & 2 deletions test2/_help.joy
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
(*
module : _help.joy
version : 1.2
date : 08/20/22
version : 1.3
date : 09/19/23
*)
_help.
4 changes: 2 additions & 2 deletions test2/abort.joy
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
(*
module : abort.joy
version : 1.2
date : 08/20/22
version : 1.3
date : 09/19/23
*)
abort.
4 changes: 2 additions & 2 deletions test2/abs.joy
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
(*
module : abs.joy
version : 1.2
date : 08/20/22
version : 1.3
date : 09/19/23
*)
-1 abs 1 =.
-1.1 abs 1.1 =.
4 changes: 2 additions & 2 deletions test2/acos.joy
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
(*
module : acos.joy
version : 1.2
date : 08/20/22
version : 1.3
date : 09/19/23
*)
0.1 acos 'g 0 6 formatf strtod 1.47063 =.
8 changes: 4 additions & 4 deletions test2/all.joy → test2/all2.joy
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
(*
module : all.joy
version : 1.3
date : 05/23/23
module : all2.joy
version : 1.5
date : 09/19/23
*)
[1 2 3] [2 <] all false =.
[1 2 3] [4 <] all.
Expand All @@ -15,5 +15,5 @@
{} [2 <] all.

[1 2 3] [] all false =.
"test" [] all false =.
"test" [] all false =.
{1 2 3} [] all false =.
4 changes: 2 additions & 2 deletions test2/and.joy
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
(*
module : and.joy
version : 1.2
date : 08/20/22
version : 1.3
date : 09/19/23
*)
false false and false =.
false true and false =.
Expand Down
4 changes: 2 additions & 2 deletions test2/app1.joy
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
(*
module : app1.joy
version : 1.2
date : 08/20/22
version : 1.3
date : 09/19/23
*)
1 2 3 [+] app1 stack [5 1] equal.
4 changes: 2 additions & 2 deletions test2/app11.joy
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
(*
module : app11.joy
version : 1.3
date : 08/20/22
version : 1.4
date : 09/19/23
*)
1 2 3 [+] app11 stack [5] equal.
6 changes: 3 additions & 3 deletions test2/app12.joy
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
(*
module : app12.joy
version : 1.3
date : 08/20/22
version : 1.4
date : 09/19/23
*)
1 2 3 4 [+] app12 stack [6 5 1] equal.
1 2 3 4 [over +] app12 stack [6 5 1] equal.
4 changes: 2 additions & 2 deletions test2/app2.joy
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
(*
module : app2.joy
version : 1.2
date : 08/20/22
version : 1.3
date : 09/19/23
*)
2 3 [succ] app2 stack [4 3] equal.
4 changes: 2 additions & 2 deletions test2/app3.joy
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
(*
module : app3.joy
version : 1.2
date : 08/20/22
version : 1.3
date : 09/19/23
*)
2 3 4 [succ] app3 stack [5 4 3] equal.
4 changes: 2 additions & 2 deletions test2/app4.joy
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
(*
module : app4.joy
version : 1.2
date : 08/20/22
version : 1.3
date : 09/19/23
*)
2 3 4 5 [succ] app4 stack [6 5 4 3] equal.
4 changes: 2 additions & 2 deletions test2/argc.joy
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
(*
module : argc.joy
version : 1.2
date : 08/20/22
version : 1.3
date : 09/19/23
*)
argc 1 =.
7 changes: 4 additions & 3 deletions test2/argv.joy
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
(*
module : argv.joy
version : 1.2
date : 08/20/22
version : 1.3
date : 09/19/23
*)
argv ["argv.joy"] equal.
argv 0 at [dup '. has] [dup size 4 - take] # strip .joy
[] ifte "argv" =.
4 changes: 2 additions & 2 deletions test2/asin.joy
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
(*
module : asin.joy
version : 1.2
date : 08/20/22
version : 1.3
date : 09/19/23
*)
0.1 asin 'g 0 6 formatf strtod 0.100167 =.
4 changes: 2 additions & 2 deletions test2/at.joy
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
(*
module : at.joy
version : 1.2
date : 08/20/22
version : 1.3
date : 09/19/23
*)
[4 5 6] 2 at 6 =.
"test" 2 at 's =.
Expand Down
4 changes: 2 additions & 2 deletions test2/atan.joy
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
(*
module : atan.joy
version : 1.2
date : 08/20/22
version : 1.3
date : 09/19/23
*)
0.1 atan 'g 0 6 formatf strtod 0.0996687 =.
4 changes: 2 additions & 2 deletions test2/atan2.joy
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
(*
module : atan2.joy
version : 1.2
date : 08/20/22
version : 1.3
date : 09/19/23
*)
0.9 0.1 atan2 'g 0 6 formatf strtod 1.46014 =.
4 changes: 2 additions & 2 deletions test2/autoput.joy
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
(*
module : autoput.joy
version : 1.2
date : 08/20/22
version : 1.3
date : 09/19/23
*)
autoput 1 =.
4 changes: 2 additions & 2 deletions test2/binary.joy
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
(*
module : binary.joy
version : 1.3
date : 05/23/23
version : 1.4
date : 09/19/23
*)
3 4 5 [+] binary stack [9 3] equal.

Expand Down
6 changes: 3 additions & 3 deletions test2/binrec.joy
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
(*
module : binrec.joy
version : 1.2
date : 08/20/22
version : 1.3
date : 09/19/23
*)
10 [small] [] [pred dup pred] [+] binrec 55 =.
10 [dup small] [] [pred dup pred] [+] binrec 55 =.
4 changes: 2 additions & 2 deletions test2/body.joy
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
(*
module : body.joy
version : 1.2
date : 08/20/22
version : 1.3
date : 09/19/23
*)
DEFINE last == dup rest null [first] [rest last] branch.

Expand Down
4 changes: 2 additions & 2 deletions test2/branch.joy
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
(*
module : branch.joy
version : 1.3
date : 08/20/22
version : 1.4
date : 09/19/23
*)
0 not [true] [false] branch.
1 not [true] [false] branch false =.
4 changes: 2 additions & 2 deletions test2/case.joy
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
(*
module : case.joy
version : 1.3
date : 08/20/22
version : 1.4
date : 09/19/23
*)
DEFINE test == [[1 [one] first]
[2 [two] first]
Expand Down
8 changes: 2 additions & 6 deletions test2/casting.joy
Original file line number Diff line number Diff line change
@@ -1,17 +1,13 @@
(*
module : casting.joy
version : 1.1
date : 07/10/23
version : 1.2
date : 09/19/23
*)
DEFINE last == dup rest null [first] [rest last] branch.

[last] first [last] first casting [last] first =.
[pop] first [pop] first casting [pop] first =.
1 false casting.
66 'A casting 'B =.
'A 10 casting 65 =.
123456789 {} casting {0 2 4 8 10 11 14 15 16 17 19 20 22 24 25 26} =.
# [last] first "" casting.
0 [] casting [] equal.
1 1.1 casting 4.94066e-324 =.
argv stdin casting argv !=.
4 changes: 2 additions & 2 deletions test2/ceil.joy
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
(*
module : ceil.joy
version : 1.2
date : 08/20/22
version : 1.3
date : 09/19/23
*)
1.5 ceil 2 =.
Loading

0 comments on commit 7948aeb

Please sign in to comment.