Skip to content

Commit

Permalink
version 3.5.9 release!
Browse files Browse the repository at this point in the history
  • Loading branch information
ab25cq committed Feb 13, 2018
1 parent 1e0c4ef commit 2b40a81
Show file tree
Hide file tree
Showing 28 changed files with 256 additions and 28 deletions.
9 changes: 8 additions & 1 deletion CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,9 +1,16 @@

version 3.5.9

メソッドの引数で数値型の変換は暗黙で行われるようになりました。int --> ulongなど。

version 3.5.9

Numeric type conversion is now implicit in method arguments. int -> ulong and so on.

version 3.5.8

configureの他のCPUへの対応やディレクトリ内のファイルの整理をしました。


versioin 3.5.8

I configured configure and handle other CPUs and organize files in the directory.
Expand Down
8 changes: 7 additions & 1 deletion File.clcl
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,8 @@ class System
RTLD_DEFAULT: static pointer;
RTLD_NEXT: static pointer;

EOF: static int;

def initialize_file_system(): static native;

def initialize(): static {
Expand All @@ -95,7 +97,7 @@ class System
def open(file_name:String, flags:int, mode:mode_t):static native int throws Exception;
def close(fd:int): static native int throws Exception;
def read(fd:int, buf:Buffer, size:size_t): static native int throws Exception;
def write(fd:int, buf:Buffer, size:size_t): static native int throws Exception;
def write(fd:int, buf:Buffer, size:size_t): static native ssize_t throws Exception;

def time(): static native time_t;
def localtime(time:time_t, tm_sec:pointer@of_int, tm_min:pointer@of_int, tm_hour:pointer@of_int, tm_mday:pointer@of_int, tm_mon:pointer@of_int, tm_year:pointer@of_int, tm_wday:pointer@of_int, tm_yday:pointer@of_int, tm_isdst:pointer@of_bool): static native throws Exception;
Expand Down Expand Up @@ -138,6 +140,10 @@ class System
def dlclose(handle:pointer): static native int throws Exception;
def dlsym(handle:pointer, symbol:String): static native pointer throws Exception;

def fopen(path:String, mode:String): static native pointer@FILE throws Exception;
def fclose(stream:pointer) : static native throws Exception;
def fwrite(buf:Buffer, size:size_t, stream: pointer@FILE): static native size_t throws Exception;

def put_fun_to_hash_for_native_method(path:String, fun_name:String, native_method:pointer): static native;
}

