[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 14/25] foreign/declarative: mirror more primitive types
From: |
KAction |
Subject: |
[PATCH 14/25] foreign/declarative: mirror more primitive types |
Date: |
Mon, 18 Jul 2016 18:17:37 +0300 |
From: Dmitry Bogatov <address@hidden>
New foreign-types: `unsigned-int:` and
`unsigned-long:`.
---
module/system/foreign/declarative.scm | 30 ++++++++++++++++--------------
1 file changed, 16 insertions(+), 14 deletions(-)
diff --git a/module/system/foreign/declarative.scm
b/module/system/foreign/declarative.scm
index 596cce0..3dd28d4 100644
--- a/module/system/foreign/declarative.scm
+++ b/module/system/foreign/declarative.scm
@@ -92,20 +92,22 @@
(define-foreign-type void:
#:decode-proc (lambda (x) x)
#:type void)
-(mirror-primitive-type size_t <?> integer?)
-(mirror-primitive-type int <?> integer?)
-(mirror-primitive-type long <?> integer?)
-(mirror-primitive-type ptrdiff_t <?> integer?)
-(mirror-primitive-type int8 <?> integer?)
-(mirror-primitive-type int16 <?> integer?)
-(mirror-primitive-type int32 <?> integer?)
-(mirror-primitive-type int64 <?> integer?)
-(mirror-primitive-type uint8 <?> integer?)
-(mirror-primitive-type uint16 <?> integer?)
-(mirror-primitive-type uint32 <?> integer?)
-(mirror-primitive-type uint64 <?> integer?)
-(mirror-primitive-type float <?> real?)
-(mirror-primitive-type double <?> real?)
+(mirror-primitive-type size_t <?> integer?)
+(mirror-primitive-type int <?> integer?)
+(mirror-primitive-type unsigned-int <?> integer?)
+(mirror-primitive-type long <?> integer?)
+(mirror-primitive-type unsigned-long <?> integer?)
+(mirror-primitive-type ptrdiff_t <?> integer?)
+(mirror-primitive-type int8 <?> integer?)
+(mirror-primitive-type int16 <?> integer?)
+(mirror-primitive-type int32 <?> integer?)
+(mirror-primitive-type int64 <?> integer?)
+(mirror-primitive-type uint8 <?> integer?)
+(mirror-primitive-type uint16 <?> integer?)
+(mirror-primitive-type uint32 <?> integer?)
+(mirror-primitive-type uint64 <?> integer?)
+(mirror-primitive-type float <?> real?)
+(mirror-primitive-type double <?> real?)
(mirror-primitive-type '* *: #:validate-proc pointer?)
(define-foreign-type string:
#:encode-proc string->pointer
--
I may be not subscribed. Please, keep me in carbon copy.
- [PATCH 04/25] Write boilerplate for primitive types, (continued)
- [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, 2016/07/18
- [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 <=
- [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
[PATCH 20/25] Document with-pointer macro, KAction, 2016/07/18
[PATCH 19/25] Document define-foreign-bitmask macro, KAction, 2016/07/18