Skip to content

Commit cdb3684

Browse files
author
ab25cq
committed
version 10.2.3
1 parent 038dad0 commit cdb3684

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

57 files changed

+6563
-2083
lines changed

CHANGELOG

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,12 @@
11

2+
version 10.2.3
3+
4+
Fixed finalize method bug. Now you can use the method using GC in the finalize method.
5+
6+
version 10.2.2
7+
8+
Added erase(3), idlok(3), idcok(3) method.
9+
210
version 10.2.1
311

412
Java Script Reflection.

Fundamental.clcl

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ class System
3939
def realloc(ptr:pointer, size: size_t): native static pointer@alloc;
4040
def strdup(str:pointer): native static pointer@alloc;
4141
def free(ptr:pointer): native static;
42+
def GC_malloc(size:size_t):native static GCMemory;
4243

4344
def strlen(ptr:pointer): native static int;
4445
def strlen(array:byte[]): native static int;
@@ -61,6 +62,12 @@ class System
6162
def printlnToError(str:String): native static;
6263
}
6364

65+
class GCMemory
66+
{
67+
memory:pointer;
68+
size:size_t;
69+
}
70+
6471
class Global
6572
{
6673
def initialize() {}

Makefile.in

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -254,6 +254,9 @@ Command.so: Command.oclcl
254254
String.so: String.oclcl
255255
if test $(JIT) = 1; then ./bclover2 -core String; fi
256256

257+
GCMemory.so: GCMemory.oclcl
258+
if test $(JIT) = 1; then ./bclover2 -core GCMemory; fi
259+
257260
File.so: File.oclcl
258261
if test $(JIT) = 1; then ./bclover2 -core File; fi
259262

@@ -359,6 +362,9 @@ install:
359362
$(INSTALL) -m 644 ./String.oclcl $(DESTDIR)/share/clover2
360363
if test -e String.so; then $(INSTALL) -m 755 ./String.so.1.0.0 $(DESTDIR)/share/clover2; cp -a ./String.so $(DESTDIR)/share/clover2; fi
361364

365+
$(INSTALL) -m 644 ./GCMemory.oclcl $(DESTDIR)/share/clover2
366+
if test -e GCMemorry.so; then $(INSTALL) -m 755 ./GCMemory.so.1.0.0 $(DESTDIR)/share/clover2; cp -a ./GCMemory.so $(DESTDIR)/share/clover2; fi
367+
362368
$(INSTALL) -m 644 ./Buffer.oclcl $(DESTDIR)/share/clover2
363369
if test -e Buffer.so; then $(INSTALL) -m 755 ./Buffer.so.1.0.0 $(DESTDIR)/share/clover2; cp -a ./Buffer.so $(DESTDIR)/share/clover2; fi
364370

@@ -820,6 +826,7 @@ test:
820826
PWD=`pwd` ./cclover2 code/MethodDynamicTest2.clcl
821827
PWD=`pwd` ./cclover2 code/MixinLayers.clcl
822828
PWD=`pwd` ./cclover2 code/MixinLayers2.clcl
829+
PWD=`pwd` ./cclover2 code/GCMemoryTest.clcl
823830

824831
# if locale -a | grep ja_JP.utf8; then export LANG="ja_JP_utf8"; export LC_ALL="ja_JP.utf8"; PWD=`pwd` ./cclover2 code/CharTest.clcl; if test $(JIT) = 1; then ./bclover2 CharTest.oclcl; fi; PWD=`pwd` ./clover2 code/char.cl; fi
825832

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# clover2 computer language
22

3-
version 10.2.1
3+
version 10.2.3
44

55
サポートしている機能
66

SystemCalls.clcl

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -529,7 +529,10 @@ inherit System
529529
def refresh(): native static throws Exception;
530530
def box(win_ptr:pointer@WINDOW, vetical_char:char, horizonal_char:char): native static throws Exception;
531531
def isendwin(): native static bool;
532-
def clear(): native static throws Exception;
532+
def clear(): native static int throws Exception;
533+
def idlok(flag:bool): native static int throws Exception;
534+
def idcok(flag:bool): native static;
535+
def erase(): native static int throws Exception;
533536
def attron(attribute:int): static native throws Exception;
534537
def attroff(attribute:int): static native throws Exception;
535538
def attrset(attribute:int): static native throws Exception;

a.cl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
1.
2+
あいうえお

app-sample/vicl/.swp

-12 KB
Binary file not shown.

app-sample/vicl/Makefile.in

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,13 @@ Clover.oclcl: Fundamental.clcl
3838
cclover2 Fundamental.clcl
3939
if which bclover2; then bclover2 Clover.oclcl; fi
4040

41-
ViClone.oclcl: ViClone@20.oclcl
41+
ViClone.oclcl: ViClone@21.oclcl
4242
if which bclover2; then bclover2 ViClone.oclcl; fi
4343
if which bclover2; then bclover2 ViCloneWindow.oclcl; fi
44+
45+
46+
cclover2 vicl21Utf8.clcl
47+
4448
4549
cclover2 vicl20Backup.clcl
4650

app-sample/vicl/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Vi Clone by Clover2.
44

55
This is under constructing. I recommended that you use this for Clover2 test sources.
66

7-
require Clover2 version 8.3.1 later
7+
require Clover2 version 10.2.1 later
88

99
* Install
1010

app-sample/vicl/TODO

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
search mode utf-8
2+
3+
search mode in visual mode
14

25
word completion at the end of visible line occurs bug
36

0 commit comments

Comments
 (0)