Expand Down
1 change: 1 addition & 0 deletions Fundamental.clcl
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
class System
{
typedef size_t ulong;
typedef ssize_t ulong;
typedef time_t ulong;

def assert(exp:bool): native static throws Exception;
Expand Down
1 change: 1 addition & 0 deletions Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -389,6 +389,7 @@ test: parser
PWD=`pwd` ./cclover2 code/AndAndOrOrTest.clcl
PWD=`pwd` ./cclover2 code/ClosureTest.clcl
PWD=`pwd` ./cclover2 code/MapTest.clcl
PWD=`pwd` ./cclover2 code/SystemCallTest.clcl
PWD=`pwd` ./cclover2 code/main.cl && ./clover2 code/main.cl

if locale -a | grep ja_JP.utf8; then export LANG="ja_JP_utf8"; export LC_ALL="ja_JP.utf8"; PWD=`pwd` ./clover2 code/char.cl; else export LANG="C.UTF-8"; export LC_ALL="C.UTF-8"; PWD=`pwd` ./clover2 code/char.cl; fi
Expand Down
7 changes: 4 additions & 3 deletions SystemCalls.clcl
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@ include "Command.clcl"
class System
{
def alarm(seconads: uint): static native uint;
def dup(old_fd:int): static native;
def dup3(old_fd:int, new_fd:int, flags:int): static native;

def dup(old_fd:int): static native throws Exception;
def dup3(old_fd:int, new_fd:int, flags:int): static native throws Exception;
def execvpe(path:String, argv:List<String>, envp:List<String>):static native throws Exception;

def initialize_system_calls_system():static native;

def initialize(): static {
Expand Down
10 changes: 10 additions & 0 deletions code/SystemCallTest.clcl
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
class SystemCallTest
{
def main(): static {
f := System.fopen("sys.txt", "w");
System.fwrite(b"ABCDEF", 3, f);
System.fclose(f);

Clover.test("sys call test", p"sys.txt".read().equals(b"ABC"));
}
}
2 changes: 2 additions & 0 deletions code/main.cl
Original file line number Diff line number Diff line change
Expand Up @@ -172,3 +172,5 @@ UnboxingTest.main();
AndAndOrOrTest.main();
println("MapTest");
MapTest.main();
println("SysteCallTest");
SystemCallTest.main();
2 changes: 1 addition & 1 deletion debian/.debhelper/clover2/dbgsym-build-ids
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0468c4f3761391c35889a0a32520164b2605c9cc 70806796373c1f1103b7a38b0d768d3b5a8ced45 aebacabd9f626836c23bf7c2046875ead0ddc7a5
1adf9367db259f4e7525af19e0305b7a9e401178 5394c8557f675ade932f643721417597e74360f3 5b784d29484e75f05305810766001b216de6cb56
8 changes: 4 additions & 4 deletions debian/.debhelper/clover2/dbgsym-root/DEBIAN/control
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
Package: clover2-dbgsym
Source: clover2
Version: 3.5.8-1
Version: 3.5.9-1
Auto-Built-Package: debug-symbols
Architecture: amd64
Maintainer: Daisuke Minato <[email protected]>
Installed-Size: 102
Depends: clover2 (= 3.5.8-1)
Installed-Size: 103
Depends: clover2 (= 3.5.9-1)
Section: debug
Priority: extra
Homepage: https://github.com/ab25cq/clover2/wiki
Description: Debug symbols for clover2
Build-Ids: 0468c4f3761391c35889a0a32520164b2605c9cc 70806796373c1f1103b7a38b0d768d3b5a8ced45 aebacabd9f626836c23bf7c2046875ead0ddc7a5
Build-Ids: 1adf9367db259f4e7525af19e0305b7a9e401178 5394c8557f675ade932f643721417597e74360f3 5b784d29484e75f05305810766001b216de6cb56
6 changes: 3 additions & 3 deletions debian/.debhelper/clover2/dbgsym-root/DEBIAN/md5sums
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
ce5fb4194f70e06f4db66ed3b9d66634 usr/lib/debug/.build-id/04/68c4f3761391c35889a0a32520164b2605c9cc.debug
7ea2e44bf634e53e2cb0eb8a231096dd usr/lib/debug/.build-id/70/806796373c1f1103b7a38b0d768d3b5a8ced45.debug
6bce8a065615484940fa6c8ac1b1b09a usr/lib/debug/.build-id/ae/bacabd9f626836c23bf7c2046875ead0ddc7a5.debug
e84a164cfe522329936d18b55ff32abf usr/lib/debug/.build-id/1a/df9367db259f4e7525af19e0305b7a9e401178.debug
c2fe717aee59dedc61f0d5427a0465e0 usr/lib/debug/.build-id/53/94c8557f675ade932f643721417597e74360f3.debug
c15b16b5578b7ee39a6717fc71a0eafa usr/lib/debug/.build-id/5b/784d29484e75f05305810766001b216de6cb56.debug
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
4 changes: 4 additions & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
clover2 (3.5.9-1) unstable; urgency=medium

* Numeric type conversion is now implicit in method arguments. int -> ulong and so on.

clover2 (3.5.8-1) unstable; urgency=medium

   * support PPC,PPC64, other CPUs.
Expand Down
2 changes: 1 addition & 1 deletion debian/clover2.substvars
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
shlibs:Depends=libc6 (>= 2.14), libpcre3, libreadline7 (>= 6.0)
shlibs:Depends=libc6 (>= 2.14), libgc1c2 (>= 1:7.2d), libpcre3, libreadline7 (>= 6.0)
misc:Depends=
misc:Pre-Depends=
6 changes: 3 additions & 3 deletions debian/files
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
clover2-dbgsym_3.5.8-1_amd64.deb debug extra
clover2_3.5.8-1_amd64.buildinfo unknown optional
clover2_3.5.8-1_amd64.deb unknown optional
clover2-dbgsym_3.5.9-1_amd64.deb debug extra
clover2_3.5.9-1_amd64.buildinfo unknown optional
clover2_3.5.9-1_amd64.deb unknown optional
8 changes: 4 additions & 4 deletions install_deb.sh
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@

if test -e ../clover2_3.5.8-1_i386.deb
if test -e ../clover2_3.5.9-1_i386.deb
then
if dpkg -l | egrep ^clover2
then
sudo apt-get remove clover2
fi

sudo dpkg -i ../clover2_3.5.8-1_i386.deb
sudo dpkg -i ../clover2_3.5.9-1_i386.deb
fi

if test -e ../clover2_3.5.8-1_amd64.deb
if test -e ../clover2_3.5.9-1_amd64.deb
then
if dpkg -l | egrep ^clover2
then
sudo apt-get remove clover2
fi

sudo dpkg -i ../clover2_3.5.8-1_amd64.deb
sudo dpkg -i ../clover2_3.5.9-1_amd64.deb
fi
Empty file modified make_c89_source.sh
100644 → 100755
Empty file.
6 changes: 3 additions & 3 deletions make_deb.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
mv ../clover2 ../clover2-3.5.8
mv ../clover2 ../clover2-3.5.9

cd .

Expand All @@ -7,15 +7,15 @@ then
make distclean
fi

(rm ../clover2_3.5.8.orig.tar.gz; cd ..; tar cvfz clover2_3.5.8.orig.tar.gz clover2-3.5.8)
(rm ../clover2_3.5.9.orig.tar.gz; cd ..; tar cvfz clover2_3.5.9.orig.tar.gz clover2-3.5.9)

sudo dpkg-buildpackage -us -uc

sudo make uninstall

sudo rm -rf debian/clover2

mv ../clover2-3.5.8 ../clover2
mv ../clover2-3.5.9 ../clover2

cd .

Expand Down
3 changes: 3 additions & 0 deletions manual/release_note-en.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@

version 3.5.9
Numeric type conversion is now implicit in method arguments. int -> ulong and so on.

versioin 3.5.8

I configured configure and handle other CPUs and organize files in the directory.
Expand Down
4 changes: 4 additions & 0 deletions manual/release_note.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
English page is here [>> English page](release_note-en)

version 3.5.9

メソッドの引数で数値型の変換は暗黙で行われるようになりました。int --> ulongなど。

version 3.5.8

configureの他のCPUへの対応やディレクトリ内のファイルの整理をしました。
Expand Down
Loading

0 comments on commit 2b40a81

Please sign in to comment.