-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #403 from yamacir-kit/library
- Loading branch information
Showing
81 changed files
with
2,116 additions
and
1,850 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
0.4.81 | ||
0.4.117 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
(import (scheme r5rs) | ||
(import (scheme base) | ||
(scheme process-context)) | ||
|
||
(define (ack m n) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
(import (scheme r5rs) | ||
(import (scheme base) | ||
(scheme process-context)) | ||
|
||
(define (tarai x y z) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,51 @@ | ||
(import (meevax foreign-function) | ||
(scheme base) | ||
(only (scheme process-context) exit) | ||
(scheme process-context) | ||
(scheme write) | ||
(srfi 78)) | ||
|
||
(define dummy-procedure (foreign-function "build/libexample.so" "dummy_procedure")) | ||
; ------------------------------------------------------------------------------ | ||
|
||
(define dummy-procedure | ||
(foreign-function "build/libexample.so" "dummy_procedure")) | ||
|
||
(check (foreign-function? dummy-procedure) => #t) | ||
|
||
(check (dummy-procedure 'hoge 42 #(1 2 3) 3.14) => 43) | ||
|
||
(define length-of-arguments (foreign-function "build/libexample.so" "length_of_arguments")) | ||
; ------------------------------------------------------------------------------ | ||
|
||
(define length-of-arguments | ||
(foreign-function "build/libexample.so" "length_of_arguments")) | ||
|
||
(check (foreign-function? length-of-arguments) => #t) | ||
|
||
(check (length-of-arguments 'hoge 42 #(1 2 3) 3.14) => 4) | ||
|
||
(exit (check-passed? 4)) | ||
; ------------------------------------------------------------------------------ | ||
|
||
(define make-hoge | ||
(foreign-function "build/libexample.so" "make_hoge")) | ||
|
||
(define hoge? | ||
(foreign-function "build/libexample.so" "is_hoge")) | ||
|
||
(define hoge-value | ||
(foreign-function "build/libexample.so" "hoge_value")) | ||
|
||
(check (foreign-function? make-hoge) => #t) | ||
|
||
(check (foreign-function? hoge?) => #t) | ||
|
||
(check (foreign-function? hoge-value) => #t) | ||
|
||
(define h (make-hoge 100)) | ||
|
||
(display h) | ||
(newline) | ||
|
||
(check (hoge? h) => #t) | ||
|
||
(check (hoge-value h) => 100) | ||
|
||
(exit (check-passed? 9)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.