[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 13/25] system/foreign/declarative.scm: export string foreign type
From: |
KAction |
Subject: |
[PATCH 13/25] system/foreign/declarative.scm: export string foreign type |
Date: |
Mon, 18 Jul 2016 18:17:36 +0300 |
From: Dmitry Bogatov <address@hidden>
---
module/system/foreign/declarative.scm | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/module/system/foreign/declarative.scm
b/module/system/foreign/declarative.scm
index 62d40b8..596cce0 100644
--- a/module/system/foreign/declarative.scm
+++ b/module/system/foreign/declarative.scm
@@ -107,6 +107,10 @@
(mirror-primitive-type float <?> real?)
(mirror-primitive-type double <?> real?)
(mirror-primitive-type '* *: #:validate-proc pointer?)
+(define-foreign-type string:
+ #:encode-proc string->pointer
+ #:decode-proc pointer->string
+ #:validate-proc string?)
(define-record-type <foreign-argument>
(%make-foreign-argument type)
--
I may be not subscribed. Please, keep me in carbon copy.
- Re: [PATCH 02/25] Define <ffi-type> structure, (continued)
- [PATCH 03/25] Mirror types from system/foreign as <foreign-type>, KAction, 2016/07/18
- [PATCH 04/25] Write boilerplate for primitive types, KAction, 2016/07/18
- [PATCH 05/25] Fix bug in `default' macro, KAction, 2016/07/18
- [PATCH 06/25] Basic implementation of `define-foreign-function', KAction, 2016/07/18
- [PATCH 07/25] Introduce foreign-type predicates, KAction, 2016/07/18
- [PATCH 08/25] Add keywords for `define-foreign-function' macro, KAction, 2016/07/18
- [PATCH 10/25] Refactor type validation in `define-foreign-function', KAction, 2016/07/18
- [PATCH 09/25] system/foreign/declarative: rename `predicate' to `validate', KAction, 2016/07/18
- [PATCH 11/25] system/foreign/declarative: new macro, KAction, 2016/07/18
- [PATCH 13/25] system/foreign/declarative.scm: export string foreign type,
KAction <=
- [PATCH 12/25] Improve deriving c symbol name from scheme one, KAction, 2016/07/18
- [PATCH 14/25] foreign/declarative: mirror more primitive types, KAction, 2016/07/18
- [PATCH 15/25] New macro: with-pointer, KAction, 2016/07/18
- [PATCH 16/25] Configure emacs file-local indention, KAction, 2016/07/18
- [PATCH 17/25] system/foreign/declarative: unexport internal macro, KAction, 2016/07/18
- [PATCH 18/25] write documentation for (system foreign declarative), KAction, 2016/07/18